Switch istio ingress to http healthchecks, more tuning

This commit is contained in:
Stefan Reimer 2020-08-21 14:17:47 +01:00
parent f30df54c73
commit 715e1d6c69
3 changed files with 26 additions and 14 deletions

View File

@ -29,6 +29,7 @@ spec:
serverCertificate: /etc/istio/ingressgateway-certs/tls.crt serverCertificate: /etc/istio/ingressgateway-certs/tls.crt
credentialName: public-ingress-cert credentialName: public-ingress-cert
{{- if .Values.ingress.private.enabled }}
--- ---
apiVersion: networking.istio.io/v1alpha3 apiVersion: networking.istio.io/v1alpha3
kind: Gateway kind: Gateway
@ -78,3 +79,4 @@ spec:
protocol: TCP protocol: TCP
hosts: hosts:
- "*" - "*"
{{- end }}

View File

@ -80,6 +80,11 @@ spec:
values: istio-private-ingressgateway values: istio-private-ingressgateway
type: {{ default "NodePort" .Values.ingress.type }} type: {{ default "NodePort" .Values.ingress.type }}
ports: ports:
- name: http-status
port: 15021
{{- if eq .Values.ingress.type "NodePort" }}
nodePort: 31021
{{- end }}
- name: http2 - name: http2
port: 80 port: 80
{{- if eq .Values.ingress.type "NodePort" }} {{- if eq .Values.ingress.type "NodePort" }}
@ -90,31 +95,31 @@ spec:
{{- if eq .Values.ingress.type "NodePort" }} {{- if eq .Values.ingress.type "NodePort" }}
nodePort: 31443 nodePort: 31443
{{- end }} {{- end }}
- name: amqp
port: 5672
{{- if eq .Values.ingress.type "NodePort" }}
nodePort: 30672
{{- end }}
- name: amqps
port: 5671
{{- if eq .Values.ingress.type "NodePort" }}
nodePort: 30671
{{- end }}
- name: fluentd-forward - name: fluentd-forward
port: 24224 port: 24224
{{- if eq .Values.ingress.type "NodePort" }} {{- if eq .Values.ingress.type "NodePort" }}
nodePort: 31224 nodePort: 31224
{{- end }} {{- end }}
- name: amqps
port: 5671
{{- if eq .Values.ingress.type "NodePort" }}
nodePort: 31671
{{- end }}
- name: amqp
port: 5672
{{- if eq .Values.ingress.type "NodePort" }}
nodePort: 31672
{{- end }}
sds: sds:
enabled: true enabled: true
image: node-agent-k8s image: node-agent-k8s
resources: resources:
limits: limits:
cpu: 2000m #cpu: 2000m
memory: 1024Mi memory: 1024Mi
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 64Mi
secretVolumes: secretVolumes:
- mountPath: /etc/istio/ingressgateway-certs - mountPath: /etc/istio/ingressgateway-certs
name: ingressgateway-certs name: ingressgateway-certs

View File

@ -49,11 +49,11 @@ spec:
{{- end }} {{- end }}
resources: resources:
limits: limits:
cpu: 2000m # cpu: 2000m
memory: 1024Mi memory: 1024Mi
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 64Mi
strategy: strategy:
rollingUpdate: rollingUpdate:
maxSurge: 100% maxSurge: 100%
@ -112,6 +112,11 @@ spec:
values: istio-ingressgateway values: istio-ingressgateway
type: {{ default "NodePort" .Values.ingress.type }} type: {{ default "NodePort" .Values.ingress.type }}
ports: ports:
- name: http-status
port: 15021
{{- if eq .Values.ingress.type "NodePort" }}
nodePort: 30021
{{- end }}
- name: http2 - name: http2
port: 80 port: 80
{{- if eq .Values.ingress.type "NodePort" }} {{- if eq .Values.ingress.type "NodePort" }}