Skip to content

Commit

Permalink
chore: Add PROBES_PORT environment variable and update targetPorts fo…
Browse files Browse the repository at this point in the history
…r existing services

Signed-off-by: kahirokunn <okinakahiro@gmail.com>
  • Loading branch information
kahirokunn committed Jun 6, 2023
1 parent b5c2135 commit 20b9f9a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions config/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 20b9f9a

Please sign in to comment.