[kube2iam] - add labels to ServiceMonitor (#21605)

Signed-off-by: Alex Williams <alex.williams@skyscanner.net>
This commit is contained in:
Alex Williams
2020-05-17 08:49:35 -07:00
committed by GitHub
parent 25ab41b429
commit 63ca8f76e2
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: kube2iam
version: 2.4.0
version: 2.5.0
appVersion: 0.10.9
description: Provide IAM credentials to pods based on annotations.
keywords:
+1
View File
@@ -61,6 +61,7 @@ Parameter | Description | Default
`prometheus.serviceMonitor.enabled` | If true, create a Prometheus Operator ServiceMonitor resource | `false`
`prometheus.serviceMonitor.interval` | Interval at which the metrics endpoint is scraped | `10s`
`prometheus.serviceMonitor.namespace` | An alternative namespace in which to install the ServiceMonitor | `""`
`prometheus.serviceMonitor.labels` | Labels to add to the ServiceMonitor | `{}`
`rbac.create` | If true, create & use RBAC resources | `false`
`rbac.serviceAccountName` | existing ServiceAccount to use (ignored if rbac.create=true) | `default`
`resources` | pod resource requests & limits | `{}`
@@ -11,6 +11,9 @@ metadata:
helm.sh/chart: {{ template "kube2iam.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.prometheus.serviceMonitor.labels }}
{{- toYaml .Values.prometheus.serviceMonitor.labels | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
+2
View File
@@ -32,6 +32,8 @@ prometheus:
interval: 10s
# Alternative namespace to install the ServiceMonitor in
namespace: ""
# Labels to add to the service monitor
labels: {}
image:
repository: jtblin/kube2iam