Fix kustomization: remove shelfmark/docuseal, recreate affine gateway files

This commit is contained in:
2026-06-02 19:32:03 +02:00
parent d7bf168d17
commit cb7ec67524
15 changed files with 372 additions and 14 deletions

View File

@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: affine-postgresql
namespace: affine
spec:
replicas: 1
selector:
matchLabels:
app: affine-postgresql
serviceName: affine-postgresql
template:
metadata:
labels:
app: affine-postgresql
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 60
containers:
- name: affine-postgresql
image: pgvector/pgvector:pg17
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
ports:
- containerPort: 5432
volumeMounts:
- name: affine-postgresql-database
mountPath: /var/lib/postgresql/volumes/pgdata
env:
- name: PGDATA
value: /var/lib/postgresql/volumes/pgdata/data
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: affine-secrets
key: db_name
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: affine-secrets
key: db_user
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: affine-secrets
key: db_password
volumes:
- name: affine-postgresql-database
persistentVolumeClaim:
claimName: affine-postgresql-pvc

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: affine-postgresql-pvc
namespace: affine
spec:
accessModes:
- ReadWriteMany
storageClassName: longhorn
resources:
requests:
storage: 5Gi

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: affine-postgresql
namespace: affine
spec:
selector:
app: affine-postgresql
type: ClusterIP
ports:
- name: postgresql
protocol: TCP
port: 5432
targetPort: 5432