Skip to content

Alcereo/kubernetes-configmap-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

kubernetes-configmap-exporter

Tiny util to export config maps data to installed files.

In some project, we needed to export the Spring-Boot config maps from kubernetes to external spring cloud config server. Faster option was to write this util. Maybe someone will come in handy.

Linux binary can taken from releases page.

Usage

To each config map in cubernates set label with file export indifitier:

...
  labels:
    dist-applicationm.yml: some-file.json
...
  • dist- - prefix to recognize exported label
  • applicationm.yml - file from config map to export
  • some-file.json - file in host to save data from file
# Export all configs data to files in folder
kubernetes-configmap-exporter -ns myproject -lb dist- -dir configs/

To login in cluster uses .kube/config dir files. Can override with parameter kubeconfig

About

Tiny util to export config maps data to installed files

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages