Skip to content

Commit

Permalink
Use etcd's /health endpoint for readiness checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ironcladlou committed Oct 22, 2020
1 parent e223dc4 commit b401acf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions bindata/etcd/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,17 @@ ${COMPUTED_ENV_VARS}
--advertise-client-urls=https://${NODE_NODE_ENVVAR_NAME_IP}:2379 \
--listen-client-urls=https://${LISTEN_ON_ALL_IPS}:2379 \
--listen-peer-urls=https://${LISTEN_ON_ALL_IPS}:2380 \
--listen-metrics-urls=https://${LISTEN_ON_ALL_IPS}:9978 || mv /etc/kubernetes/etcd-backup-dir/etcd-member.yaml /etc/kubernetes/manifests
--listen-metrics-urls=https://${LISTEN_ON_ALL_IPS}:9978,http://${LISTEN_ON_ALL_IPS}:9989 || mv /etc/kubernetes/etcd-backup-dir/etcd-member.yaml /etc/kubernetes/manifests
env:
${COMPUTED_ENV_VARS}
resources:
requests:
memory: 600Mi
cpu: 300m
readinessProbe:
exec:
command:
- /bin/sh
- -ec
- "lsof -n -i :2380 | grep LISTEN"
httpGet:
path: /health
port: 9989
failureThreshold: 3
initialDelaySeconds: 3
periodSeconds: 5
Expand Down
10 changes: 4 additions & 6 deletions pkg/operator/etcd_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b401acf

Please sign in to comment.