Kubernetes object management
| Management technique | Operates on | Recommended environment |
|---|---|---|
| Imperative commands | Live objects | Development projects |
| Imperative object configuration | Individual files | Production projects |
| Declarative object configuration | Directories of files | Production projects |
Examples:
Imperative commands:
kubectl create deployment nginx --image nginxImperative object configuration:
kubectl create -f nginx.yaml
kubectl delete -f nginx.yaml -f redis.yamlDeclarative object configuration:
kubectl apply -f path/to/folder/