Skip to content

Commit

Permalink
kubernetes/connectivity-check: Add timeoutSeconds to deployment as well
Browse files Browse the repository at this point in the history
Fixes: 0bbb6c2 ("set explicit livenessProbe and readinessProbe timeout for connectivity checks that expect an L3 deny")

Signed-off-by: Thomas Graf <thomas@cilium.io>
  • Loading branch information
tgraf committed Apr 1, 2020
1 parent 2a583b1 commit 4459e83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/kubernetes/connectivity-check/pod-to-a-denied.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ spec:
command: ["/bin/ash", "-c", "sleep 1000000000"]
imagePullPolicy: IfNotPresent
livenessProbe:
timeoutSeconds: 7
exec:
command: ["ash", "-c", "! curl -sS --connect-timeout 5 -o /dev/null echo-a"]
readinessProbe:
timeoutSeconds: 7
exec:
command: ["ash", "-c", "! curl -sS --connect-timeout 5 -o /dev/null echo-a"]
---
Expand Down

0 comments on commit 4459e83

Please sign in to comment.