Skip to content

Commit

Permalink
Add env var LOG_STATEMENT for api db (#329)
Browse files Browse the repository at this point in the history
* Add timeout for ingress - web api

* Update web ingress and deploy config

* Update env var for web

* Add env var for LOG_STATEMENT
  • Loading branch information
Rub21 authored May 25, 2024
1 parent f5e51e8 commit ae0d3a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions osm-seed/templates/db/db-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ spec:
value: {{ .Values.db.persistenceDisk.mountPath }}
- name: POD_IP
valueFrom: { fieldRef: { fieldPath: status.podIP } }
- name: LOG_STATEMENT
value: {{ default "none" .Values.db.env.LOG_STATEMENT | quote }}
livenessProbe:
exec:
command:
Expand Down
4 changes: 4 additions & 0 deletions osm-seed/templates/web/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ spec:
value: {{ .Values.web.env.ORGANIZATION_NAME | default "OpenStreetMap"}}
- name: WEBSITE_STATUS
value: {{ .Values.web.env.WEBSITE_STATUS | default "online"}}
- name: API_TIMEOUT
value: {{ .Values.web.env.API_TIMEOUT | default "30" | quote }}
- name: WEB_TIMEOUT
value: {{ .Values.web.env.WEB_TIMEOUT | default "30" | quote }}
volumeMounts:
- mountPath: /dev/shm
name: shared-memory
Expand Down
2 changes: 1 addition & 1 deletion osm-seed/templates/web/web-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod-issuer
nginx.ingress.kubernetes.io/proxy-body-size: 20m
nginx.ingress.kubernetes.io/proxy-body-size: 100m
spec:
ingressClassName: nginx
tls:
Expand Down
4 changes: 4 additions & 0 deletions osm-seed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ db:
POSTGRES_DB: openstreetmap
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
LOG_STATEMENT: "all"
# LOG_STATEMENT=all, ddl, mod
persistenceDisk:
enabled: false
mountPath: /var/lib/postgresql/data
Expand Down Expand Up @@ -126,6 +128,8 @@ web:
OAUTH_KEY: "xyz"
ORGANIZATION_NAME: "OSMSeed"
WEBSITE_STATUS: "online"
API_TIMEOUT: 30
WEB_TIMEOUT: 30
resources:
enabled: false
requests:
Expand Down

0 comments on commit ae0d3a2

Please sign in to comment.