loomio (not yet working), and new config for postgres and redis

This commit is contained in:
2025-12-30 03:39:19 +00:00
parent 1b78abbdc4
commit 8818d822cf
19 changed files with 452 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: postgres
image: "{{ .apps.postgres.image }}"
image: "{{ .image }}"
args:
[
"-c",
@@ -35,16 +35,16 @@ spec:
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
- name: TZ
value: "{{ .apps.postgres.timezone }}"
value: "{{ .timezone }}"
- name: POSTGRES_DB
value: "{{ .apps.postgres.database }}"
value: "{{ .database }}"
- name: POSTGRES_USER
value: "{{ .apps.postgres.user }}"
value: "{{ .user }}"
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secrets
key: apps.postgres.password
key: password
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data

View File

@@ -4,10 +4,13 @@ description: PostgreSQL is a powerful, open source object-relational database sy
version: 1.0.0
icon: https://www.postgresql.org/media/img/about/press/elephant.png
defaultConfig:
namespace: postgres
host: postgres.postgres.svc.cluster.local
port: 5432
database: postgres
user: postgres
storage: 10Gi
image: pgvector/pgvector:pg15
timezone: UTC
requiredSecrets:
- apps.postgres.password
defaultSecrets:
- key: password

View File

@@ -1,4 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: postgres
name: {{ .namespace }}

View File

@@ -9,4 +9,4 @@ spec:
storageClassName: longhorn
resources:
requests:
storage: {{ .apps.postgres.storage | default "10Gi" }}
storage: {{ .storage }}

View File

@@ -5,6 +5,6 @@ metadata:
name: postgres
spec:
ports:
- port: 5432
- port: {{ .port }}
selector:
app: postgres