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 0be6c88644
commit 6c173493ba
3 changed files with 17 additions and 2 deletions

View File

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

View File

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

View File

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