Argo/MetaObjects/cloudflare-keys.yml

33 lines
710 B
YAML
Raw Normal View History

2022-12-15 13:41:03 +01:00
apiVersion: external-secrets.io/v1alpha1
kind: SecretStore
metadata:
2022-12-15 13:53:38 +01:00
name: ext-cloudflare-backend
2022-12-15 13:45:51 +01:00
namespace: cert-manager
2022-12-15 13:41:03 +01:00
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:
2022-12-15 13:53:38 +01:00
name: ext-cloudflare
2022-12-15 13:45:51 +01:00
namespace: cert-manager
2022-12-15 13:41:03 +01:00
spec:
secretStoreRef:
2022-12-15 13:53:38 +01:00
name: ext-cloudflare-backend
2022-12-15 13:41:03 +01:00
kind: SecretStore
target:
2022-12-15 13:45:51 +01:00
name: cloudflare-api-token
2022-12-15 13:41:03 +01:00
data:
2022-12-15 13:45:51 +01:00
- secretKey: CLOUDFLARE_API_KEY
2022-12-15 13:41:03 +01:00
remoteRef:
key: cloudflare-api-token-secret
property: CLOUDFLARE_API_KEY