From dae1808e9dc182af6b7da8f395e2e69ed7f480b2 Mon Sep 17 00:00:00 2001 From: Bruce Schultz Date: Fri, 22 Mar 2024 14:01:36 +0100 Subject: [PATCH] feat(k8s): add manifests --- k8s/manifests/gateway-deployment.yaml | 45 +++++++++++++++++++++++++++ k8s/manifests/gateway-service.yaml | 16 ++++++++++ 2 files changed, 61 insertions(+) create mode 100644 k8s/manifests/gateway-deployment.yaml create mode 100644 k8s/manifests/gateway-service.yaml diff --git a/k8s/manifests/gateway-deployment.yaml b/k8s/manifests/gateway-deployment.yaml new file mode 100644 index 0000000..9d35ecf --- /dev/null +++ b/k8s/manifests/gateway-deployment.yaml @@ -0,0 +1,45 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hub-adaptor-gateway-deployment +spec: + selector: + matchLabels: + component: gateway-service + version: 0.1.0 + deployment-id: hub-adaptor + replicas: 1 + template: + metadata: + labels: + component: gateway-service + version: 0.1.0 + deployment-id: hub-adaptor + spec: + containers: + - name: api-gateway + image: ghcr.io/privateaim/node-hub-api-adapter:latest + imagePullPolicy: IfNotPresent # Maybe "Always" during debug + readinessProbe: + httpGet: + path: /healthz + port: 5000 + ports: + - containerPort: 5000 + env: + - name: API_CLIENT_ID + value: "api-client" + - name: IDP_URL + value: "keycloak-svc" # To be replaced + - name: IDP_REALM + value: "flame" + - name: RESULTS_SERVICE_URL + value: "results-svc" # To be properly filled in + - name: HUB_SERVICE_URL + value: "https://api.privateaim.net" + - name: HUB_AUTH_SERVICE_URL + value: "https://auth.privateaim.net" + - name: HUB_USERNAME + value: "thehubusername" # To be properly filled in + - name: HUB_PASSWORD + value: "thehubpassword" diff --git a/k8s/manifests/gateway-service.yaml b/k8s/manifests/gateway-service.yaml new file mode 100644 index 0000000..f33ed7e --- /dev/null +++ b/k8s/manifests/gateway-service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: hub-adaptor-gateway-service + labels: + component: gateway-service + version: 0.1.0 + deployment-id: hub-adaptor +spec: + ports: + - name: api + port: 5000 + selector: + component: gateway-service + version: 0.1.0 + deployment-id: hub-adaptor