mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-16 18:02:55 +02:00
37 lines
855 B
YAML
37 lines
855 B
YAML
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: ghost-mysql-env
|
|
namespace: ghost-blog
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "1"
|
|
spec:
|
|
refreshInterval: "15m"
|
|
secretStoreRef:
|
|
name: vault-backend
|
|
kind: ClusterSecretStore
|
|
target:
|
|
name: ghost-mysql-env
|
|
creationPolicy: Owner
|
|
data:
|
|
- secretKey: MYSQL_DATABASE
|
|
remoteRef:
|
|
key: kv/ghost-blog/mysql
|
|
property: database
|
|
- secretKey: MYSQL_USER
|
|
remoteRef:
|
|
key: kv/ghost-blog/mysql
|
|
property: username
|
|
- secretKey: MYSQL_PASSWORD
|
|
remoteRef:
|
|
key: kv/ghost-blog/mysql
|
|
property: password
|
|
- secretKey: MYSQL_ROOT_PASSWORD
|
|
remoteRef:
|
|
key: kv/ghost-blog/mysql
|
|
property: root_password
|
|
# - secretKey: MYSQL_HOST
|
|
# remoteRef:
|
|
# key: kv/ghost-blog/mysql
|
|
# property: host
|