mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
exposing the init container image in the config to allow the user from overriding it (#3698)
This commit is contained in:
committed by
k8s-ci-robot
parent
d27a21b58f
commit
c848b98053
@@ -1,5 +1,5 @@
|
||||
name: prometheus
|
||||
version: 5.1.4
|
||||
version: 5.1.5
|
||||
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
|
||||
|
||||
@@ -132,6 +132,11 @@ Parameter | Description | Default
|
||||
`configmapReload.image.tag` | configmap-reload container image tag | `v0.1`
|
||||
`configmapReload.image.pullPolicy` | configmap-reload container image pull policy | `IfNotPresent`
|
||||
`configmapReload.resources` | configmap-reload pod resource requests & limits | `{}`
|
||||
`initChownData.name` | init-chown-data container name | `init-chown-data`
|
||||
`initChownData.image.repository` | init-chown-data container image repository | `busybox`
|
||||
`initChownData.image.tag` | init-chown-data container image tag | `latest`
|
||||
`initChownData.image.pullPolicy` | init-chown-data container image pull policy | `IfNotPresent`
|
||||
`initChownData.resources` | init-chown-data pod resource requests & limits | `{}`
|
||||
`kubeStateMetrics.enabled` | If true, create kube-state-metrics | `true`
|
||||
`kubeStateMetrics.name` | kube-state-metrics container name | `kube-state-metrics`
|
||||
`kubeStateMetrics.image.repository` | kube-state-metrics container image repository| `k8s.gcr.io/kube-state-metrics`
|
||||
|
||||
@@ -27,8 +27,11 @@ spec:
|
||||
spec:
|
||||
serviceAccountName: {{ if .Values.rbac.create }}{{ template "prometheus.server.fullname" . }}{{ else }}"{{ .Values.server.serviceAccountName }}"{{ end }}
|
||||
initContainers:
|
||||
- name: "init-chown-data"
|
||||
image: "busybox"
|
||||
- name: "{{ .Values.initChownData.name }}"
|
||||
image: "{{ .Values.initChownData.image.repository }}:{{ .Values.initChownData.image.tag }}"
|
||||
imagePullPolicy: "{{ .Values.initChownData.image.pullPolicy }}"
|
||||
resources:
|
||||
{{ toYaml .Values.initChownData.resources | indent 12 }}
|
||||
# 65534 is the nobody user that prometheus uses.
|
||||
command: ["chown", "-R", "65534:65534", "{{ .Values.server.persistentVolume.mountPath }}"]
|
||||
volumeMounts:
|
||||
|
||||
@@ -188,6 +188,23 @@ configmapReload:
|
||||
##
|
||||
resources: {}
|
||||
|
||||
initChownData:
|
||||
## initChownData container name
|
||||
##
|
||||
name: init-chown-data
|
||||
|
||||
## initChownData container image
|
||||
##
|
||||
image:
|
||||
repository: busybox
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
## initChownData resource requests and limits
|
||||
## Ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
||||
##
|
||||
resources: {}
|
||||
|
||||
kubeStateMetrics:
|
||||
## If false, kube-state-metrics will not be installed
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user