Difference between revisions of "Kubectl apply"
Jump to navigation
Jump to search
↑ https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 42: | Line 42: | ||
== See also == | == See also == | ||
* {{kubectl apply}} | * {{kubectl apply}} | ||
− | |||
− | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Revision as of 12:51, 24 March 2023
kubectl apply
apply a configuration to a resource by filename or stdin
[1]
kubectl apply --help
kubectl apply -f https://k8s.io/examples/pods/storage/redis.yaml
kubectl apply --dry-run=server
kubectl apply --server-side
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
kubectl create
kubectl edit
kubectl run
kubectl get
kubectl apply --server-side
Cannot unmarshal XXXXX into Go struct field
See also
kubectl apply, --server-side, -k, -f, creationTimestamp, kubectl.kubernetes.io/last-applied-configuration, --validate=false
Advertising: