fix: increase default memory limit to ingress envoy to 512MB, enable podDisruptionBudgets on demand

This commit is contained in:
Stefan Reimer 2021-04-16 13:41:31 +02:00
parent 33133f359c
commit 1f68cea76b
3 changed files with 17 additions and 2 deletions

View File

@ -23,10 +23,11 @@ istio-ingress:
replicaCount: 1
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
# cpu: 100m
memory: 256Mi
memory: 512Mi
externalTrafficPolicy: Local
podAntiAffinityLabelSelector:
- key: app

View File

@ -1,4 +1,10 @@
{{- define "istio-ingress-values" }}
{{- with index .Values "istio-ingress" "global" }}
global:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- if index .Values "istio-ingress" "public" }}
istio-ingress:
enabled: {{ index .Values "istio-ingress" "public" "enabled" }}

View File

@ -1,7 +1,15 @@
{{- define "istio-values" }}
{{- if .Values.HighAvailableControlplane }}
global:
defaultPodDisruptionBudget:
enabled: true
istio-discovery:
pilot:
replicaCount: {{ ternary 2 1 .Values.HighAvailableControlplane }}
replicaCount: 2
{{- end }}
{{- end }}