kubectl get pods -n <namespace>
kubectl get pod <pod-name> -n <namespace> -o yaml > pod.yaml
pod.yaml
file and locate the container definition within the spec
section.command
or args
field to the container definition, specifying a command that does not launch the package management process. For example:
<pod-name>
and <namespace>
with the actual values for the affected pod.