mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
kubectl-edit: add page (#10174)
* kubectl-edit: add page --------- Co-authored-by: pixel <pixel+github@chrissx.de>
This commit is contained in:
parent
5bcfb117d4
commit
7bf330d088
1 changed files with 24 additions and 0 deletions
24
pages/common/kubectl-edit.md
Normal file
24
pages/common/kubectl-edit.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue