vagrant@Master:~$ kubectl -n default exec -it nginx02-5d6589f49c-fk2bg bash error: exec…
- User
vagrant@Master:
kubectl -n default exec -it nginx02-5d6589f49c-fk2bg bash error: exec [POD] [COMMAND] is not supported anymore. Use exec [POD] -- [COMMAND] instead See 'kubectl exec -h' for help and examples vagrant@Master:$ - Assistant
The error message indicates that the syntax for the
kubectl execcommand has changed. You now need to add--before the command you want to run inside the pod.Instead of:
bashkubectl -n default exec -it nginx02-5d6589f49c-fk2bg bashUse:
bashkubectl -n default exec -it nginx02-5d6589f49c-fk2bg -- bashThe
--is used to separate the pod name from the command to be executed inside the pod.So in your case, try this command:
bashkubectl -n default exec -it nginx02-5d6589f49c-fk2bg -- bashThis should open an interactive bash shell inside the
nginx02-5d6589f49c-fk2bgpod. - User
vagrant@Master:
helm list -n web NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION nginx1 web 2 2025-07-15 06:56:50.210616064 +0000 UTC deployed nginx-21.0.6 1.29.0 vagrant@Master:helm list all Error: "helm list" accepts no arguments - Assistant
Let's clarify the commands and their correct usage to get the information you want:
1.
helm listand namespacesThe
helm listcommand lists Helm releases in a given namespace or in the default namespace if none is specified.-
To list releases in all namespaces, you need to add the flag
-Aor--all-namespaces(with a dash, not without, and no spaces inside):bashhelm list -Aor
bashhelm list --all-namespaces
Note:
helm list allorhelm list all-namespaceswithout the dash are invalid.
2.
helm get notesusage -
- User
vagrant@Master:~$ helm get values nginx1 --all Error: release: not found
- Assistant
The error
release: not foundindicates Helm cannot find the releasenginx1in the default namespace (which is likely your current context).Since your earlier
helm list -n webshowednginx1is in thewebnamespace, you need to specify the namespace when runninghelm get values.Try this:
bashhelm get values nginx1 -n web --allThis tells Helm to get all values (including those not explicitly set, i.e., all defaults and overrides) for the
nginx1release in thewebnamespace.
Summary
Always specify
-n <namespace>when the release is not in the default namespace.Example:
bashhelm get values <release-name> -n <namespace> [--all]So for you:
bashhelm get values nginx1 -n web --allLet me know if you get the output or if you hit any errors!