Skip to content

Commit bd7e0ef

Browse files
authored
Add Readiness and liveness Probing [CD] (#1056)
* add readyz probe Signed-off-by: Ujjwal Chakraborty <[email protected]>
1 parent a878f14 commit bd7e0ef

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

bundle/manifests/ibm-iam-operator.clusterserviceversion.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,22 @@ spec:
316316
image: icr.io/cpopen/ibm-iam-operator:4.13.0
317317
imagePullPolicy: IfNotPresent
318318
name: ibm-iam-operator
319+
livenessProbe:
320+
failureThreshold: 10
321+
httpGet:
322+
path: /healthz
323+
port: 8081
324+
initialDelaySeconds: 120
325+
periodSeconds: 60
326+
timeoutSeconds: 10
327+
readinessProbe:
328+
failureThreshold: 10
329+
httpGet:
330+
path: /readyz
331+
port: 8081
332+
initialDelaySeconds: 3
333+
periodSeconds: 20
334+
timeoutSeconds: 3
319335
resources:
320336
limits:
321337
cpu: 25m

config/manager/bases/manager.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,22 @@ spec:
7979
value: ""
8080
- name: cluster_name
8181
value: ""
82+
livenessProbe:
83+
failureThreshold: 10
84+
httpGet:
85+
path: /healthz
86+
port: 8081
87+
initialDelaySeconds: 120
88+
periodSeconds: 60
89+
timeoutSeconds: 10
90+
readinessProbe:
91+
failureThreshold: 10
92+
httpGet:
93+
path: /readyz
94+
port: 8081
95+
initialDelaySeconds: 3
96+
periodSeconds: 20
97+
timeoutSeconds: 3
8298
resources:
8399
limits:
84100
cpu: 25m

helm/templates/10-deployment.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,22 @@ spec:
270270
image: {{ .Values.cpfs.imagePullPrefix | default .Values.global.imagePullPrefix }}/{{ .Values.cpfs.imageRegistryNamespaceOperator }}/ibm-iam-operator:{{ .Values.operator.imageTag }}
271271
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
272272
name: ibm-iam-operator
273+
livenessProbe:
274+
failureThreshold: 10
275+
httpGet:
276+
path: /healthz
277+
port: 8081
278+
initialDelaySeconds: 120
279+
periodSeconds: 60
280+
timeoutSeconds: 10
281+
readinessProbe:
282+
failureThreshold: 10
283+
httpGet:
284+
path: /readyz
285+
port: 8081
286+
initialDelaySeconds: 3
287+
periodSeconds: 20
288+
timeoutSeconds: 3
273289
resources:
274290
limits:
275291
cpu: 25m

0 commit comments

Comments
 (0)