diff --git a/site/content/how-to/monitoring/troubleshooting.md b/site/content/how-to/monitoring/troubleshooting.md index 509469dec9..6de1f8f76e 100644 --- a/site/content/how-to/monitoring/troubleshooting.md +++ b/site/content/how-to/monitoring/troubleshooting.md @@ -73,7 +73,7 @@ LAST SEEN TYPE REASON OBJECT Getting shell access to containers allows developers and operators to view the environment of a running container, see its logs or diagnose any problems. To get shell access to the NGINX container, use `kubectl exec`: ```shell -kubectl exec -it -n nginx-gateway -c nginx /bin/sh +kubectl exec -it -n nginx-gateway -c nginx -- /bin/sh ``` #### Logs