Skip to content

bormanbhaskar/k8s-yaml-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

k8s-yaml-extractor

This bash script will extract the pods specification file into yaml format.

This script can be useful when you have multiple kubernetes pods running under multiple namespaces. This script will extract all the pod's specification files into yaml format and store them inside a directory named with the namespace.

Uses:

  1. Copy the yaml_extractor.sh file into the target machine
  2. Run chmod +x yaml_extractor.sh
  3. ./yaml_extractor.sh
  4. Enter the namespaces in comma-separated format without any space in between

Note: Make sure the system has kubectl/kubeconfig preconfigured to make this script work.

About

This bash script will extract the pods specification file into yaml format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages