Last active
May 26, 2022 18:02
-
-
Save jithin-scaria/009235e6d529b554bf04565fbf8e5835 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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