diff --git a/stable/prometheus/Chart.yaml b/stable/prometheus/Chart.yaml index 1321a64930..49d1228605 100755 --- a/stable/prometheus/Chart.yaml +++ b/stable/prometheus/Chart.yaml @@ -1,5 +1,5 @@ name: prometheus -version: 5.3.0 +version: 5.3.1 description: Prometheus is a monitoring system and time series database. home: https://prometheus.io/ icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png diff --git a/stable/prometheus/README.md b/stable/prometheus/README.md index 6cd14ff68e..2c892f2ef0 100644 --- a/stable/prometheus/README.md +++ b/stable/prometheus/README.md @@ -168,6 +168,7 @@ Parameter | Description | Default `nodeExporter.podAnnotations` | annotations to be added to node-exporter pods | `{}` `nodeExporter.tolerations` | node taints to tolerate (requires Kubernetes >=1.6) | `[]` `nodeExporter.resources` | node-exporter resource requests and limits (YAML) | `{}` +`nodeExporter.securityContext` | securityContext for containers in pod | `{}` `nodeExporter.serviceAccountName` | service account name for node-exporter to use (ignored if rbac.create=true) | `default` `nodeExporter.service.annotations` | annotations for node-exporter service | `{prometheus.io/scrape: "true"}` `nodeExporter.service.clusterIP` | internal node-exporter cluster service IP | `None` diff --git a/stable/prometheus/templates/node-exporter-daemonset.yaml b/stable/prometheus/templates/node-exporter-daemonset.yaml index 1b402c737a..1db71b95ad 100644 --- a/stable/prometheus/templates/node-exporter-daemonset.yaml +++ b/stable/prometheus/templates/node-exporter-daemonset.yaml @@ -72,6 +72,10 @@ spec: {{- if .Values.nodeExporter.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeExporter.nodeSelector | indent 8 }} + {{- end }} + {{- if .Values.nodeExporter.securityContext }} + securityContext: +{{ toYaml .Values.nodeExporter.securityContext | indent 8 }} {{- end }} volumes: - name: proc diff --git a/stable/prometheus/values.yaml b/stable/prometheus/values.yaml index 80948d5cf0..af678515b6 100644 --- a/stable/prometheus/values.yaml +++ b/stable/prometheus/values.yaml @@ -348,6 +348,11 @@ nodeExporter: # cpu: 100m # memory: 30Mi + ## Security context to be added to node-exporter pods + ## + securityContext: {} + # runAsUser: 0 + service: annotations: prometheus.io/scrape: "true" @@ -570,7 +575,7 @@ pushgateway: ## pushgateway Ingress annotations ## - annotations: + annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: 'true'