kubectlDeploying

kubectl apply

Creates or updates resources to match a manifest file — the standard way to deploy declaratively.

Syntax

kubectl apply -f <file>

Examples

Apply every manifest in a directory

kubectl apply -f k8s/