Skip to content

Commit

Permalink
Merge pull request #502 from ironcladlou/socket-probe
Browse files Browse the repository at this point in the history
Bug 1844727: Use socket readiness probe to avoid generating zombies
  • Loading branch information
openshift-merge-robot committed Dec 1, 2020
2 parents a0ded63 + 7e7f499 commit 06667d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
7 changes: 2 additions & 5 deletions bindata/etcd/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,8 @@ ${COMPUTED_ENV_VARS}
memory: 600Mi
cpu: 300m
readinessProbe:
exec:
command:
- /bin/sh
- -ec
- "lsof -n -i :2380 | grep LISTEN"
tcpSocket:
port: 2380
failureThreshold: 3
initialDelaySeconds: 3
periodSeconds: 5
Expand Down
7 changes: 2 additions & 5 deletions bindata/etcd/restore-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,8 @@ ${COMPUTED_ENV_VARS}
memory: 600Mi
cpu: 300m
readinessProbe:
exec:
command:
- /bin/sh
- -ec
- "lsof -n -i :2380 | grep LISTEN"
tcpSocket:
port: 2380
failureThreshold: 3
initialDelaySeconds: 3
periodSeconds: 5
Expand Down
14 changes: 4 additions & 10 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 06667d9

Please sign in to comment.