Creates Secrets containing random data.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
deploy
examples
scripts
LICENSE
README.md docs: Update README Nov 9, 2018

README.md

Random Secret Operator

The random secret operator creates Secrets containing random data.

This is useful for frameworks like Django, that need a SECRET_KEY to initialise cryptography, and needs to be the same across multiple instances.

Install metacontroller

Follow the upstream guide

Start the Operator

# Create the operator
$ kubectl apply -f deploy/operator.yaml
$ kubectl apply -f deploy/code.yaml

# Wait for the pod status to be Running
$ kubectl --namespace randomsecret get pod
NAME                                     READY     STATUS        RESTARTS   AGE
randomsecret-operator-6db7d8c7cf-l8vr4   1/1       Running       0          3s


# View the random secret CRD
$ kubectl get crd randomsecrets.randomsecrets.mikebryant.me.uk
NAME                                           AGE
randomsecrets.randomsecrets.mikebryant.me.uk   32s

Create the example RandomSecret Resource

# Create the example
$ kubectl apply -f examples/resource.yaml

# See the example resource
$ kubectl -n default get randomsecrets
NAME      AGE
minimal   12s

Cleanup

$ kubectl delete -f examples
$ kubectl delete -f deploy