Files
Cluster/external-secrets/secret-store.yaml
T
2026-10-18 18:30:26 +02:00

32 lines
1.1 KiB
YAML

apiVersion: external-secrets.io/v1
kind: ClusterSecretStore
metadata:
name: vault-backend
spec:
provider:
vault:
server: "http://vault.hashicorp-vault.svc.cluster.local:8200"
path: "secret-kv"
version: "v2"
auth:
# Authenticate against Vault using a Kubernetes ServiceAccount
# token stored in a Secret.
# https://www.vaultproject.io/docs/auth/kubernetes
kubernetes:
# Path where the Kubernetes authentication backend is mounted in Vault
mountPath: "kubernetes-authentication"
# A required field containing the Vault Role to assume.
role: "eso-service-account-allow-rule"
# Optional service account field containing the name
# of a kubernetes ServiceAccount
serviceAccountRef:
name: "eso-vault-sa"
namespace: external-secrets
# audiences:
# - vault
# # Optional secret field containing a Kubernetes ServiceAccount JWT
# # used for authenticating with Vault
# secretRef:
# name: "my-secret"
# key: "vault"