Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit e56132d

Browse files
lblackstonederekparker
authored andcommitted
pkg: Add liveness probes for scheduler and controller manager (#391)
1 parent 934d207 commit e56132d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkg/asset/internal/templates.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ spec:
303303
- --service-account-private-key-file=/etc/kubernetes/secrets/service-account.key
304304
- --leader-elect=true
305305
- --cloud-provider={{ .CloudProvider }}
306+
livenessProbe:
307+
httpGet:
308+
path: /healthz
309+
port: 10252 # Note: Using default port. Update if --port option is set differently.
310+
initialDelaySeconds: 15
311+
timeoutSeconds: 15
306312
volumeMounts:
307313
- name: secrets
308314
mountPath: /etc/kubernetes/secrets
@@ -353,6 +359,13 @@ spec:
353359
- ./hyperkube
354360
- scheduler
355361
- --leader-elect=true
362+
livenessProbe:
363+
httpGet:
364+
path: /healthz
365+
port: 10251 # Note: Using default port. Update if --port option is set differently.
366+
initialDelaySeconds: 15
367+
timeoutSeconds: 15
368+
356369
`)
357370
SchedulerDisruptionTemplate = []byte(`apiVersion: policy/v1beta1
358371
kind: PodDisruptionBudget

0 commit comments

Comments
 (0)