Untitled

 avatar
cion
plain_text
a month ago
953 B
1
Indexable
Never
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 }}
Leave a Comment