forked from projectcontour/contour
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
site: add troubleshooting doc for unready Envoy
Also recommends setting resource requests on containers. Updates projectcontour#4851. Signed-off-by: Steve Kriss <[email protected]>
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
site/content/docs/main/troubleshooting/envoy-container-draining.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Envoy container stuck in unready/draining state | ||
|
||
It's possible for the Envoy containers to become stuck in an unready/draining state. | ||
This is an unintended side effect of the shutdown-manager sidecar container being restarted by the kubelet. | ||
For more details on exactly how this happens, see [this issue][1]. | ||
|
||
If you observe Envoy containers in this state, you should `kubectl delete` them to allow new Pods to be created to replace them. | ||
|
||
To make this issue less likely to occur, you should: | ||
- ensure you have [resource requests][2] on all your containers | ||
- ensure you do **not** have a liveness probe on the shutdown-manager sidecar container in the envoy daemonset (this was removed from the example YAML in Contour 1.24.0). | ||
|
||
If the above are not sufficient for preventing the issue, you may also add a liveness probe to the envoy container itself, like the following: | ||
|
||
```yaml | ||
livenessProbe: | ||
httpGet: | ||
path: /ready | ||
port: 8002 | ||
initialDelaySeconds: 15 | ||
periodSeconds: 5 | ||
failureThreshold: 6 | ||
``` | ||
This will help the envoy container recover if it does become stuck in this state. | ||
[1]: https://github.com/projectcontour/contour/issues/4851 | ||
[2]: /docs/{{< param latest_version >}}/deploy-options/#setting-resource-requests-and-limits |