Add LoadBalancer support to private ingress

This commit is contained in:
Stefan Reimer 2020-07-24 10:31:01 +00:00
parent e479353f4f
commit 84b7be318d
2 changed files with 19 additions and 10 deletions

View File

@ -32,8 +32,10 @@ spec:
value: '"1"' value: '"1"'
- name: ISTIO_META_ROUTER_MODE - name: ISTIO_META_ROUTER_MODE
value: standard value: standard
{{- if eq .Values.ingress.type "NodePort" }}
nodeSelector: nodeSelector:
node.kubernetes.io/ingress.private: "31080_31443_30671_30672_31224" node.kubernetes.io/ingress.private: "31080_31443_30671_30672_31224"
{{- end }}
resources: resources:
limits: limits:
cpu: 2000m cpu: 2000m
@ -59,26 +61,33 @@ spec:
operator: In operator: In
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
values: istio-private-ingressgateway values: istio-private-ingressgateway
type: {{ default "NodePort" .Values.ingress.type }}
ports: ports:
- name: http2 - name: http2
nodePort: 31080
port: 80 port: 80
targetPort: 80 {{- if eq .Values.ingress.type "NodePort" }}
nodePort: 31080
{{- end }}
- name: https - name: https
nodePort: 31443
port: 443 port: 443
{{- if eq .Values.ingress.type "NodePort" }}
nodePort: 31443
{{- end }}
- name: amqp - name: amqp
nodePort: 30672
port: 5672 port: 5672
targetPort: 5672 {{- if eq .Values.ingress.type "NodePort" }}
nodePort: 30672
{{- end }}
- name: amqps - name: amqps
nodePort: 30671
port: 5671 port: 5671
targetPort: 5671 {{- if eq .Values.ingress.type "NodePort" }}
nodePort: 30671
{{- end }}
- name: fluentd-forward - name: fluentd-forward
nodePort: 31224
port: 24224 port: 24224
targetPort: 24224 {{- if eq .Values.ingress.type "NodePort" }}
nodePort: 31224
{{- end }}
sds: sds:
enabled: true enabled: true
image: node-agent-k8s image: node-agent-k8s
@ -96,7 +105,6 @@ spec:
- mountPath: /etc/istio/ingressgateway-ca-certs - mountPath: /etc/istio/ingressgateway-ca-certs
name: ingressgateway-ca-certs name: ingressgateway-ca-certs
secretName: istio-ingressgateway-ca-certs secretName: istio-ingressgateway-ca-certs
type: NodePort
global: global:
jwtPolicy: first-party-jwt jwtPolicy: first-party-jwt

View File

@ -73,6 +73,7 @@ kubezero:
ingress: ingress:
private: {{ .Values.istio.ingress.private }} private: {{ .Values.istio.ingress.private }}
type: {{ .Values.istio.ingress.type }} type: {{ .Values.istio.ingress.type }}
replicaCount: {{ default 2 .Values.istio.ingress.replicaCount }}
dnsNames: dnsNames:
{{- with .Values.istio.ingress.dnsNames }} {{- with .Values.istio.ingress.dnsNames }}
{{- . | toYaml | nindent 8 }} {{- . | toYaml | nindent 8 }}