diff --git a/frontend/deploy/base/kustomization.yml b/frontend/deploy/base/kustomization.yml index 58a063eb7..4ef37f99f 100644 --- a/frontend/deploy/base/kustomization.yml +++ b/frontend/deploy/base/kustomization.yml @@ -3,8 +3,8 @@ kind: Kustomization resources: - serviceaccount.yml - deployment.yml -- service.yml -- metrics.service.yml +- networking.yml +- metrics.networking.yml - allow-metrics.authorizationpolicy.yml - peerauthentication.yml - servicemonitor.yml diff --git a/frontend/deploy/base/metrics.service.yml b/frontend/deploy/base/metrics.networking.yml similarity index 100% rename from frontend/deploy/base/metrics.service.yml rename to frontend/deploy/base/metrics.networking.yml diff --git a/frontend/deploy/base/networking.yml b/frontend/deploy/base/networking.yml new file mode 100644 index 000000000..58258d5cc --- /dev/null +++ b/frontend/deploy/base/networking.yml @@ -0,0 +1,48 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: aro-hcp-frontend + name: aro-hcp-frontend +spec: + ports: + - port: 8443 + protocol: TCP + targetPort: 8443 + selector: + app: aro-hcp-frontend + type: ClusterIP + +--- +apiVersion: networking.istio.io/v1beta1 +kind: Gateway +metadata: + name: aro-hcp-gateway-external +spec: + selector: + istio: aks-istio-ingressgateway-external + servers: + - port: + number: 80 + name: http + protocol: HTTP + hosts: + - "*" +--- +apiVersion: networking.istio.io/v1beta1 +kind: VirtualService +metadata: + name: aro-hcp-vs-frontend +spec: + hosts: + - "*" + gateways: + - aro-hcp-gateway-external + http: + - match: + - port: 80 + route: + - destination: + host: aro-hcp-frontend + port: + number: 8443 diff --git a/frontend/deploy/base/service.yml b/frontend/deploy/base/service.yml deleted file mode 100644 index c17095632..000000000 --- a/frontend/deploy/base/service.yml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app: aro-hcp-frontend - name: aro-hcp-frontend -spec: - ports: - - port: 8443 - protocol: TCP - targetPort: 8443 - selector: - app: aro-hcp-frontend - type: ClusterIP