Skip to content

Commit 1b1bfdd

Browse files
author
wlanboy
committed
added certmanager switch
1 parent 930b7d6 commit 1b1bfdd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

webshell-chart/templates/gateway.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ spec:
66
selector:
77
istio: ingressgateway
88
servers:
9+
{{- if .Values.certManager.enabled }}
910
- port:
1011
number: 443
1112
name: https
1213
protocol: HTTPS
1314
hosts:
14-
- {{ .Values.istio.host }}
15+
{{- range .Values.hosts }}
16+
- {{ . }}
17+
{{- end }}
1518
tls:
1619
mode: SIMPLE
1720
credentialName: {{ .Values.istio.tls.secretName }}
21+
{{- end }}
1822
- port:
1923
number: 80
2024
name: http

webshell-chart/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ volume:
2626
istio:
2727
gatewayName: webshell-gw
2828
gatewayNamespace: "istio-ingress"
29-
host: webshell.tp.lan
29+
hosts:
30+
- webshell.tp.lan
31+
- webshell.gmk.lan
3032
tls:
3133
enabled: true
3234
secretName: webshell-tls
@@ -38,3 +40,4 @@ certManager:
3840
name: "local-ca-issuer"
3941
dnsNames:
4042
- webshell.tp.lan
43+
- webshell.gmk.lan

0 commit comments

Comments
 (0)