mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
242a6ee1ef
Signed-off-by: Moritz Johner <beller.moritz@googlemail.com> Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
19 lines
636 B
YAML
19 lines
636 B
YAML
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: database-credentials
|
|
spec:
|
|
refreshInterval: 1h # rate SecretManager pulls GCPSM
|
|
secretStoreRef:
|
|
kind: SecretStore
|
|
name: gcp-store # name of the SecretStore (or kind specified)
|
|
target:
|
|
name: database-credentials # name of the k8s Secret to be created
|
|
creationPolicy: Owner
|
|
data:
|
|
- secretKey: database_username
|
|
remoteRef:
|
|
key: database_username # name of the GCPSM secret key
|
|
- secretKey: database_password
|
|
remoteRef:
|
|
key: database_password # name of the GCPSM secret key
|