Skip to content

Instantly share code, notes, and snippets.

@nashmaniac
Created May 2, 2020 08:28
Show Gist options
  • Save nashmaniac/8bf64db2b80d2b7b20f3bb9acf5b0f90 to your computer and use it in GitHub Desktop.
Save nashmaniac/8bf64db2b80d2b7b20f3bb9acf5b0f90 to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: ingressgateway #self explanatory
namespace: default #self explantory
spec:
servers: # can have multiple server configuration
- port: # this configuration actually means that we will be allow http connection on port 80 for 3 domains which are listed under hosts
number: 80
name: http
protocol: HTTP
hosts: # 3 domains for which we will be accepting requests
- microservice.retailvoice.xyz
- user.microservice.retailvoice.xyz
- product.microservice.retailvoice.xyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment