Create a YAML of a Pod without actually running the Pod with the kubectl command (use whatever image you prefer)
Answer
k run some-pod -o yaml --image nginx-unprivileged --dry-run=client > pod.yaml
k run some-pod -o yaml --image nginx-unprivileged --dry-run=client > pod.yaml