From a7ca7428070ee5bda0f0db93a95a876bf48cfd46 Mon Sep 17 00:00:00 2001 From: Bruce Schultz Date: Fri, 5 Apr 2024 13:21:57 +0200 Subject: [PATCH] refactor(k8s): use port name --- k8s/helm/gateway/templates/gateway-deployment.yaml | 8 ++++---- k8s/manifests/gateway-deployment.yaml | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/k8s/helm/gateway/templates/gateway-deployment.yaml b/k8s/helm/gateway/templates/gateway-deployment.yaml index ec5751b..6f2a165 100644 --- a/k8s/helm/gateway/templates/gateway-deployment.yaml +++ b/k8s/helm/gateway/templates/gateway-deployment.yaml @@ -20,13 +20,13 @@ spec: - 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 name: http-result-srv + readinessProbe: + httpGet: + path: /healthz + port: http-result-srv env: - name: API_CLIENT_ID value: {{ .Values.env.API_CLIENT_ID | default "hub-adapter" | quote }} diff --git a/k8s/manifests/gateway-deployment.yaml b/k8s/manifests/gateway-deployment.yaml index c0801ad..2a9d164 100644 --- a/k8s/manifests/gateway-deployment.yaml +++ b/k8s/manifests/gateway-deployment.yaml @@ -20,12 +20,13 @@ spec: - name: api-gateway image: ghcr.io/privateaim/node-hub-api-adapter:latest imagePullPolicy: IfNotPresent # Maybe "Always" during debug + ports: + - containerPort: 5000 + name: http-result-srv readinessProbe: httpGet: path: /healthz - port: 5000 - ports: - - containerPort: 5000 + port: http-result-srv env: - name: API_CLIENT_ID value: "hub-adapter"