Skip to content

Commit

Permalink
Merge pull request #24340 from cjwagner/controller-manager-liveness
Browse files Browse the repository at this point in the history
Configure liveness and readiness probes for prow-controller-manager.
  • Loading branch information
k8s-ci-robot authored Nov 15, 2021
2 parents e14c34d + fb01480 commit d853d3b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config/prow/cluster/prow_controller_manager_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ metadata:
spec:
# Mutually exclusive with plank. Only one of them may have more than zero replicas.
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
revisionHistoryLimit: 2
selector:
matchLabels:
Expand Down Expand Up @@ -57,6 +62,18 @@ spec:
- name: job-config
mountPath: /etc/job-config
readOnly: true
livenessProbe: # Pod is killed if this fails 3 times.
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 10
periodSeconds: 5
readinessProbe: # Pod is not considered ready (for rolling deploy and request routing) if this fails 3 times.
httpGet:
path: /healthz/ready
port: 8081
initialDelaySeconds: 10
periodSeconds: 3
volumes:
- name: kubeconfig
secret:
Expand Down

0 comments on commit d853d3b

Please sign in to comment.