ngrok-push-secret-with-metadata.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. apiVersion: external-secrets.io/v1alpha1
  2. kind: PushSecret
  3. metadata:
  4. name: ngrok-push-secret-example
  5. spec:
  6. deletionPolicy: Delete
  7. refreshInterval: 10m # Refresh interval for which push secret will reconcile
  8. secretStoreRefs: # A list of secret stores to push secrets to
  9. - name: ngrok # Must match SecretStore on the cluster
  10. kind: SecretStore
  11. selector:
  12. secret:
  13. name: SECRET_NAME # Source Kubernetes secret to be pushed
  14. data:
  15. - match:
  16. # The key in the Kubernetes secret to push. Leave empty to push all keys, JSON encoded.
  17. # secretKey: ""
  18. secretKey: MY_K8S_SECRET_KEY
  19. remoteRef:
  20. remoteKey: MY_NGROK_SECRET_NAME # The name of the secret in the ngrok vault
  21. metadata:
  22. apiVersion: kubernetes.external-secrets.io/v1alpha1
  23. kind: PushSecretMetadata
  24. spec:
  25. # See https://ngrok.com/docs/api/resources/secrets/#parameters
  26. # We currently support customizing the description and metadata for the secret.
  27. description: "This is a secret for the API credentials"
  28. # Metadata for the secret in the ngrok vault. This will be merged with auto-generated metadata.
  29. metadata:
  30. environment: production
  31. team: devops