[stable/kube2iam] Upgrade version, Add prometheus service annotations (#15626)

* Upgrade Kube2iam, Add prometheus service annotations

Signed-off-by: Fabio Todaro <fbregist@gmail.com>

* Update README

Signed-off-by: Fabio Todaro <fbregist@gmail.com>
This commit is contained in:
Fabio Todaro
2019-07-20 11:19:04 -07:00
committed by Kubernetes Prow Robot
parent c6412e9bdc
commit ed3393ca90
4 changed files with 18 additions and 6 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: kube2iam
version: 1.0.1
appVersion: 0.10.4
version: 1.1.0
appVersion: 0.10.7
description: Provide IAM credentials to pods based on annotations.
keywords:
- kube2iam
+2
View File
@@ -55,6 +55,8 @@ Parameter | Description | Default
`podAnnotations` | annotations to be added to pods | `{}`
`priorityClassName` | priorityClassName to be added to pods | `{}`
`prometheus.metricsPort` | Port to expose prometheus metrics on (if unspecified, `host.port` is used) | `host.port`
`prometheus.service.enabled` | If true, create a Service resource for Prometheus | `false`
`prometheus.service.annotations` | Annotations to be added to the service | `{}`
`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 | `""`
+5 -2
View File
@@ -1,14 +1,17 @@
{{- if .Values.prometheus.serviceMonitor.enabled }}
{{- if or .Values.prometheus.serviceMonitor.enabled .Values.prometheus.service.enabled }}
apiVersion: v1
kind: Service
metadata:
annotations:
name: {{ template "kube2iam.fullname" . }}-metrics
labels:
app: {{ template "kube2iam.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.prometheus.service.annotations }}
annotations:
{{- toYaml .Values.prometheus.service.annotations | nindent 4 }}
{{- end }}
spec:
selector:
app: {{ template "kube2iam.name" . }}
+9 -2
View File
@@ -16,7 +16,14 @@ host:
prometheus:
# Port to expose the /metrics endpoint on. If unset, defaults to `host.port`
# metricsPort: 8181
# metricsPort: 9543
service:
enabled: false
# annotations:
# prometheus.io/scrape: "true"
# prometheus.io/port: "9543"
# prometheus.io/path: "/metrics"
serviceMonitor:
# Create prometheus-operator ServiceMonitor
@@ -28,7 +35,7 @@ prometheus:
image:
repository: jtblin/kube2iam
tag: 0.10.4
tag: 0.10.7
pullPolicy: IfNotPresent
# AWS Access keys to inject as environment variables