Skip to content

kosli-dev/k8s-config-management-with-kosli

 
 

Repository files navigation

Tracking K8S configmaps with Kosli

This is a demo repo to show how to track kubernetes configmaps in Kosli, where the configmaps are synced with google config sync.

You can find the demo config maps here

1. Report configmap changes with Github Actions and Kosli Flows

When a change to the source repo occurs, the main action runs to report the configmaps to kosli. To get a reproducible result, we "compile" the yaml to a sorted json format in the attest-artifacts.sh script.

An improvement would be to add an option to only report configmaps that change in the git commit.

2. Monitoring the configmaps

A second Github Action is defined to record the configmaps in the kubernetes cluster. This runs manually, but can also be set up to run on a schedule. You can view the readme for the proces here.

About

Demo for tracking k8s configmaps with Kosli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 59.5%
  • Shell 40.5%