Skip to content

Instantly share code, notes, and snippets.

@k4kratik
Last active October 19, 2023 11:14
Show Gist options
  • Save k4kratik/1df82010dd5f7263608b03adaecd5069 to your computer and use it in GitHub Desktop.
Save k4kratik/1df82010dd5f7263608b03adaecd5069 to your computer and use it in GitHub Desktop.
ExternalSecret maniefest
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: sample-external-secrets
namespace: vault-operator
spec:
refreshInterval: 15s
secretStoreRef:
name: vault-secret-store # name of the secret store
kind: ClusterSecretStore
target:
name: sample-k8s-secret-created-by-external-secrets # Name of K8s secret object
creationPolicy: Orphan
dataFrom:
- extract:
key: secret/sample-application-secrets # Path in Vault and name of the secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment