From 965bea898790c155156885e43f7864fb02d35510 Mon Sep 17 00:00:00 2001 From: Matt Pryor Date: Tue, 7 Nov 2023 11:44:33 +0000 Subject: [PATCH] Customisable timeout for Consul exporter (#34) --- .../metrics/consul-exporter/deployment.yaml | 1 + charts/server/values.yaml | 31 ++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/charts/server/templates/metrics/consul-exporter/deployment.yaml b/charts/server/templates/metrics/consul-exporter/deployment.yaml index d679b40d..08cf4699 100644 --- a/charts/server/templates/metrics/consul-exporter/deployment.yaml +++ b/charts/server/templates/metrics/consul-exporter/deployment.yaml @@ -33,6 +33,7 @@ spec: imagePullPolicy: {{ .Values.metrics.consulExporter.image.pullPolicy }} args: - "--consul.server={{ .Values.common.consul.address }}:{{ .Values.common.consul.port }}" + - "--consul.timeout={{ .Values.metrics.consulExporter.queryTimeout }}" - "--kv.prefix={{ $keyPrefix }}/subdomains" ports: - name: http diff --git a/charts/server/values.yaml b/charts/server/values.yaml index 5d7e1b98..1ea7aa87 100644 --- a/charts/server/values.yaml +++ b/charts/server/values.yaml @@ -275,27 +275,30 @@ metrics: pullPolicy: IfNotPresent tag: v0.9.0 imagePullSecrets: [] - # Customise pod-level security context for sync pods + # The timeout for Consul queries used in the exporter + # This is increased from the default to accomodate clusters with many services + queryTimeout: 5s + # Customise pod-level security context for consul exporter pods podSecurityContext: runAsNonRoot: true runAsUser: 1000 runAsGroup: 1000 fsGroup: 1000 - # Customise container-level security context for sync pods + # Customise container-level security context for consul exporter pods securityContext: allowPrivilegeEscalation: false capabilities: drop: [ALL] readOnlyRootFilesystem: true - # Resources for sync containers + # Resources for consul exporter containers resources: {} - # Customise annotations for sync pods + # Customise annotations for consul exporter pods podAnnotations: {} - # Customise node selector for sync pods + # Customise node selector for consul exporter pods nodeSelector: {} - # Customise tolerations for sync pods + # Customise tolerations for consul exporter pods tolerations: [] - # Customise affinity rules for sync pods + # Customise affinity rules for consul exporter pods affinity: {} # Configuration for the Helm exporter helmExporter: @@ -306,25 +309,25 @@ metrics: pullPolicy: IfNotPresent tag: 1.2.10 imagePullSecrets: [] - # Customise pod-level security context for sync pods + # Customise pod-level security context for helm exporter pods podSecurityContext: runAsNonRoot: true runAsUser: 1000 runAsGroup: 1000 fsGroup: 1000 - # Customise container-level security context for sync pods + # Customise container-level security context for helm exporter pods securityContext: allowPrivilegeEscalation: false capabilities: drop: [ALL] readOnlyRootFilesystem: true - # Resources for sync containers + # Resources for helm exporter containers resources: {} - # Customise annotations for sync pods + # Customise annotations for helm exporter pods podAnnotations: {} - # Customise node selector for sync pods + # Customise node selector for helm exporter pods nodeSelector: {} - # Customise tolerations for sync pods + # Customise tolerations for helm exporter pods tolerations: [] - # Customise affinity rules for sync pods + # Customise affinity rules for helm exporter pods affinity: {}