A

Admin • 833.24K Points
Coach

Q. How do you export a deployment’s configuration to a YAML file?

  • (A) kubectl get deployment myapp > deploy.yaml
  • (B) kubectl fetch deployment myapp -o yaml
  • (C) kubectl get deployment myapp -o yaml > deploy.yaml
  • (D) kubectl yaml deployment myapp
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category Kubernetes
  • Hashtags:

Explanation by: Admin

`kubectl get` with `-o yaml` outputs the configuration which can be redirected to a file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.