mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Use range when possible
This commit is contained in:
@@ -18,7 +18,7 @@ spec:
|
||||
release: "{{ .Release.Name }}"
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ template name . }}-{{ .Values.alertmanager.name }}
|
||||
- name: {{ template "name" . }}-{{ .Values.alertmanager.name }}
|
||||
image: "{{ .Values.alertmanager.image }}"
|
||||
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
|
||||
args:
|
||||
@@ -39,7 +39,7 @@ spec:
|
||||
mountPath: /etc/config
|
||||
- name: storage-volume
|
||||
mountPath: {{ default "/data" .Values.alertmanager.storagePath | quote }}
|
||||
- name: {{ template name . }}-{{ .Values.alertmanager.name }}-{{ .Values.configmapReload.name }}
|
||||
- name: {{ template "name" . }}-{{ .Values.alertmanager.name }}-{{ .Values.configmapReload.name }}
|
||||
image: "{{ .Values.configmapReload.image }}"
|
||||
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
|
||||
args:
|
||||
|
||||
@@ -5,7 +5,9 @@ apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
{{ toYaml .Values.alertmanager.ingress.annotations | indent 4 }}
|
||||
{{- range $key, $value := .Values.alertmanager.ingress.annotations }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
labels:
|
||||
app: {{ template "fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
|
||||
@@ -13,14 +13,16 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
{{ toYaml .Values.server.annotations | indent 8 }}
|
||||
{{- range $key, $value := .Values.server.annotations }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
labels:
|
||||
app: {{ template "fullname" . }}
|
||||
component: "{{ .Values.server.name }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ template name . }}-{{ .Values.server.name }}-{{ .Values.configmapReload.name }}
|
||||
- name: {{ template "name" . }}-{{ .Values.server.name }}-{{ .Values.configmapReload.name }}
|
||||
image: "{{ .Values.configmapReload.image }}"
|
||||
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
|
||||
args:
|
||||
@@ -30,7 +32,7 @@ spec:
|
||||
- name: config-volume
|
||||
mountPath: /etc/config
|
||||
readOnly: true
|
||||
- name: {{ template name . }}-{{ .Values.server.name }}
|
||||
- name: {{ template "name" . }}-{{ .Values.server.name }}
|
||||
image: "{{ .Values.server.image }}"
|
||||
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
|
||||
args:
|
||||
@@ -39,7 +41,9 @@ spec:
|
||||
- --storage.local.path={{ default "/data" .Values.server.storageLocalPath | quote }}
|
||||
- --web.console.libraries=/etc/prometheus/console_libraries
|
||||
- --web.console.templates=/etc/prometheus/consoles
|
||||
{{ toYaml .Values.server.extra_args | indent 12 }}
|
||||
{{- range $key, $value := .Values.server.extraArgs }}
|
||||
- --{{ $key }}={{ $value }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- containerPort: 9090
|
||||
readinessProbe:
|
||||
|
||||
@@ -5,7 +5,9 @@ apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
{{ toYaml .Values.server.ingress.annotations | indent 4 }}
|
||||
{{- range $key, $value := .Values.server.ingress.annotations }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
labels:
|
||||
app: {{ template "fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
|
||||
@@ -3,7 +3,9 @@ apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
annotations:
|
||||
{{ toYaml .Values.server.persistentVolume.annotations | indent 4 }}
|
||||
{{- range $key, $value := .Values.server.persistentVolume.annotations }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
labels:
|
||||
app: {{ template "fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
|
||||
@@ -105,16 +105,16 @@ configmapReload:
|
||||
server:
|
||||
## Server Pod annotations:
|
||||
##
|
||||
# annotations
|
||||
# annotations:
|
||||
# iam.amazonaws.com/role: prometheus
|
||||
|
||||
## Additional Server container arguments
|
||||
##
|
||||
extra_args:
|
||||
- --storage.local.max-chunks-to-persist=524288
|
||||
- --storage.local.memory-chunks=1048576
|
||||
- --storage.local.retention=360h0m0s
|
||||
- --web.external-url=http://prometheus.domain.com
|
||||
extraArgs:
|
||||
storage.local.max-chunks-to-persist: 524288
|
||||
storage.local.memory-chunks: 1048576
|
||||
storage.local.retention: 360h0m0s
|
||||
web.external-url: http://prometheus.domain.com
|
||||
|
||||
## Server service port
|
||||
## Default: 80
|
||||
|
||||
Reference in New Issue
Block a user