Skip to content

Commit

Permalink
Remove env vars for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Apr 22, 2024
1 parent 5f07b5b commit b589921
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
18 changes: 0 additions & 18 deletions osm-seed/templates/db/db-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,6 @@ spec:
value: {{ default "postgres" .Values.db.env.POSTGRES_USER | quote }}
- name: PGDATA
value: {{ .Values.db.persistenceDisk.mountPath }}
- name: POSTGRES_DB_MAX_CONNECTIONS
value: {{ default 100 .Values.db.env.POSTGRES_DB_MAX_CONNECTIONS | quote }}
- name: POSTGRES_DB_SHARED_BUFFERS
value: {{ default "128MB" .Values.db.env.POSTGRES_DB_SHARED_BUFFERS | quote }}
- name: POSTGRES_DB_TEMP_BUFFERS
value: {{ default "8MB" .Values.db.env.POSTGRES_DB_TEMP_BUFFERS | quote }}
- name: POSTGRES_DB_WORK_MEM
value: {{ default "4MB" .Values.db.env.POSTGRES_DB_WORK_MEM | quote }}
- name: POSTGRES_DB_MAINTENANCE_WORK_MEM
value: {{ default "128MB" .Values.db.env.POSTGRES_DB_MAINTENANCE_WORK_MEM | quote }}
- name: POSTGRES_DB_EFFECTIVE_CACHE_SIZE
value: {{ default "4GB" .Values.db.env.POSTGRES_DB_EFFECTIVE_CACHE_SIZE | quote }}
- name: POSTGRES_DB_MAX_WAL_SIZE
value: {{ default "16MB" .Values.db.env.POSTGRES_DB_MAX_WAL_SIZE | quote }}
- name: POSTGRES_DB_MIN_WAL_SIZE
value: {{ default "5MB" .Values.db.env.POSTGRES_DB_MIN_WAL_SIZE | quote }}
- name: POSTGRES_DB_RANDOM_PAGE_COST
value: {{ default "4.0" .Values.db.env.POSTGRES_DB_RANDOM_PAGE_COST | quote }}
- name: POD_IP
valueFrom: { fieldRef: { fieldPath: status.podIP } }
livenessProbe:
Expand Down
11 changes: 1 addition & 10 deletions osm-seed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,7 @@ db:
env:
POSTGRES_DB: openstreetmap
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "abc"
POSTGRES_DB_MAX_CONNECTIONS: 100
POSTGRES_DB_SHARED_BUFFERS: 128MB
POSTGRES_DB_TEMP_BUFFERS: 8MB
POSTGRES_DB_WORK_MEM: 4MB
POSTGRES_DB_MAINTENANCE_WORK_MEM: 128MB
POSTGRES_DB_EFFECTIVE_CACHE_SIZE: 4GB
POSTGRES_DB_MAX_WAL_SIZE: 16MB
POSTGRES_DB_MIN_WAL_SIZE: 5MB
POSTGRES_DB_RANDOM_PAGE_COST: 4.0
POSTGRES_PASSWORD: 1234
persistenceDisk:
enabled: false
mountPath: /var/lib/postgresql/data
Expand Down

0 comments on commit b589921

Please sign in to comment.