fixed yamls for postgres values

This commit is contained in:
Damien Ostler 2024-02-10 01:30:35 -05:00
parent 3c879feb4e
commit 0ce180fbe4
4 changed files with 22 additions and 15 deletions

View File

@ -31,6 +31,17 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
env:
- name: Database__Host
value: '{{ .Values.postgresDatabase }}'
- name: Database__Port
value: '{{ .Values.postgresUser }}'
- name: Database__Database
value: '{{ .Values.postgresDatabase }}'
- name: Database__username
value: '{{ .Values.postgresUser }}'
- name: Database__password
value: '{{ .Values.postgresPassword }}'
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}

View File

@ -39,10 +39,11 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000
postgresUser: postgres
postgresPassword: "postgres"
postgresDatabase: postgres
postgresHost : "acid-minimal-cluster"
postgresPort : 5432
postgresUser: "postgres"
postgresPassword: "tbXeXzpmPK8l5e3DW6S3IXxzIO9CYCx0d5Ow0q50jgLyx0USEselZuC9JIuJi8Oo"
postgresDatabase: comissionsapp
service:
type: ClusterIP
port: 8080

View File

@ -32,15 +32,11 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
env:
- name: Database__Host
- name: POSTGRES_DB
value: '{{ .Values.postgresDatabase }}'
- name: Database__Port
- name: POSTGRES_USER
value: '{{ .Values.postgresUser }}'
- name: Database__Database
value: '{{ .Values.postgresDatabase }}'
- name: Database__username
value: '{{ .Values.postgresUser }}'
- name: Database__password
- name: POSTGRES_PASSWORD
value: '{{ .Values.postgresPassword }}'
- name: {{ .Chart.Name }}
securityContext:

View File

@ -4,17 +4,16 @@
replicaCount: 1
postgresHost : ""
postgresPort : 5432
postgresUser: postgres
postgresPassword: "postgres"
postgresDatabase: postgres
image:
repository: postgres
pullPolicy: IfNotPresent
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "14.3-alpine"
tag: "16"
imagePullSecrets: []
nameOverride: ""