32 lines
634 B
YAML
32 lines
634 B
YAML
|
apiVersion: external-secrets.io/v1alpha1
|
||
|
kind: SecretStore
|
||
|
metadata:
|
||
|
name: vault-backend
|
||
|
namespace: vault
|
||
|
spec:
|
||
|
provider:
|
||
|
vault:
|
||
|
server: "http://vault.vault:8200"
|
||
|
path: "kv"
|
||
|
version: "v2"
|
||
|
auth:
|
||
|
kubernetes:
|
||
|
mountPath: "kubernetes"
|
||
|
role: "kube-role"
|
||
|
---
|
||
|
apiVersion: external-secrets.io/v1alpha1
|
||
|
kind: ExternalSecret
|
||
|
metadata:
|
||
|
name: vault-example
|
||
|
spec:
|
||
|
secretStoreRef:
|
||
|
name: vault-backend
|
||
|
kind: SecretStore
|
||
|
target:
|
||
|
name: my-thing
|
||
|
data:
|
||
|
- secretKey: foobar
|
||
|
remoteRef:
|
||
|
key: cloudflare-api-token-secret
|
||
|
property: CLOUDFLARE_API_KEY
|