Skip to content

Commit c28d377

Browse files
committed
perf: add liveness and readiness probes to deployments
1 parent d39bcfe commit c28d377

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

config/manager/manager.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ spec:
3939
httpGet:
4040
path: /healthz
4141
port: 8081
42-
initialDelaySeconds: 15
43-
periodSeconds: 20
42+
periodSeconds: 5
43+
timeoutSeconds: 5
4444
readinessProbe:
4545
httpGet:
4646
path: /readyz
4747
port: 8081
48-
initialDelaySeconds: 5
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: /readyz
37+
port: 8081
38+
periodSeconds: 10
2839
serviceAccountName: instascale-sa

0 commit comments

Comments
 (0)