Moved platform databases to platform-postgres
This commit is contained in:
parent
d68864b7e4
commit
5ee0a9e59d
8 changed files with 57 additions and 53 deletions
|
|
@ -22,7 +22,7 @@ route:
|
|||
servicePort: 3000
|
||||
|
||||
database:
|
||||
host: postgres.database.svc.cluster.local
|
||||
host: platform-postgres.platform-services.svc.cluster.local
|
||||
port: 5432
|
||||
name: forgejo
|
||||
user: forgejo
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@ openproject:
|
|||
name: "IT Admin"
|
||||
mail: "it.admin@symcrest.com"
|
||||
|
||||
cron:
|
||||
enabled: false
|
||||
|
||||
hocuspocus:
|
||||
enabled: false
|
||||
|
||||
|
|
@ -38,7 +41,7 @@ persistence:
|
|||
postgresql:
|
||||
bundled: false
|
||||
connection:
|
||||
host: postgres.database.svc.cluster.local
|
||||
host: platform-postgres.platform-services.svc.cluster.local
|
||||
port: 5432
|
||||
auth:
|
||||
existingSecret: openproject-postgres-secret
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: postgres
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: postgres
|
||||
app: {{ .Values.name }}
|
||||
ports:
|
||||
- name: postgres
|
||||
port: 5432
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: postgres
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
serviceName: postgres
|
||||
serviceName: {{ .Values.name }}
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: postgres
|
||||
app: {{ .Values.name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: postgres
|
||||
app: {{ .Values.name }}
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
|
|
@ -22,22 +22,28 @@ spec:
|
|||
ports:
|
||||
- containerPort: 5432
|
||||
name: postgres
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: postgres-secret
|
||||
env:
|
||||
- name: POSTGRES_DB
|
||||
value: {{ .Values.auth.database | quote }}
|
||||
- name: POSTGRES_USER
|
||||
value: {{ .Values.auth.username | quote }}
|
||||
- name: POSTGRES_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.auth.secret }}
|
||||
key: password
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
volumeMounts:
|
||||
- name: postgres-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
env:
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: postgres-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.storage.className | quote }}
|
||||
storageClassName: {{ .Values.storage.className }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.storage.size | quote }}
|
||||
storage: {{ .Values.storage.size }}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
namespace: database
|
||||
name: platform-postgres
|
||||
namespace: platform-services
|
||||
|
||||
image:
|
||||
repository: postgres
|
||||
|
|
@ -7,7 +8,7 @@ image:
|
|||
auth:
|
||||
database: postgres
|
||||
username: postgres
|
||||
secret: postgres-secret
|
||||
secret: platform-postgres-secret
|
||||
|
||||
storage:
|
||||
className: longhorn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue