Skip to content

Kubectl exec deprecation warning in troubleshooting document #2217

Closed
@aknot242

Description

@aknot242

Describe the bug
Instructions in troubleshooting document uses an outdated kubectl exec syntax that throws a deprecation warning.

To Reproduce
Steps to reproduce the behavior:

❯ kubectl exec -it -n nginx-gateway $NGINX_POD -c nginx /bin/sh
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
E0710 07:52:34.700510   45075 websocket.go:296] Unknown stream id 1, discarding message
       / $ exit
❯ kubectl exec -it -n nginx-gateway $NGINX_POD -c nginx -- /bin/sh
/ $ 

Expected behavior

❯ kubectl exec -it -n nginx-gateway $NGINX_POD -c nginx -- /bin/sh
/ $ 

Your environment

❯ kubectl version
Client Version: v1.30.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.1-eks-1de2ab1

Additional context
Add any other context about the problem here. Any log files you want to share.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions