kubectl apply
Manage applications through files defining Kubernetes resources. Create and update resources in a cluster. More information: https://kubernetes.io/docs/reference/kubectl/generated/kubectl_apply/.
- Apply a configuration to a resource by file name:
kubectl apply
- Apply a configuration to a resource from
kustomization.yamlin a directory:
kubectl apply
- Apply a configuration to a resource by
stdin:
| kubectl apply -
- Edit the latest last-applied-configuration annotations of resources from the default editor:
kubectl apply edit-last-applied
- Set the latest last-applied-configuration annotations by setting it to match the contents of a file:
kubectl apply set-last-applied
- View the latest last-applied-configuration annotations by type/name or file:
kubectl apply view-last-applied
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
