Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions k8s/apps/redline-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Copyright (c) 2026 Metaform Systems, Inc.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# Metaform Systems, Inc. - initial API and implementation
#

---
apiVersion: v1
kind: ConfigMap
metadata:
name: redline-config
namespace: edc-v
labels:
app: redline
data:
SPRING_PROFILES_ACTIVE: "dev-pg"
DATABASE_URL: "jdbc:postgresql://postgres.edc-v.svc.cluster.local:5432/redlinedb"
DATABASE_USERNAME: "redline"
DATABASE_PASSWORD: "redline"

# urls for external services
KEYCLOAK_TOKENURL: "http://keycloak.edc-v.svc.cluster.local:8080/realms/edcv/protocol/openid-connect/token"
CONTROLPLANE_URL: "http://controlplane.edc-v.svc.cluster.local:8081/api/mgmt/v4alpha"
VAULT_URL: "http://vault.edc-v.svc.cluster.local:8200"
IDENTITYHUB_URL: "http://identityhub.edc-v.svc.cluster.local:7081/identities"
TENANT-MANAGER_URL: "http://tenant-manager.edc-v.svc.cluster.local:8080"
107 changes: 107 additions & 0 deletions k8s/apps/redline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
#
# Copyright (c) 2026 Metaform Systems, Inc.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# Metaform Systems, Inc. - initial API and implementation
#


---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redline
namespace: edc-v
labels:
app: redline
spec:
replicas: 1
selector:
matchLabels:
app: redline
template:
metadata:
labels:
app: redline
spec:
containers:
- name: redline
image: ghcr.io/metaform/redline:latest
imagePullPolicy: Always
ports:
- containerPort: 8081
name: http
protocol: TCP
envFrom:
- configMapRef:
name: redline-config
resources:
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "1000m"
livenessProbe:
httpGet:
path: /api/public/health
port: 8081
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/public/health
port: 8081
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3

---
apiVersion: v1
kind: Service
metadata:
name: redline
namespace: edc-v
labels:
app: redline
spec:
type: ClusterIP
ports:
- port: 8081
targetPort: 8081
protocol: TCP
name: http
selector:
app: redline

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: redline
namespace: edc-v
spec:
parentRefs:
- name: edcv-gateway
kind: Gateway
sectionName: http
hostnames:
- redline.localhost
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: redline
port: 8081
weight: 1
8 changes: 7 additions & 1 deletion k8s/base/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,10 @@ data:
CREATE USER cfm WITH PASSWORD 'cfm';
GRANT ALL PRIVILEGES ON DATABASE cfm TO cfm;
\c cfm
GRANT ALL ON SCHEMA public TO cfm;
GRANT ALL ON SCHEMA public TO cfm;

CREATE DATABASE redlinedb;
CREATE USER redline WITH PASSWORD 'redline';
GRANT ALL PRIVILEGES ON DATABASE redlinedb TO redline;
\c redlinedb
GRANT ALL ON SCHEMA public TO redline;