Skip to content

Commit 67d3d09

Browse files
committed
perf: add liveness and readiness probes to deployments
1 parent 810f6c0 commit 67d3d09

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

config/manager/manager.yaml

+4-5
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ spec:
3838
livenessProbe:
3939
httpGet:
4040
path: /healthz
41-
port: 8081
42-
initialDelaySeconds: 15
43-
periodSeconds: 20
41+
port: 8082
42+
periodSeconds: 5
43+
timeoutSeconds: 5
4444
readinessProbe:
4545
httpGet:
4646
path: /readyz
47-
port: 8081
48-
initialDelaySeconds: 5
47+
port: 8082
4948
periodSeconds: 10
5049
# TODO(user): Configure the resources accordingly based on the project requirements.
5150
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

deployment/deployment.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,15 @@ spec:
2525
requests:
2626
cpu: "2"
2727
memory: "2G"
28+
livenessProbe:
29+
httpGet:
30+
path: /healthz
31+
port: 8081
32+
periodSeconds: 5
33+
timeoutSeconds: 5
34+
readinessProbe:
35+
httpGet:
36+
path: /healthz
37+
port: 8081
38+
periodSeconds: 10
2839
serviceAccountName: instascale-sa

0 commit comments

Comments
 (0)