主页

索引

模块索引

搜索页面

3.2.8. kubectl edit

Usage:

kubectl edit (RESOURCE/NAME | -f FILENAME) [options]

实例:

// 修改定时
kubectl edit cronjob <cronjobName>

Examples:

# 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

主页

索引

模块索引

搜索页面