From 6b35eae662fc91781bf88129437bfb98168b4e4d Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Mon, 9 Sep 2024 16:13:54 +0200 Subject: [PATCH] OZG-6665 Expose management port in service --- src/main/helm/templates/deployment.yaml | 8 ++++---- src/main/helm/templates/service.yaml | 2 +- src/test/helm/deployment_probes_test.yaml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml index 87244a81..c27b5d9f 100644 --- a/src/main/helm/templates/deployment.yaml +++ b/src/main/helm/templates/deployment.yaml @@ -138,13 +138,13 @@ spec: name: http protocol: TCP - containerPort: 9002 - name: management + name: metrics protocol: TCP readinessProbe: failureThreshold: 3 httpGet: path: /q/health/ready - port: management + port: metrics scheme: HTTP periodSeconds: 10 successThreshold: 1 @@ -153,7 +153,7 @@ spec: failureThreshold: 10 httpGet: path: /q/health/started - port: management + port: metrics scheme: HTTP initialDelaySeconds: 30 periodSeconds: 10 @@ -164,7 +164,7 @@ spec: failureThreshold: 10 httpGet: path: /q/health/started - port: management + port: metrics scheme: HTTP initialDelaySeconds: 15 periodSeconds: 5 diff --git a/src/main/helm/templates/service.yaml b/src/main/helm/templates/service.yaml index 9f92dffa..cd4042a8 100644 --- a/src/main/helm/templates/service.yaml +++ b/src/main/helm/templates/service.yaml @@ -39,7 +39,7 @@ spec: - name: http port: 8080 protocol: TCP - - name: management + - name: metrics port: 9002 protocol: TCP selector: diff --git a/src/test/helm/deployment_probes_test.yaml b/src/test/helm/deployment_probes_test.yaml index 3eecd342..519e64d0 100644 --- a/src/test/helm/deployment_probes_test.yaml +++ b/src/test/helm/deployment_probes_test.yaml @@ -53,7 +53,7 @@ tests: failureThreshold: 10 httpGet: path: /q/health/started - port: management + port: metrics scheme: HTTP initialDelaySeconds: 15 periodSeconds: 5 @@ -72,7 +72,7 @@ tests: failureThreshold: 3 httpGet: path: /q/health/ready - port: management + port: metrics scheme: HTTP periodSeconds: 10 successThreshold: 1 @@ -86,7 +86,7 @@ tests: failureThreshold: 10 httpGet: path: /q/health/started - port: management + port: metrics scheme: HTTP initialDelaySeconds: 30 periodSeconds: 10 -- GitLab