KB:Kubectl EXPLAIN
Describe fields and structure of various resources.
This command describes the fields associated with each supported API resource. Fields are identified via a simple JSONPath identifier:
Behind the scenes, kubectl just made an API request to my Kubernetes cluster, grabbed the current Swagger documentation of the API version running in the cluster, and output the documentation and object types.
kubectl explain deployment
kubectl explain deployment --recursive
kubectl explain deployment.spec.strategy
References:
https://kubernetes.io/docs/reference/kubectl/generated/kubectl_explain/
https://blog.heptio.com/kubectl-explain-heptioprotip-ee883992a243
Comments
Post a Comment