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

View File

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

View File

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