Difference between revisions of "Kubectl apply"
Jump to navigation
Jump to search
↑ https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply
Line 28: | Line 28: | ||
* [[CKA v1.15]], [[CKA v1.21]]: [[Create and configure a basic Pod]] (<code>[[kubectl apply]]</code>) | * [[CKA v1.15]], [[CKA v1.21]]: [[Create and configure a basic Pod]] (<code>[[kubectl apply]]</code>) | ||
− | == Related | + | == Related commands == |
* <code>[[kubectl create]]</code> | * <code>[[kubectl create]]</code> | ||
* <code>[[kubectl edit]]</code> | * <code>[[kubectl edit]]</code> |
Revision as of 15:11, 9 November 2022
kubectl apply
apply a configuration to a resource by filename or stdin
[1]
kubectl apply --help
kubectl apply --dry-run=server
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-pv.yaml persistentvolume/mysql-pv-volume created persistentvolumeclaim/mysql-pv-claim created
kubectl apply -f ./file.yaml Error from server (InternalError): error when creating "./file.yaml": Internal error occurred: failed calling webhook "virtualmachines- mutator.kubevirt.io": Post https://virt-api.kubevirt.svc:443/virtualmachines-mutate?timeout=30s: service "virt-api" not found
Activities
Related commands
See also
kubectl apply, --server-side, -k, -f, creationTimestamp, kubectl.kubernetes.io/last-applied-configuration, --validate=false
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: