loomio (not yet working), and new config for postgres and redis
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: postgres
|
||||
name: {{ .namespace }}
|
||||
|
||||
@@ -9,4 +9,4 @@ spec:
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .apps.postgres.storage | default "10Gi" }}
|
||||
storage: {{ .storage }}
|
||||
|
||||
@@ -5,6 +5,6 @@ metadata:
|
||||
name: postgres
|
||||
spec:
|
||||
ports:
|
||||
- port: 5432
|
||||
- port: {{ .port }}
|
||||
selector:
|
||||
app: postgres
|
||||
|
||||
Reference in New Issue
Block a user