Kubernetes object management

Management techniqueOperates onRecommended environment
Imperative commandsLive objectsDevelopment projects
Imperative object configurationIndividual filesProduction projects
Declarative object configurationDirectories of filesProduction projects

Examples:

Imperative commands:

kubectl create deployment nginx --image nginx

Imperative object configuration:

kubectl create -f nginx.yaml
kubectl delete -f nginx.yaml -f redis.yaml

Declarative object configuration:

kubectl apply -f path/to/folder/

Read more