kubectl-edit
Edit Kubernetes resources. tldr-pages
On several platforms
Several platforms
Edit a pod in the default namespace
kubectl edit [po/pod_nameIdentifyEdit a deployment in the default namespace
kubectl edit [deploy/deployment_nameIdentifyEdit a service in the default namespace
kubectl edit [svc/service_nameIdentifyEdit all entries of a given resource in a given namespace
kubectl edit resource --namespace namespaceIdentify--namespaceIf present, the namespace scope for this CLI request kubectl referenceEdit a resource using a specific editor
KUBE_EDITOR=nano kubectl edit resource/resource_nameIdentifyEdit a resource in JSON format
kubectl edit resource/resource_name --output jsonIdentify--outputOutput format. kubectl reference