Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.71 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.71 KB

Berglas Secret Controller

Test GitHub release License Coverage Status

What is this?

This is CustomController of Kubernetes for berglas secret. You can use berglas in Kubernetes to use Custom Webhook. But, this is a bit invconvinience, because you should grant all ServiceAccount permission of Deployment. So, you should set ServiceAccount every time you create new service. This Berglas Secret Controller can change all berglas secret once you install this.

Usage

TODO

Use in local

  1. build this repository
git clone https://github.com/kitagry/berglas-secret-controller
cd berglas-secret-controller
make
  1. Create CRD in Kubernetes
make install
  1. Run CustomController
make run
  1. Create Custom Resource

Open new terminal window.

# Write ./config/samples/batch_v1alpha1_berglassecret.yaml by your favorite editor.
kubectl apply -f ./config/samples/batch_v1alpha1_berglassecret.yaml
  1. Check the secret
kubectl get secret
kubectl describe secret <BeglasSecret name>