Providing Feedback

Provide feedback at the survey

  • Edit a live Resource in an editor

Editing Resources


Directly modify a Resource in the cluster by opening its Config in an editor.


Edit allows a user to directly edit a Resource in a cluster rather than editing it through a local file.

# Edit the service named 'docker-registry':
kubectl edit svc/docker-registry
# Use an alternative editor
KUBE_EDITOR="nano" kubectl edit svc/docker-registry
# Edit the job 'myjob' in JSON using the v1 API format:
kubectl edit job.v1.batch/myjob -o json
# Edit the deployment 'mydeployment' in YAML and save the modified config in its annotation:
kubectl edit deployment/mydeployment -o yaml --save-config

results matching ""

    No results matching ""