diff --git a/osm-seed/templates/tiler-db/tiler-db-statefulset.yaml b/osm-seed/templates/tiler-db/tiler-db-statefulset.yaml index 724f1f04..3f0c1a43 100644 --- a/osm-seed/templates/tiler-db/tiler-db-statefulset.yaml +++ b/osm-seed/templates/tiler-db/tiler-db-statefulset.yaml @@ -79,6 +79,8 @@ spec: - name: tiler-db-postgresql-config mountPath: /etc/postgresql/ {{- end }} + - name: shared-memory + mountPath: /dev/shm {{- if .Values.tilerDb.resources.enabled }} resources: requests: @@ -101,6 +103,10 @@ spec: configMap: name: {{ .Release.Name }}-tiler-db-postgresql-config {{- end }} + - name: shared-memory + emptyDir: + medium: Memory + sizeLimit: {{ .Values.tilerDb.sharedMemorySize }} {{- if .Values.tilerDb.nodeSelector.enabled }} nodeSelector: {{ .Values.tilerDb.nodeSelector.label_key }} : {{ .Values.tilerDb.nodeSelector.label_value }} diff --git a/osm-seed/values.yaml b/osm-seed/values.yaml index 2a345d6d..ada552a7 100644 --- a/osm-seed/values.yaml +++ b/osm-seed/values.yaml @@ -376,6 +376,7 @@ tilerDb: # GCP GCP_gcePersistentDisk_pdName: osmseed-disk-tilerdb-v1 GCP_gcePersistentDisk_size: 50Gi + sharedMemorySize: 64Mi resources: enabled: false requests: @@ -526,6 +527,21 @@ tilerServerCacheCleaner: minReplicas: 1 maxReplicas: 2 cpuUtilization: 60 + +tilerCacheCleanerJob: + enabled: false + tilesFile: imposm/imposm3_expire_dir/latest.tiles + minZoom: 0 + maxZoom: 20 + overwrite: true + resources: + enabled: false + requests: + memory: "1Gi" + cpu: "500m" + limits: + memory: "2Gi" + cpu: "1" # ==================================================================================================== # Variables for Tasking Manager DB # ====================================================================================================