add resources to values

This commit is contained in:
2024-06-13 10:58:01 -05:00
parent 6b850205ad
commit a1811097c0
2 changed files with 8 additions and 3 deletions

View File

@@ -30,9 +30,10 @@ controllers:
name: {{ .Values.existingSecretName }} name: {{ .Values.existingSecretName }}
key: {{ .Values.existingSecretKey }} key: {{ .Values.existingSecretKey }}
resources: resources:
requests: {{- with .Values.resources }}
cpu: 100m resources:
memory: 128Mi {{- toYaml . | nindent 10 }}
{{ end }}
{{- end -}} {{- end -}}
{{- $_ := mergeOverwrite .Values (include "cloudflared.hardcodedValues" . | fromYaml) -}} {{- $_ := mergeOverwrite .Values (include "cloudflared.hardcodedValues" . | fromYaml) -}}

View File

@@ -5,3 +5,7 @@ image:
repository: cloudflare/cloudflared repository: cloudflare/cloudflared
tag: "2024.5.0" tag: "2024.5.0"
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources:
requests:
cpu: 100m
memory: 128Mi