[stable/kube-state-metrics] Add option for service annotations (#15864)

Signed-off-by: Corey O'Brien <corey@fairwinds.com>
This commit is contained in:
Corey O'Brien
2019-07-25 17:13:57 -07:00
committed by Kubernetes Prow Robot
parent 14c82cd4f9
commit ab751570be
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ keywords:
- monitoring
- prometheus
- kubernetes
version: 2.1.1
version: 2.2.1
appVersion: 1.7.1
home: https://github.com/kubernetes/kube-state-metrics/
sources:
+1
View File
@@ -19,6 +19,7 @@ $ helm install stable/kube-state-metrics
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `replicas` | Number of replicas | `1` |
| `service.port` | The port of the container | `8080` |
| `service.annotations` | Annotations to be added to the service | `{}`
| `customLabels` | Custom labels to apply to service, deployment and pods | `{}` |
| `hostNetwork` | Whether or not to use the host network | `false` |
| `prometheusScrape` | Whether or not enable prom scrape | `true` |
@@ -10,10 +10,13 @@ metadata:
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 4 }}
{{- end }}
{{- if .Values.prometheusScrape }}
annotations:
{{- if .Values.prometheusScrape }}
prometheus.io/scrape: '{{ .Values.prometheusScrape }}'
{{- end }}
{{- end }}
{{- if .Values.service.annotations }}
{{- toYaml .Values.service.annotations | nindent 4 }}
{{- end }}
spec:
type: "{{ .Values.service.type }}"
ports:
+1
View File
@@ -13,6 +13,7 @@ service:
type: ClusterIP
nodePort: 0
loadBalancerIP: ""
annotations: {}
customLabels: {}