passworddepot-external-secret-json.yaml 556 B

123456789101112131415161718
  1. apiVersion: external-secrets.io/v1alpha1
  2. kind: ExternalSecret
  3. metadata:
  4. name: passworddepot-external-secret-example
  5. spec:
  6. refreshInterval: 1h0m0s
  7. secretStoreRef:
  8. kind: SecretStore
  9. name: passworddepot-secret-store # Must match SecretStore on the cluster
  10. target:
  11. name: passworddepot-secret-to-create # Name for the secret to be created on the cluster
  12. creationPolicy: Owner
  13. # each property in the secret will be used as the secret key in the SECRET k8s target object
  14. dataFrom:
  15. - key: "Production.mySecret" # Key of the secret