Shrikanth Rajgopalan:
Hi all - basic question on YAML manifests - normally I lookup the k8s documentation for a sample YAML for creating objects ( I remember the basic ones but some like cron or cronjob I can’t remember). Is there an easier way to get all the possible fields that can be included in a pod spec in YAML - perhaps from the kubectl cli?
Shwetha Shenoy V:
kubectl explain
command will output the fields in the spec but not in YAML format.
Pierpaolo P:
kubectl explain cj --recursive
but believe me you don’t need to know all the fields
Poorni:
Faster way is to use the imperative commands to get the base yaml and then amend where needed. Heard in exam speed is the important factor