[Kubernetes] Building Your YAML Spec
- Building Your YAML spec
- We can get all the keys each kind supports
kubectl explain services --recursive
- Oh boy! Let's slow down
kubectl explain services.spec
- We can walk through the spec this way
kubectl explain services.spec.type
- spec: can have sub spec: of other resources
kubectl explain deployment.spec.template.spec.volumes.nfs.server
- END
- We can get all the keys each kind supports