1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-23 16:04:14 +02:00

kubectl-edit: refresh page (#17650)

This commit is contained in:
Managor 2025-08-16 13:19:00 +03:00 committed by GitHub
parent ca0a29d671
commit 0ceba59d45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,17 +3,21 @@
> Edit Kubernetes resources.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#edit>.
- Edit a pod:
- Edit a pod in the default namespace:
`kubectl edit pod/{{pod_name}}`
`kubectl edit {{[po|pod]}}/{{pod_name}}`
- Edit a deployment:
- Edit a deployment in the default namespace:
`kubectl edit deployment/{{deployment_name}}`
`kubectl edit {{[deploy|deployment]}}/{{deployment_name}}`
- Edit a service:
- Edit a service in the default namespace:
`kubectl edit svc/{{service_name}}`
`kubectl edit {{[svc|service]}}/{{service_name}}`
- Edit all entries of a given resource in a given namespace:
`kubectl edit {{resource}} {{[-n|--namespace]}} {{namespace}}`
- Edit a resource using a specific editor: