Renamed postgres chart and rendered path to platform-postgres
This commit is contained in:
parent
d1dcd61e14
commit
2594962ae4
7 changed files with 3 additions and 3 deletions
6
charts/platform-postgres/Chart.yaml
Normal file
6
charts/platform-postgres/Chart.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v2
|
||||
name: postgres
|
||||
description: Chart for PostgreSQL using official Postgres image
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "18.4"
|
||||
13
charts/platform-postgres/templates/service.yaml
Normal file
13
charts/platform-postgres/templates/service.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ .Values.name }}
|
||||
ports:
|
||||
- name: postgres
|
||||
port: 5432
|
||||
targetPort: 5432
|
||||
49
charts/platform-postgres/templates/statefulset.yaml
Normal file
49
charts/platform-postgres/templates/statefulset.yaml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
serviceName: {{ .Values.name }}
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.name }}
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
containers:
|
||||
- name: postgres
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
name: postgres
|
||||
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
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: postgres-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.storage.className }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.storage.size }}
|
||||
18
charts/platform-postgres/values.yaml
Normal file
18
charts/platform-postgres/values.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: platform-postgres
|
||||
namespace: platform-services
|
||||
|
||||
image:
|
||||
repository: postgres
|
||||
tag: "18.4"
|
||||
|
||||
auth:
|
||||
database: postgres
|
||||
username: postgres
|
||||
secret: platform-postgres-secret
|
||||
|
||||
storage:
|
||||
className: longhorn
|
||||
size: 20Gi
|
||||
|
||||
nodeSelector:
|
||||
workload: app
|
||||
Loading…
Add table
Add a link
Reference in a new issue