Editing Kubectl apply
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
<code>[[kubectl apply --help]]</code> | <code>[[kubectl apply --help]]</code> | ||
− | |||
* <code>[[kubectl apply -f]] https://k8s.io/examples/pods/storage/redis.yaml</code> | * <code>[[kubectl apply -f]] https://k8s.io/examples/pods/storage/redis.yaml</code> | ||
Line 19: | Line 18: | ||
* [[Dashboard]]: <code>kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml</code> | * [[Dashboard]]: <code>kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml</code> | ||
+ | |||
+ | |||
* [[Istio install]]: <code>[[kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml]]</code> | * [[Istio install]]: <code>[[kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml]]</code> | ||
Line 24: | Line 25: | ||
persistentvolume/mysql-pv-volume created | persistentvolume/mysql-pv-volume created | ||
persistentvolumeclaim/mysql-pv-claim 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 == | == Activities == | ||
Line 29: | Line 34: | ||
== Errors == | == Errors == | ||
− | + | <code>[[Cannot unmarshal XXXXX into Go struct field]]</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == Related == | + | == Related commands == |
* <code>[[kubectl create]]</code> | * <code>[[kubectl create]]</code> | ||
* <code>[[kubectl edit]]</code> | * <code>[[kubectl edit]]</code> | ||
Line 62: | Line 43: | ||
* <code>[[kubectl apply --server-side]]</code> | * <code>[[kubectl apply --server-side]]</code> | ||
* <code>[[kubectl delete]]</code> | * <code>[[kubectl delete]]</code> | ||
− | |||
− | |||
== See also == | == See also == |
Advertising: