diff --git a/charts/kubezero-istio-ingress/values.yaml b/charts/kubezero-istio-ingress/values.yaml index 2474b484..79ef891a 100644 --- a/charts/kubezero-istio-ingress/values.yaml +++ b/charts/kubezero-istio-ingress/values.yaml @@ -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 diff --git a/charts/kubezero/templates/istio-ingress.yaml b/charts/kubezero/templates/istio-ingress.yaml index 39fa7370..4e8d5c8b 100644 --- a/charts/kubezero/templates/istio-ingress.yaml +++ b/charts/kubezero/templates/istio-ingress.yaml @@ -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" }} diff --git a/charts/kubezero/templates/istio.yaml b/charts/kubezero/templates/istio.yaml index eae91c76..ac750b8e 100644 --- a/charts/kubezero/templates/istio.yaml +++ b/charts/kubezero/templates/istio.yaml @@ -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 }}