volcengine-external-secrets.yaml 727 B

1234567891011121314151617181920212223
  1. apiVersion: external-secrets.io/v1
  2. kind: ExternalSecret
  3. metadata:
  4. name: my-app-secret
  5. spec:
  6. secretStoreRef:
  7. name: volcengine-kms
  8. kind: SecretStore
  9. target:
  10. name: db-credentials # The name of the K8s Secret to be created/updated
  11. data:
  12. # Case 1: Get the entire Secret (JSON format) from the secret manager and extract a single property
  13. - secretKey: password
  14. remoteRef:
  15. key: "my-app/db/credentials" # The name of the secret in the secret manager
  16. property: "password" # The field name in the JSON
  17. # Case 2: Do not specify a property, get the entire Secret from the secret manager and sync all its key-value pairs
  18. - secretKey: password
  19. remoteRef:
  20. key: "my-app/db/credentials"