akeyless-external-secret-json.yaml 572 B

12345678910111213141516171819
  1. apiVersion: external-secrets.io/v1
  2. kind: ExternalSecret
  3. metadata:
  4. name: database-credentials
  5. spec:
  6. refreshInterval: 1h
  7. secretStoreRef:
  8. kind: SecretStore
  9. name: akeyless-secret-store # Must match SecretStore on the cluster
  10. target:
  11. name: database-credentials-json # Name for the secret to be created on the cluster
  12. creationPolicy: Owner
  13. # for json formatted secrets: each key in the json will be used as the secret key in the SECRET k8s target object
  14. dataFrom:
  15. - extract:
  16. key: database-credentials # Full path of the secret on Akeyless