Untitled
cion
plain_text
a year ago
953 B
19
Indexable
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ .Values.frontendName }}-virtual-service
namespace: {{ .Values.namespace }}
spec:
hosts:
- {{ .Values.host.frontend }}
gateways:
- {{ .Values.networking.endUserGateway }}
http:
- match:
- port: 443
uri:
prefix: "{{ .Values.route.prefix.backend }}"
route:
- destination:
host: {{ .Values.backendName }}.{{ .Values.namespace }}.svc.cluster.local
port:
number: {{ .Values.networking.backendServicePort }}
headers:
request:
set:
X-ASM-RCTOKEN: "%REQ(X-ASM-RCToken)%"
- match:
- port: 443
uri:
prefix: "{{ .Values.route.prefix.frontend }}"
route:
- destination:
host: {{ .Values.frontendName }}.{{ .Values.namespace }}.svc.cluster.local
port:
number: {{ .Values.networking.frontendServicePort }}Editor is loading...
Leave a Comment