More Istio 1.6 tuning

This commit is contained in:
Stefan Reimer 2020-07-22 00:08:19 +01:00
parent 0c88f62889
commit 4430207673
4 changed files with 42 additions and 21 deletions

View File

@ -0,0 +1,10 @@
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
name: kubezero-istio-base
namespace: istio-system
spec:
profile: empty
components:
base:
enabled: true

View File

@ -11,11 +11,8 @@ spec:
enabled: true
namespace: istio-system
k8s:
env:
- name: ISTIO_META_HTTP10
value: '"1"'
- name: ISTIO_META_ROUTER_MODE
value: standard
replicaCount: {{ .Values.ingress.replicaCount }}
{{- if .Values.ingress.autoscaleEnabled }}
hpaSpec:
maxReplicas: 5
metrics:
@ -28,6 +25,12 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: istio-private-ingressgateway
{{- end }}
env:
- name: ISTIO_META_HTTP10
value: '"1"'
- name: ISTIO_META_ROUTER_MODE
value: standard
nodeSelector:
node.kubernetes.io/ingress.private: "31080_31443_30671_30672_31224"
resources:
@ -44,6 +47,7 @@ spec:
values:
gateways:
istio-ingressgateway:
autoscaleEnabled: {{ .Values.ingress.autoscaleEnabled }}
externalTrafficPolicy: Local
labels:
app: istio-private-ingressgateway

View File

@ -9,8 +9,6 @@ spec:
prometheus:
enabled: false
components:
base:
enabled: true
citadel:
enabled: false
galley:
@ -18,11 +16,8 @@ spec:
ingressGateways:
- enabled: true
k8s:
env:
- name: ISTIO_META_HTTP10
value: '"1"'
- name: ISTIO_META_ROUTER_MODE
value: standard
replicaCount: {{ .Values.ingress.replicaCount }}
{{- if .Values.ingress.autoscaleEnabled }}
hpaSpec:
maxReplicas: 5
metrics:
@ -35,6 +30,12 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: istio-ingressgateway
{{- end }}
env:
- name: ISTIO_META_HTTP10
value: '"1"'
- name: ISTIO_META_ROUTER_MODE
value: standard
nodeSelector:
node.kubernetes.io/ingress.public: "30080_30443"
resources:
@ -52,25 +53,26 @@ spec:
pilot:
enabled: true
k8s:
replicaCount: {{ .Values.istiod.replicaCount }}
nodeSelector:
node-role.kubernetes.io/master: ""
replicaCount: 1
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
resources:
requests:
cpu: 100m
memory: 128Mi
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
policy:
enabled: true
k8s:
replicaCount: 1
replicaCount: {{ .Values.istiod.replicaCount }}
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
sidecarInjector:
enabled: false
telemetry:
@ -78,6 +80,7 @@ spec:
values:
gateways:
istio-ingressgateway:
autoscaleEnabled: {{ .Values.ingress.autoscaleEnabled }}
externalTrafficPolicy: Local
labels:
app: istio-ingressgateway
@ -128,3 +131,7 @@ spec:
useMCP: false
pilot:
sidecar: false
autoscaleEnabled: false
mixer:
policy:
autoscaleEnabled: false

View File

@ -1,10 +1,10 @@
istiod:
autoscale: true
# replicaCount: 2
autoscaleEnabled: false
replicaCount: 1
ingress:
autoscale: true
# replicaCount: 2
autoscaleEnabled: false
replicaCount: 2
dnsNames:
- "*.example.com"