diff --git a/build/templates/README.md b/build/templates/README.md index 7c23a3f4..575d3bb7 100644 --- a/build/templates/README.md +++ b/build/templates/README.md @@ -367,6 +367,7 @@ For details see the [`values.yaml`](values.yaml) file. | `serviceMonitor.annotations` | Additional annotations of ServiceMonitor | `{}` | | `serviceMonitor.interval` | ServiceMonitor scrape metrics interval | `10s` | | `serviceMonitor.scrapeTimeout` | ServiceMonitor scrape timeout | `nil` | +| `serviceMonitor.tlsConfig` | Additional TLS configuration of ServiceMonitor | `{}` | | `serviceMonitor.namespaced` | Limit ServiceMonitor to current namespace | `false` | | `storage.hostPath` | Absolute path on host to store data | `""` | | `storage.persistentVolume.enabled` | Whether to use PersistentVolume to store data | `yes` | diff --git a/build/templates/values.yaml b/build/templates/values.yaml index 4207299c..46f3190c 100644 --- a/build/templates/values.yaml +++ b/build/templates/values.yaml @@ -349,6 +349,10 @@ serviceMonitor: # Limits the ServiceMonitor to the current namespace if set to `true`. namespaced: false + # tlsConfig: TLS configuration to use when scraping the endpoint. + # Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig + tlsConfig: {} + # CockroachDB's data persistence. # If neither `persistentVolume` nor `hostPath` is used, then data will be # persisted in ad-hoc `emptyDir`. diff --git a/cockroachdb/README.md b/cockroachdb/README.md index 3cdc61ea..1cd832d9 100644 --- a/cockroachdb/README.md +++ b/cockroachdb/README.md @@ -368,6 +368,7 @@ For details see the [`values.yaml`](values.yaml) file. | `serviceMonitor.annotations` | Additional annotations of ServiceMonitor | `{}` | | `serviceMonitor.interval` | ServiceMonitor scrape metrics interval | `10s` | | `serviceMonitor.scrapeTimeout` | ServiceMonitor scrape timeout | `nil` | +| `serviceMonitor.tlsConfig` | Additional TLS configuration of ServiceMonitor | `{}` | | `serviceMonitor.namespaced` | Limit ServiceMonitor to current namespace | `false` | | `storage.hostPath` | Absolute path on host to store data | `""` | | `storage.persistentVolume.enabled` | Whether to use PersistentVolume to store data | `yes` | diff --git a/cockroachdb/templates/serviceMonitor.yaml b/cockroachdb/templates/serviceMonitor.yaml index 93a568e9..42f2390b 100644 --- a/cockroachdb/templates/serviceMonitor.yaml +++ b/cockroachdb/templates/serviceMonitor.yaml @@ -48,4 +48,7 @@ spec: {{- if $serviceMonitor.scrapeTimeout }} scrapeTimeout: {{ $serviceMonitor.scrapeTimeout }} {{- end }} + {{- if .Values.serviceMonitor.tlsConfig }} + tlsConfig: {{ toYaml .Values.serviceMonitor.tlsConfig | nindent 6 }} + {{- end }} {{- end }} diff --git a/cockroachdb/values.yaml b/cockroachdb/values.yaml index a70c3afe..aeeeb03d 100644 --- a/cockroachdb/values.yaml +++ b/cockroachdb/values.yaml @@ -350,6 +350,10 @@ serviceMonitor: # Limits the ServiceMonitor to the current namespace if set to `true`. namespaced: false + # tlsConfig: TLS configuration to use when scraping the endpoint. + # Of type: https://github.com/coreos/prometheus-operator/blob/main/Documentation/api.md#tlsconfig + tlsConfig: {} + # CockroachDB's data persistence. # If neither `persistentVolume` nor `hostPath` is used, then data will be # persisted in ad-hoc `emptyDir`.