31 lines
739 B
YAML
31 lines
739 B
YAML
|
|
---
|
||
|
|
# VSO syncs the Cloudflare API token from Vault KV -> cert-manager namespace
|
||
|
|
# so the letsencrypt ClusterIssuer can use it for DNS-01 challenges.
|
||
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||
|
|
kind: VaultAuth
|
||
|
|
metadata:
|
||
|
|
name: kv
|
||
|
|
namespace: cert-manager
|
||
|
|
spec:
|
||
|
|
method: kubernetes
|
||
|
|
mount: kubernetes
|
||
|
|
kubernetes:
|
||
|
|
role: cert-manager-kv
|
||
|
|
serviceAccount: cert-manager
|
||
|
|
vaultConnectionRef: vault/vault
|
||
|
|
---
|
||
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||
|
|
kind: VaultStaticSecret
|
||
|
|
metadata:
|
||
|
|
name: cloudflare-api-token
|
||
|
|
namespace: cert-manager
|
||
|
|
spec:
|
||
|
|
type: kv-v2
|
||
|
|
mount: secret
|
||
|
|
path: cloudflare/cert-manager-dns01
|
||
|
|
destination:
|
||
|
|
name: cloudflare-api-token
|
||
|
|
create: true
|
||
|
|
overwrite: true
|
||
|
|
refreshAfter: 1h
|
||
|
|
vaultAuthRef: kv
|