azkv-external-secret.yaml 921 B

12345678910111213141516171819202122232425262728293031323334353637
  1. apiVersion: external-secrets.io/v1beta1
  2. kind: ExternalSecret
  3. metadata:
  4. name: example-external-secret
  5. spec:
  6. refreshInterval: 1h
  7. secretStoreRef:
  8. kind: SecretStore
  9. name: example-secret-store
  10. target:
  11. name: secret-to-be-created
  12. creationPolicy: Owner
  13. data:
  14. # name of the SECRET in the Azure KV (no prefix is by default a SECRET)
  15. - secretKey: dev-secret-test
  16. remoteRef:
  17. key: dev-secret-test
  18. # explicit type and name of secret in the Azure KV
  19. - secretKey: dev-another-secret-test
  20. remoteRef:
  21. key: secret/dev-secret-test
  22. # type/name of certificate in the Azure KV
  23. # raw value will be returned, use templating features for data processing
  24. - secretKey: dev-cert-test
  25. remoteRef:
  26. key: cert/dev-cert-test
  27. # type/name of the public key in the Azure KV
  28. # the key is returned PEM encoded
  29. - secretKey: dev-key-test
  30. remoteRef:
  31. key: key/dev-key-test