Thanks to visit codestin.com
Credit goes to github.com

Skip to content

h3adex/kubeenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This script is designed to extract environment variables from a deployment, allowing you to replicate the runtime configuration on your local machine. It requires two input parameters: the context name of the target cluster and the deployment name. The script will extract all environment variables, ConfigMap values, and Secret values, then save them to a .env file.

How to run this:

# Install dependencies 
# go mod download
go run cmd/main.go --context my-kubernetes-cluster-01 --deployment web-app-01
# Environment variables written to .env

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages