make nodeselector for private ingress configurable

This commit is contained in:
Stefan Reimer 2020-08-10 13:20:36 +01:00
parent 5d9f2a5226
commit 665fc68f7e
3 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-istio name: kubezero-istio
description: KubeZero Umbrella Chart for Istio description: KubeZero Umbrella Chart for Istio
type: application type: application
version: 0.2.1 version: 0.2.2
appVersion: 1.6.7 appVersion: 1.6.7
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png

View File

@ -1,4 +1,4 @@
{{- if .Values.ingress.private }} {{- if .Values.ingress.private.enabled }}
apiVersion: install.istio.io/v1alpha1 apiVersion: install.istio.io/v1alpha1
kind: IstioOperator kind: IstioOperator
metadata: metadata:
@ -36,7 +36,7 @@ spec:
value: standard value: standard
{{- if eq .Values.ingress.type "NodePort" }} {{- if eq .Values.ingress.type "NodePort" }}
nodeSelector: nodeSelector:
node.kubernetes.io/ingress.private: "31080_31443_30671_30672_31224" node.kubernetes.io/ingress.private: {{ .Values.ingress.private.nodeSelector }}
{{- end }} {{- end }}
resources: resources:
limits: limits:

View File

@ -6,7 +6,9 @@ ingress:
autoscaleEnabled: false autoscaleEnabled: false
replicaCount: 2 replicaCount: 2
type: NodePort type: NodePort
private: true private:
enabled: true
nodeSelector: "31080_31443_30671_30672_31224"
#dnsNames: #dnsNames:
#- "*.example.com" #- "*.example.com"