Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacinsoy committed Sep 6, 2024
1 parent e298269 commit fa55109
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions manifests/blog-app/istio-gateway-virtualService.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
# # 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.com
# # tls:
# # httpsRedirect: false # Handle redirect in the VirtualService
# hosts:
# - "*"
# - port:
# number: 443
# name: https
# protocol: HTTPS
# tls:
# mode: SIMPLE
# credentialName: blog-app-domain-cert-prod
# hosts:
# - "blogapp.magdalani.com"

# 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: blog-app
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.com
# tls:
# httpsRedirect: false # Handle redirect in the VirtualService
hosts:
- "*"
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: blog-app-domain-cert-prod
hosts:
- "blogapp.magdalani.com"

# apiVersion: networking.istio.io/v1
# kind: Gateway
# metadata:
# name: blog-app-gateway
# namespace: blog-app
# spec:
# selector:
# istio: ingress
# servers:
# - port:
# number: 80
# name: http
# protocol: HTTP
# hosts:
# - "*"
---
apiVersion: networking.istio.io/v1
kind: VirtualService
Expand Down

0 comments on commit fa55109

Please sign in to comment.