Doppler is a secrets management tool that has been used extensively with this project.
doppler run -- deno run --allow-net --allow-env --allow-read=./src main.ts
- Kubernetes cluster with the Doppler operator installed
- A doppler configuration has been created for the environment you are deploying
to (in this case we will refer to it as
stg
but it could be anything) - A service token has been created for the doppler configuration
- Create a new namespace in your cluster for the test
kubectl create namespace keys-test
- Create the doppler access token secret Replace
dp.st.dev.XXXX
with the service token for the target doppler environmentkubectl create secret generic keys-local-helm-test \ --namespace doppler-operator-system \ --from-literal=serviceToken=dp.st.dev.XXXX
- Create the secret mapping
kubectl apply -f - <<EOF apiVersion: secrets.doppler.com/v1alpha1 kind: DopplerSecret metadata: name: local-helm-test namespace: doppler-operator-system spec: tokenSecret: name: keys-local-helm-test managedSecret: name: keys-secret namespace: keys-test type: Opaque EOF
- The doppler operator should now automatically create a secret called
keys-secret
. You can confirm this with the following command:kubectl describe -n keys-test secret keys-secret
- You can now deploy the application using helm as documented in the README