From 20b9f9a67cfe9a64f9d7acd36cc52c9e76e05d6c Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Tue, 30 May 2023 14:23:28 +0900 Subject: [PATCH] chore: Add PROBES_PORT environment variable and update targetPorts for existing services Signed-off-by: kahirokunn --- config/webhook.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config/webhook.yaml b/config/webhook.yaml index a0376c6150b..19ee8fd43a1 100644 --- a/config/webhook.yaml +++ b/config/webhook.yaml @@ -101,6 +101,10 @@ spec: value: config-leader-election - name: CONFIG_FEATURE_FLAGS_NAME value: feature-flags + # If you change PROBES_PORT, you will also need to change the + # containerPort "probes" to the same value. + - name: PROBES_PORT + value: "8080" # If you change WEBHOOK_PORT, you will also need to change the # containerPort "https-webhook" to the same value. - name: WEBHOOK_PORT @@ -139,6 +143,7 @@ spec: # This must match the value of the environment variable WEBHOOK_PORT. - name: https-webhook containerPort: 8443 + # This must match the value of the environment variable PROBES_PORT. - name: probes containerPort: 8080 livenessProbe: @@ -179,15 +184,16 @@ spec: # Define metrics and profiling for them to be accessible within service meshes. - name: http-metrics port: 9090 - targetPort: 9090 + targetPort: metrics - name: http-profiling port: 8008 - targetPort: 8008 + targetPort: profiling - name: https-webhook port: 443 targetPort: https-webhook - name: probes port: 8080 + targetPort: probes selector: app.kubernetes.io/name: webhook app.kubernetes.io/component: webhook