Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacinsoy committed Sep 6, 2024
1 parent 0034637 commit 66785d3
Showing 1 changed file with 56 additions and 10 deletions.
66 changes: 56 additions & 10 deletions manifests/blog-app/istio-gateway-virtualService.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,71 @@
# Gateway is a CustomResourceDefinition that helps to define how the external-traffic should be handled
apiVersion: networking.istio.io/v1
# # Gateway is a CustomResourceDefinition that helps to define how the external-traffic should be handled
# apiVersion: networking.istio.io/v1
# kind: Gateway
# metadata:
# name: blog-app-gateway
# namespace: istio-system
# spec:
# selector:
# # istio-ingress service (which was deployed to namespace istio-ingress) has the following label
# istio: ingress
# servers:
# - port:
# number: 80
# name: http
# protocol: HTTP
# # Accepts traffic from any hostname. It’s like saying, “I don’t care who’s knocking, let everyone in.”
# # hosts: ["myblog.com"]: Accepts traffic only for myblog.coms
# hosts:
# - "blogapp.magdalani.com"
# ---
# apiVersion: networking.istio.io/v1alpha3
# kind: VirtualService
# metadata:
# name: blog-app
# namespace: blog-app
# spec:
# hosts:
# - "*"
# gateways:
# - blog-app-gateway
# http:
# - match:
# - uri:
# exact: /
# - uri:
# prefix: /static
# - uri:
# prefix: /posts
# - uri:
# exact: /login
# - uri:
# exact: /logout
# - uri:
# exact: /register
# - uri:
# exact: /updateprofile
# route:
# - destination:
# host: frontend
# port:
# number: 80


apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: blog-app-gateway
namespace: istio-system
namespace: blog-app
spec:
selector:
# istio-ingress service (which was deployed to namespace istio-ingress) has the following label
istio: ingress
servers:
- port:
number: 80
name: http
protocol: HTTP
# Accepts traffic from any hostname. It’s like saying, “I don’t care who’s knocking, let everyone in.”
# hosts: ["myblog.com"]: Accepts traffic only for myblog.coms
hosts:
- "blogapp.magdalani.com"
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
Expand Down Expand Up @@ -49,6 +98,3 @@ spec:
host: frontend
port:
number: 80



0 comments on commit 66785d3

Please sign in to comment.