Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitagry/berglas-secret-controller
CustomController of K8s for berglas secret.
https://github.com/kitagry/berglas-secret-controller
berglas customcontroller k8s kubernetes
Last synced: 6 days ago
JSON representation
CustomController of K8s for berglas secret.
- Host: GitHub
- URL: https://github.com/kitagry/berglas-secret-controller
- Owner: kitagry
- Created: 2021-04-25T06:12:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T05:58:23.000Z (3 months ago)
- Last Synced: 2024-11-02T04:12:10.702Z (13 days ago)
- Topics: berglas, customcontroller, k8s, kubernetes
- Language: Go
- Homepage:
- Size: 229 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Berglas Secret Controller
[![Test](https://github.com/kitagry/berglas-secret-controller/actions/workflows/test.yaml/badge.svg)](https://github.com/kitagry/berglas-secret-controller/actions/workflows/test.yaml)
[![GitHub release](https://img.shields.io/github/v/tag/kitagry/berglas-secret-controller.svg?sort=semver)](https://github.com/kitagry/berglas-secret-controller/releases)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Coverage Status](https://coveralls.io/repos/github/kitagry/berglas-secret-controller/badge.svg?branch=main)](https://coveralls.io/github/kitagry/berglas-secret-controller?branch=main)### What is this?
This is CustomController of Kubernetes for berglas secret.
You can use berglas in Kubernetes to use [Custom Webhook](https://github.com/GoogleCloudPlatform/berglas/tree/main/examples/kubernetes).
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
```bash
git clone https://github.com/kitagry/berglas-secret-controller
cd berglas-secret-controller
make
```2. Create CRD in Kubernetes
```bash
make install
```3. Run CustomController
```bash
make run
```4. Create Custom Resource
Open new terminal window.
```bash
# Write ./config/samples/batch_v1alpha1_berglassecret.yaml by your favorite editor.
kubectl apply -f ./config/samples/batch_v1alpha1_berglassecret.yaml
```5. Check the secret
```
kubectl get secret
kubectl describe secret
```