Created
September 1, 2022 02:35
-
-
Save juanluisbaptiste/a7fd1084f4ae1f97f97cb9f438338219 to your computer and use it in GitHub Desktop.
Drone.io Kubernetes secrets extensions example file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rbac: | |
## The namespace that the extension is allowed to fetch secrets from. Unless | |
## rbac.restrictToSecrets is set below, the extension will be able to pull all secrets in | |
## the namespace specified here. | |
## | |
secretNamespace: default | |
## The keys within the "env" map are mounted as environment variables on the secrets extension pod. | |
## | |
env: | |
## REQUIRED: Shared secret value for comms between the Kubernetes runner and this secrets plugin. | |
## Must match the value set in the runner's env.DRONE_SECRET_PLUGIN_TOKEN. | |
## Ref: https://kube-runner.docs.drone.io/installation/reference/drone-secret-plugin-token/ | |
## | |
SECRET_KEY: your-shared-secret-value-here | |
## The Kubernetes namespace to retrieve secrets from. | |
## | |
KUBERNETES_NAMESPACE: default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment