wb: deploy SpiceDB with external PostgreSQL datastore

This commit is contained in:
ivan 2026-11-27 16:58:17 +05:00
parent cfb61e1c9d
commit a12566f5a8
4 changed files with 63 additions and 0 deletions

View File

@ -1,6 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../infrastructure/spicedb/wb
- ../../../infrastructure/istio-config
- ../../../infrastructure/vault
- ../../../infrastructure/openobserve

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- spicedb.yaml

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: spicedb
labels:
istio-injection: disabled

View File

@ -0,0 +1,51 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: spicedb
namespace: spicedb
spec:
interval: 5m
timeout: 10m
chart:
spec:
chart: spicedb
version: 0.1.4-prod
sourceRef:
kind: HelmRepository
name: yc-oci-charts
namespace: flux-system
interval: 10m
install:
remediation:
retries: 3
upgrade:
remediation:
retries: 0
remediateLastFailure: false
values:
replicas: 1
image:
repository: cr.yandex/crp3ccidau046kdj8g9q/spicedb-prod
tag: v1.54.0
imagePullSecrets:
- name: regcred
datastore:
mode: external
database: spicedb
username: spicedb
auth:
existingSecret: spicedb-secret
istio:
enabled: false
deploymentName: spicedb
resources:
requests:
cpu: 100m
memory: 256Mi
migration:
hook:
enabled: true
resources:
requests:
cpu: 100m
memory: 128Mi