File tree Expand file tree Collapse file tree 3 files changed +46
-2
lines changed
hack/charts/cluster-api-operator Expand file tree Collapse file tree 3 files changed +46
-2
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,30 @@ spec:
123
123
{{- toYaml . | nindent 12 }}
124
124
{{- end }}
125
125
terminationMessagePolicy : FallbackToLogsOnError
126
+ {{- $healthAddr := $.Values.healthAddr }}
127
+ {{- if contains ":" $healthAddr -}}
128
+ {{ $healthAddr = ( split ":" $.Values.healthAddr)._1 | int }}
129
+ {{- end }}
130
+ livenessProbe :
131
+ failureThreshold : 3
132
+ httpGet :
133
+ path : /healthz
134
+ port : {{ $healthAddr | default 9440 }}
135
+ scheme : HTTP
136
+ initialDelaySeconds : 15
137
+ periodSeconds : 20
138
+ successThreshold : 1
139
+ timeoutSeconds : 1
140
+ readinessProbe :
141
+ failureThreshold : 3
142
+ httpGet :
143
+ path : /readyz
144
+ port : {{ $healthAddr | default 9440 }}
145
+ scheme : HTTP
146
+ initialDelaySeconds : 5
147
+ periodSeconds : 10
148
+ successThreshold : 1
149
+ timeoutSeconds : 1
126
150
terminationGracePeriodSeconds : 10
127
151
{{- with .Values.volumes }}
128
152
volumes :
Original file line number Diff line number Diff line change 23
23
pullPolicy : IfNotPresent
24
24
env :
25
25
manager : []
26
- healthAddr : " :8081"
27
26
diagnosticsAddress : " :8443"
27
+ healthAddr : " :9440"
28
28
insecureDiagnostics : false
29
29
watchConfigSecret : false
30
30
imagePullSecrets : {}
Original file line number Diff line number Diff line change @@ -28386,7 +28386,7 @@ spec:
28386
28386
containers:
28387
28387
- args:
28388
28388
- --v=2
28389
- - --health-addr=:8081
28389
+ - --health-addr=:9440
28390
28390
- --diagnostics-address=:8443
28391
28391
- --leader-elect=true
28392
28392
command:
@@ -28413,6 +28413,26 @@ spec:
28413
28413
name: cert
28414
28414
readOnly: true
28415
28415
terminationMessagePolicy: FallbackToLogsOnError
28416
+ livenessProbe:
28417
+ failureThreshold: 3
28418
+ httpGet:
28419
+ path: /healthz
28420
+ port: 9440
28421
+ scheme: HTTP
28422
+ initialDelaySeconds: 15
28423
+ periodSeconds: 20
28424
+ successThreshold: 1
28425
+ timeoutSeconds: 1
28426
+ readinessProbe:
28427
+ failureThreshold: 3
28428
+ httpGet:
28429
+ path: /readyz
28430
+ port: 9440
28431
+ scheme: HTTP
28432
+ initialDelaySeconds: 5
28433
+ periodSeconds: 10
28434
+ successThreshold: 1
28435
+ timeoutSeconds: 1
28416
28436
terminationGracePeriodSeconds: 10
28417
28437
volumes:
28418
28438
- name: cert
You can’t perform that action at this time.
0 commit comments