Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
kubernetes-resources.yaml 4.16 KiB
apiVersion: v1
kind: Service
metadata:
  name: main-core-mw-http-api
spec:
  type: ExternalName
  externalName: main-core-mw-http-api.main-e2e-stack.svc.cluster.local
  ports:
    - port: 80
      name: http
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: preview-app
spec:
  gateways:
    - mesh
    - istio-system/default-gateway
  hosts:
    - "{{ .Values.host }}"
  http:
    - match:
        - uri:
            prefix: /help-documents
      name: office-user-guide
      route:
        - destination:
            host: preview-app-office-user-guide
            port:
              number: 80
    - match:
        - uri:
            prefix: /help
      name: user-guide
      route:
        - destination:
            host: preview-app-core-user-guide
            port:
              number: 80
    - match:
        - uri:
            prefix: /api/oxguard/
      name: guard-routes
      rewrite:
        uri: /oxguard/
      route:
        - destination:
            host: main-core-mw-http-api
            port:
              number: 80
    - match:
        - uri:
            prefix: /pks/
      name: guard-pgp-routes
      rewrite:
        uri: /oxguard/pgp/
      route:
        - destination:
            host: main-core-mw-http-api
            port:
              number: 80
    - match:
        - uri:
            prefix: /appsuite/api/
      name: appsuite-api
      rewrite:
        uri: /api/
      route:
        - destination: