DEV Community

loading...

kubectl export YAML | Get YAML for deployed kubernetes resources(service, deployment, PV, PVC....)

jhooq profile image Rahul Wagh ・1 min read

In this lab session on "How to export the YAML using kubectl?" we will focus on -

  1. Individual yaml - kubectl get service SERVICE_NAME kubectl get deployment DEPLOYMENT_NAME
  2. All deployed resources - Kubectl get deploy --all-namespaces
  3. Automated Bash Script to generate YAMLs for everything running inside kubernetes cluster

Discussion (0)

pic
Editor guide