File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
helm/aws-load-balancer-controller Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ The following tables lists the configurable parameters of the chart and their de
166
166
The default values set by the application itself can be confirmed [ here] ( https://kubernetes-sigs.github.io/aws-load-balancer-controller/guide/controller/configurations/ ) .
167
167
168
168
| Parameter | Description | Default |
169
- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
169
+ | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
170
170
| ` image.repository ` | image repository | ` 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-load-balancer-controller ` |
171
171
| ` image.tag ` | image tag | ` <VERSION> ` |
172
172
| ` image.pullPolicy ` | image pull policy | ` IfNotPresent ` |
@@ -238,4 +238,5 @@ The default values set by the application itself can be confirmed [here](https:/
238
238
| ` serviceMonitor.enabled ` | Specifies whether a service monitor should be created, requires the ServiceMonitor CRD to be installed | ` false ` |
239
239
| ` serviceMonitor.additionalLabels ` | Labels to add to the service account | ` {} ` |
240
240
| ` serviceMonitor.interval ` | Prometheus scrape interval | ` 1m ` |
241
+ | ` serviceMonitor.namespace ` | Namespace in which Prometheus is running | None |
241
242
| ` clusterSecretsPermissions.allowAllSecrets ` | If ` true ` , controller has access to all secrets in the cluster. | ` false ` |
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ apiVersion: monitoring.coreos.com/v1
3
3
kind : ServiceMonitor
4
4
metadata :
5
5
name : {{ include "aws-load-balancer-controller.fullname" . }}
6
+ {{- if .Values.serviceMonitor.namespace }}
7
+ namespace : {{ .Values.serviceMonitor.namespace }}
8
+ {{- else }}
9
+ namespace : {{ .Release.Namespace | quote }}
10
+ {{- end }}
6
11
labels :
7
12
{{- include "aws-load-balancer-controller.labels" . | nindent 4 }}
8
13
{{- with .Values.serviceMonitor.additionalLabels }}
27
32
{{- with .Values.serviceMonitor.interval }}
28
33
interval : {{ . }}
29
34
{{- end }}
30
- {{- end -}}
35
+ {{- end -}}
Original file line number Diff line number Diff line change @@ -287,6 +287,8 @@ serviceMonitor:
287
287
additionalLabels : {}
288
288
# Prometheus scrape interval
289
289
interval : 1m
290
+ # Namespace to create the service monitor in
291
+ namespace :
290
292
291
293
# clusterSecretsPermissions lets you configure RBAC permissions for secret resources
292
294
# Access to secrets resource is required only if you use the OIDC feature, and instead of
You can’t perform that action at this time.
0 commit comments