DEV Community

Rahul Wagh
Rahul Wagh

Posted on

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

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

Top comments (0)