k8s-dotenv
A commandline tool to fetch, merge and convert secrets and config maps in kubernetes to a dot env file.
Install
Download from the Releases page, extract and put in PATH.
Alternatively, use install.sh to download and extract the latest version automatically.
Usage
CronJob
k8s-dotenv get cj <DAEMONSET_NAME>
Deployment
k8s-dotenv get deploy <DEPLOYMENT_NAME>
DaemonSet
k8s-dotenv get ds <DAEMONSET_NAME>
Job
k8s-dotenv get job <DAEMONSET_NAME>
Help
k8s-dotenv --help
Shell Completions
k8s-dotenv comes with shell completions for bash, zsh, fish and powershell built-in. After install, run k8s-dotenv completion --help
for information.