kubectl apply
Jump to navigation
Jump to search
↑ https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply
Apply a configuration to a resource by filename or stdin
[1]
kubectl apply -f https://k8s.io/examples/pods/storage/redis.yaml
kubectl apply -f ./secret.yaml
kubectl apply --dry-run=server
- Dashboard: 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[edit]
Related commans[edit]
See also[edit]
- Pods:
kubectl apply
,kubectl create
,kubectl get
,kubectl top pod
,kubectl delete pod
kubectl
: [create
|delete
|edit
|apply
|exec
|get
|set
|rolling-update
|rollout
|logs
|run
|auth
|label
|version
|top
|diff
|debug
|replace
|describe
|config
|port-forward
|scale
|rollout
|api-resources
|proxy
|expose deployment
|expose
|get endpoints
|~/.kube/config
|kubectl logs --help
|kubectl --help
- Kubernetes: CKA, CKS, Kubernetes installation, Kubernetes Workloads,
kubeadm
,Kubernetes API
, Kubernetes API Server,kubectl
,kubeadm
,kubelet
, KOPS, Cloud services, Helm, Kubernetes RBAC, Kubernetes deployments, Minikube, Rancher, OpenShift, Charmed Kubernetes, Ingress, Kubernetes timeline, Kubernetes scheduler, Kubernetes logging, Kubernetes operator, Orka,kind: Pod
, Kubernetes namespaces, Changelog/Versions, Kubernetes dashboard, Kubernetes Metrics Server, Field Selectors