Skip to content

Commit

Permalink
Add readiness and liveness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
CatherineF-dev committed May 6, 2024
1 parent adccd05 commit 76c0d81
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
17 changes: 17 additions & 0 deletions custom-metrics-stackdriver-adapter/deploy/production/adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,23 @@ spec:
command:
- /adapter
- --use-new-resource-model=false
- --secure-port=6443
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,23 @@ spec:
- /adapter
- --use-new-resource-model=true
- --fallback-for-container-metrics=true
- --secure-port=6443
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,23 @@ spec:
- /adapter
- --use-new-resource-model=true
- --fallback-for-container-metrics=true
- --secure-port=6443
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,23 @@ spec:
command:
- /adapter
- --use-new-resource-model=false
- --secure-port=6443
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,23 @@ spec:
- /adapter
- --use-new-resource-model=true
- --enable-core-metrics-api
- --secure-port=6443
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand Down

0 comments on commit 76c0d81

Please sign in to comment.