From ff61f02a8b6d820c3e69cd23ea2f53376df31c11 Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Mon, 20 Dec 2021 15:54:37 +0100 Subject: [PATCH] refactor: change health check port --- chart/templates/deployment.yaml | 4 ++-- cmd/jspolicy/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index eb38f78e..76d20a45 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -63,7 +63,7 @@ spec: livenessProbe: httpGet: path: /healthz - port: 80 + port: 9080 failureThreshold: 10 initialDelaySeconds: 5 periodSeconds: 10 @@ -72,7 +72,7 @@ spec: readinessProbe: httpGet: path: /healthz - port: 80 + port: 9080 failureThreshold: 10 initialDelaySeconds: 5 periodSeconds: 10 diff --git a/cmd/jspolicy/main.go b/cmd/jspolicy/main.go index cd0a8f6e..a0f5f44f 100644 --- a/cmd/jspolicy/main.go +++ b/cmd/jspolicy/main.go @@ -216,7 +216,7 @@ func main() { handler := http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {}) // listen and serve - _ = http.ListenAndServe(":80", handler) + _ = http.ListenAndServe(":9080", handler) }() // start leader election for controllers