akeyless-external-secret.yaml 688 B

12345678910111213141516171819202122
  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 # Name for the secret to be created on the cluster
  12. creationPolicy: Owner
  13. data:
  14. - secretKey: username # Key given to the secret to be created on the cluster
  15. remoteRef:
  16. key: db-username # Full path of the secret on Akeyless
  17. - secretKey: password # Key given to the secret to be created on the cluster
  18. remoteRef:
  19. key: db-password # Full path of the secret on Akeyless