Skip to content

Commit 0edd3a8

Browse files
authored
Update kubectl exec syntax to remove deprecation warning (#2218)
Problem: Troubleshooting guide contains a deprecated kubectl command syntax. Solution: Fix the kubectl command.
1 parent c9b271e commit 0edd3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/content/how-to/monitoring/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ LAST SEEN TYPE REASON OBJECT
7373
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`:
7474

7575
```shell
76-
kubectl exec -it -n nginx-gateway <ngf-pod-name> -c nginx /bin/sh
76+
kubectl exec -it -n nginx-gateway <ngf-pod-name> -c nginx -- /bin/sh
7777
```
7878

7979
#### Logs

0 commit comments

Comments
 (0)