Make private Ingress optional but enabled by default

This commit is contained in:
Stefan Reimer 2020-07-23 15:01:34 +00:00
parent 40164dd02b
commit 0906fed564
4 changed files with 5 additions and 1 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.1.4 version: 0.2.0
appVersion: 1.6.5 appVersion: 1.6.5
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,3 +1,4 @@
{{- if .Values.ingress.private }}
apiVersion: install.istio.io/v1alpha1 apiVersion: install.istio.io/v1alpha1
kind: IstioOperator kind: IstioOperator
metadata: metadata:
@ -99,3 +100,4 @@ spec:
global: global:
jwtPolicy: first-party-jwt jwtPolicy: first-party-jwt
{{- end }}

View File

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

View File

@ -71,6 +71,7 @@ kubezero:
istiod: istiod:
replicaCount: {{ ternary 2 1 .Values.HighAvailableControlplane }} replicaCount: {{ ternary 2 1 .Values.HighAvailableControlplane }}
ingress: ingress:
private: {{ default true .Vauues.istio.ingress.private }}
type: {{ default "NodePort" .Values.istio.ingress.type }} type: {{ default "NodePort" .Values.istio.ingress.type }}
dnsNames: dnsNames:
{{- with .Values.istio.ingress.dnsNames }} {{- with .Values.istio.ingress.dnsNames }}