How to create Kubernetes YAML files the smart way with kubectl
To save time, and ensure the syntax and formatting are correct, a more efficient way to create a YAML file with the specs for a pod is to use kubectl and the --dry-run flag.
$ kubectl run pod --image nginx --dry-run=client -o yaml > nginx-pod.yaml
T...
bernieops.com1 min read