Skip to content

Commit

Permalink
Do not provide defaults for resources req/lim (prometheus-community#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
elthariel authored and ldez committed Nov 23, 2019
1 parent 13e1db4 commit 47a93a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
16 changes: 7 additions & 9 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@ spec:
- image: {{ .Values.image.name }}:{{ .Values.image.tag }}
name: {{ template "traefik.fullname" . }}
resources:
{{- if .Values.yaml }}
{{- if .Values.yaml.resources }}
{{ toYaml .Values.yaml.resources | indent 10 }}
{{- end }}
{{- if .Values.yaml.tolerations }}
{{- with .Values.resources }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml .Values.yaml.tolerations | indent 8 }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if .Values.yaml.nodeSelector }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.yaml.nodeSelector | indent 10 }}
{{- end }}
{{- toYaml . | nindent 10 }}
{{- end }}
readinessProbe:
httpGet:
Expand Down
19 changes: 9 additions & 10 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ dashboard:
logs:
loglevel: WARN
#
yaml:
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "300m"
memory: "150Mi"
# nodeSelector: {}
# tolerations: []
resources: {}
# requests:
# cpu: "100m"
# memory: "50Mi"
# limits:
# cpu: "300m"
# memory: "150Mi"
nodeSelector: {}
tolerations: []

0 comments on commit 47a93a4

Please sign in to comment.