diff --git a/charts/trino/templates/configmap-coordinator.yaml b/charts/trino/templates/configmap-coordinator.yaml index 4e15f92..3c20d0a 100644 --- a/charts/trino/templates/configmap-coordinator.yaml +++ b/charts/trino/templates/configmap-coordinator.yaml @@ -19,6 +19,7 @@ data: jvm.config: | -server + -XX:+IgnoreUnrecognizedVMOptions -Xmx{{ .Values.coordinator.jvm.maxHeapSize }} -XX:+{{ .Values.coordinator.jvm.gcMethod.type }} -XX:G1HeapRegionSize={{ .Values.coordinator.jvm.gcMethod.g1.heapRegionSize }} diff --git a/charts/trino/templates/configmap-worker.yaml b/charts/trino/templates/configmap-worker.yaml index a7a7ecb..810cb57 100644 --- a/charts/trino/templates/configmap-worker.yaml +++ b/charts/trino/templates/configmap-worker.yaml @@ -20,6 +20,7 @@ data: jvm.config: | -server + -XX:+IgnoreUnrecognizedVMOptions -Xmx{{ .Values.worker.jvm.maxHeapSize }} -XX:+{{ .Values.worker.jvm.gcMethod.type }} -XX:G1HeapRegionSize={{ .Values.worker.jvm.gcMethod.g1.heapRegionSize }} diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 8ca42e6..3090b27 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -121,6 +121,11 @@ spec: {{- end }} {{- end }} {{- end -}} + {{- if .Values.metrics.enabled }} + - name: config-volume + mountPath: /usr/lib/trino/utils/exporter_config.yaml + subPath: exporter_config.yaml + {{- end -}} {{- with .Values.coordinator.extraVolumeMounts }} {{- . | toYaml | nindent 12 }} {{- end }} @@ -128,6 +133,11 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP + {{- if .Values.metrics.enabled }} + - name: metrics + containerPort: {{ .Values.metrics.port }} + protocol: TCP + {{- end }} livenessProbe: httpGet: path: /v1/info