Quick Actions
kubectl apply
Description
Apply a configuration to a resource by filename or stdin.
Command
kubectl apply
Examples
Apply from file
kubectl apply -f deployment.yaml
Apply from directory
kubectl apply -f ./k8s/
Dry run
kubectl apply -f deployment.yaml --dry-run=client
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-f |
string | No | Filename, directory, or URL to files |
-k |
string | No | Process a kustomization directory |
--dry-run |
string | No | Only print the object that would be sent |
Command Info
Category:
Resource Management
Type:
Kubernetes
Views:
12
Status:
Active
Tags
deploy
create
update