CHORE(pgweb): use ClusterSecretStore instead of namespace Secret

- Change to ClusterSecretStore
- Simplify secret management
This commit is contained in:
2025-12-29 21:52:23 +09:00
parent 588861a53b
commit c537136c1d
4 changed files with 1 additions and 25 deletions

View File

@@ -2,7 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- deployment.yaml - deployment.yaml
- vault/serviceaccount.yaml
- vault/secretstore.yaml
- vault/pgweb-secret.yaml - vault/pgweb-secret.yaml
- ingress.yaml - ingress.yaml

View File

@@ -6,7 +6,7 @@ metadata:
spec: spec:
refreshInterval: 1h refreshInterval: 1h
secretStoreRef: secretStoreRef:
kind: SecretStore kind: ClusterSecretStore
name: vault-backend name: vault-backend
target: target:
name: pgweb-password name: pgweb-password

View File

@@ -1,17 +0,0 @@
apiVersion: external-secrets.io/v1
kind: SecretStore
metadata:
name: vault-backend
namespace: pgweb
spec:
provider:
vault:
server: http://vault.vault.svc.cluster.local:8200
path: secret
version: v2
auth:
kubernetes:
mountPath: kubernetes
role: pgweb
serviceAccountRef:
name: external-secrets

View File

@@ -1,5 +0,0 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: external-secrets
namespace: pgweb