Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 810
Jeremy Lewi Avatar asked Jun 19 '26 10:06

Jeremy Lewi


1 Answers

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
like image 161
rwehner Avatar answered Jun 21 '26 08:06

rwehner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!