1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-15 17:51:01 +00:00
external-secrets/docs/snippets/senhasegura-dsm-external-secret-single.yaml
2022-05-02 13:28:18 -03:00

22 lines
739 B
YAML

---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: example-secret
spec:
refreshInterval: "30s"
secretStoreRef:
name: senhasegura
kind: SecretStore
target:
name: example-secret
data:
# Define API_SETTINGS Kubernetes Secret key, with json-encoded values from senhasegura secret with identifier "api-settings"
- secretKey: API_SETTINGS
remoteRef:
key: api-settings # Secret Identifier in senhasegura
# Define API_SETTINGS_TOKEN Kubernetes Secret key, with single secret key (TOKEN) from senhasegura as string
- secretKey: API_SETTINGS_TOKEN
remoteRef:
key: api-settings # Secret Identifier in senhasegura
property: TOKEN # Optional, Key name within secret