This commit is contained in:
Amarpreet Minhas 2023-07-08 15:11:47 -04:00
parent 5db059bb28
commit 802ec6ef13

View file

@ -3,14 +3,14 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ .Values.name }}-cert
name: {{ .Values.istio.name }}-cert
namespace: istio-system
spec:
secretName: {{ .Values.name }}-cert
secretName: {{ .Values.istio.name }}-cert
commonName: {{ .Values.istio.commonName }}
dnsNames:
- {{ .Values.istio.commonName }}
{{- range .Values.sans }}
{{- range .Values.istio.sans }}
- {{ . }}
{{- end }}
issuerRef:
@ -22,8 +22,8 @@ spec:
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: {{ .Values.name }}-gateway
namespace: {{ .Values.namespace }}
name: {{ .Values.istio.name }}-gateway
namespace: {{ .Values.istio.namespace }}
spec:
selector:
istio: {{ .Values.istio.ingressSelector }}
@ -34,7 +34,7 @@ spec:
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: {{ .Values.name }}-cert
credentialName: {{ .Values.istio.name }}-cert
hosts:
- {{ .Values.istio.commonName }}
...
@ -42,13 +42,13 @@ spec:
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ .Values.name }}-gateway
namespace: {{ .Values.namespace }}
name: {{ .Values.istio.name }}-gateway
namespace: {{ .Values.istio.namespace }}
spec:
hosts:
- {{ .Values.istio.commonName }}
gateways:
- {{ .Values.name }}-gateway
- {{ .Values.istio.name }}-gateway
http:
- match:
- uri:
@ -57,6 +57,6 @@ spec:
- destination:
port:
number: {{ .Values.istio.port }}
host: {{ .Values.name }}
host: {{ .Values.istio.name }}
...
{{ end }}