Skip to content

Instantly share code, notes, and snippets.

@jithin-scaria
Last active May 26, 2022 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jithin-scaria/009235e6d529b554bf04565fbf8e5835 to your computer and use it in GitHub Desktop.
Save jithin-scaria/009235e6d529b554bf04565fbf8e5835 to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
# this is name we use to connect from VirtualServices.
name: istio-in-gw
namespace: istio
spec:
selector:
# this is to connect the Service created. "Instio Ingress Service"
# this should match to connect the Service to gatway.
app: istio-ingress
servers:
# configure the ports as needed. Example http is given,
# this is the `targetPort` configured in "istio-ingress" Service.
- port:
number: 80
name: http
protocol: HTTP
# we can whitelist the hostnames or domains that is allowed thorugh the Gateway
hosts:
- "sub1.example.ca"
- "sub2.example.ca"
- "sub2.example.ca"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment