How do I get the PodSpec of a replication controller using kubectl?

10/5/2015

How can I output the PodSpec of a replication controller using kubectl?

I tried kubectl describe rc <name>

but the output doesn't include the PodSpec.

-- Jeremy Lewi
google-kubernetes-engine
kubernetes

1 Answer

10/5/2015

You can see the pod.spec for a replicationController using kubectl get and the --output=json or --output-yaml arguments. Something like this should work:

kubectl get rc <rc_name> --output=yaml
-- rwehner
Source: StackOverflow