keepersecurity-push-secret.yaml 537 B

1234567891011121314151617181920
  1. apiVersion: external-secrets.io/v1alpha1
  2. kind: PushSecret
  3. metadata:
  4. name: example
  5. spec:
  6. secretStoreRefs:
  7. - name: keeper
  8. kind: SecretStore
  9. refreshInterval: "1h0m0s"
  10. deletionPolicy: Delete
  11. selector:
  12. secret:
  13. name: secret-name # k8s secret to be pushed
  14. data:
  15. - match:
  16. secretKey: secret-key # k8s key within the secret to be pushed
  17. remoteRef:
  18. remoteKey: remote-secret-name/remote-secret-key # This will create a record called "remote-secret-name" with a key "remote-secret-key"