Skip to content

Instantly share code, notes, and snippets.

@juanluisbaptiste
Created September 1, 2022 02:35
Show Gist options
  • Save juanluisbaptiste/a7fd1084f4ae1f97f97cb9f438338219 to your computer and use it in GitHub Desktop.
Save juanluisbaptiste/a7fd1084f4ae1f97f97cb9f438338219 to your computer and use it in GitHub Desktop.
Drone.io Kubernetes secrets extensions example file
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