mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/kube-state-metrics] Add option for service annotations (#15864)
Signed-off-by: Corey O'Brien <corey@fairwinds.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
14c82cd4f9
commit
ab751570be
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -13,6 +13,7 @@ service:
|
||||
type: ClusterIP
|
||||
nodePort: 0
|
||||
loadBalancerIP: ""
|
||||
annotations: {}
|
||||
|
||||
customLabels: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user