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 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | + | Apply a configuration to a [[resource]] by filename or [[stdin]]<ref>https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply</ref> | |
− | |||
− | |||
− | * <code> | + | * <code>kubectl apply -f https://k8s.io/examples/pods/storage/redis.yaml</code> |
− | + | * <code>kubectl apply -f ./[[secret.yaml]]</code> | |
− | * <code> | ||
− | |||
− | |||
− | |||
− | |||
* <code>[[kubectl apply -k]]</code> | * <code>[[kubectl apply -k]]</code> | ||
* <code> kubectl apply --dry-run=server</code> | * <code> kubectl apply --dry-run=server</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 15: | ||
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 | kubectl apply -f ./file.yaml | ||
− | Error from server (InternalError): error when creating "./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 == | |
− | + | * [[CKA v1.15]], [[CKA v1.21]]: [[Create and configure a basic Pod]] (<code>[[kubectl apply]]</code>) | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Related commans == | |
− | |||
− | |||
− | |||
− | == Related == | ||
* <code>[[kubectl create]]</code> | * <code>[[kubectl create]]</code> | ||
* <code>[[kubectl edit]]</code> | * <code>[[kubectl edit]]</code> | ||
* <code>[[kubectl run]]</code> | * <code>[[kubectl run]]</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | * {{kubectl | + | * {{Pods}} |
+ | * {{kubectl}} | ||
+ | * {{K8s}} | ||
+ | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Advertising: