Fix kustomization: remove shelfmark/docuseal, recreate affine gateway files
This commit is contained in:
55
affine/postgres/postgres.yaml
Normal file
55
affine/postgres/postgres.yaml
Normal 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
|
||||
12
affine/postgres/postgresql-pvc.yaml
Normal file
12
affine/postgres/postgresql-pvc.yaml
Normal 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
|
||||
14
affine/postgres/postgresql-svc.yaml
Normal file
14
affine/postgres/postgresql-svc.yaml
Normal 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
|
||||
Reference in New Issue
Block a user