kubectl edit
Edit Kubernetes resources. More information: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#edit.
-
Edit a pod:
kubectl edit pod/{{pod_name}}
-
Edit a deployment:
kubectl edit deployment/{{deployment_name}}
-
Edit a service:
kubectl edit svc/{{service_name}}
-
Edit a resource using a specific editor:
KUBE_EDITOR={{nano}} kubectl edit {{resource}}/{{resource_name}}
-
Edit a resource in JSON format:
kubectl edit {{resource}}/{{resource_name}} --output json
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.