kubectl 1.37 · Viewing resources

Show a resource as YAML

Print the live definition of a resource.

kubectl get deployment web -o yaml

Official kubectl 1.37 documentation

More viewing resources commands

All viewing resources commands · kubectl 1.37 cheatsheet

Was this page helpful?