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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay