mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/envoy] Exposes targetLabels and podTargetLabels (#18098)
* [stable/envoy] Add targetLabels and podTargetLabels This allows targetLabels/podTargetLabels to transfer onto the target Signed-off-by: anbarasan <anbarasan.thangapalam@go-jek.com> * [stable/envoy] Add targetLabels and podTargetLabels Adds default value Signed-off-by: anbarasan <anbarasan.thangapalam@go-jek.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
7df5ddf388
commit
d13b892dbb
@@ -1,8 +1,8 @@
|
||||
apiVersion: v1
|
||||
description: Envoy is an open source edge and service proxy, designed for cloud-native applications.
|
||||
name: envoy
|
||||
version: 1.6.0
|
||||
appVersion: 1.11.1
|
||||
version: 1.7.0
|
||||
appVersion: 1.11.2
|
||||
keywords:
|
||||
- envoy
|
||||
- proxy
|
||||
|
||||
@@ -36,6 +36,8 @@ Parameter | Description | Default
|
||||
`serviceMonitor.interval` | Interval that Prometheus scrapes Envoy metrics | `15s`
|
||||
`serviceMonitor.namespace` | Namespace which the operated Prometheus is running in | ``
|
||||
`serviceMonitor.additionalLabels` | Labels used by Prometheus Operator to discover your Service Monitor. Set according to your Prometheus setup | `{}`
|
||||
`serviceMonitor.targetLabels` | Labels to transfer from service onto the target | `[]`
|
||||
`serviceMonitor.podTargetLabels` | Labels to transfor from pod onto the target | `[]`
|
||||
`prometheusRule.enabled` | If `true`, creates a Prometheus Operator PrometheusRule | `false`
|
||||
`prometheusRule.groups` | Prometheus alerting rules | `{}`
|
||||
`prometheusRule.additionalLabels` | Labels used by Prometheus Operator to discover your Prometheus Rule | `{}`| `volumes` | Additional volumes to be added to Envoy pods
|
||||
@@ -44,3 +46,6 @@ Parameter | Description | Default
|
||||
`sidecarContainersTemplate` | Golang template of additional containers added after the primary container of Envoy pods | ``
|
||||
|
||||
All other user-configurable settings, default values and some commentary about them can be found in [values.yaml](values.yaml).
|
||||
|
||||
| `serviceMonitor.targetLabels` | Labels to transfer from service onto the target | `[]` |
|
||||
| `serviceMonitor.podTargetLabels` | Labels to transfor from pod onto the target | `[]` |
|
||||
|
||||
@@ -27,4 +27,12 @@ spec:
|
||||
matchLabels:
|
||||
app: {{ template "envoy.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
{{- with .Values.serviceMonitor.targetLabels }}
|
||||
targetLabels:
|
||||
{{ toYaml . | trim | indent 4 -}}
|
||||
{{- end }}
|
||||
{{- with .Values.serviceMonitor.podTargetLabels }}
|
||||
podTargetLabels:
|
||||
{{ toYaml . | trim | indent 4 -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -293,6 +293,8 @@ serviceMonitor:
|
||||
## If the operator is installed in your cluster, set to true to create a Service Monitor Entry
|
||||
enabled: false
|
||||
interval: "15s"
|
||||
targetLabels: []
|
||||
podTargetLabels: []
|
||||
## Namespace in which the service monitor is created
|
||||
# namespace: monitoring
|
||||
# Added to the ServiceMonitor object so that prometheus-operator is able to discover it
|
||||
|
||||
Reference in New Issue
Block a user