Commit b4c0e64
authored
Improve nginx deployment (#4085)
1. For 60 seconds, check if no containers in the pod crash loop and
only then declare that the pod ready.
2. Add readiness probe. Traffic will be forwarded only to pods that
pass the readiness check.
3. Adjust probes to start only after 60 seconds to match the change
mention in 1.
4. During upgrade, allow an additional pod to be scheduled for the
new replicaset.
5. Don't allow the deployment to have less that 3 pod ready, even during
upgrade.
Signed-off-by: gbenhaim <gbenhaim@redhat.com>1 parent d0850ac commit b4c0e64
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
| |||
0 commit comments