istio using kubernetes gateway api (httproute/gateway) to host multiple hosts applications
In this example, we are going to setup istio to use kubernetes gateway api to host multiple hosts. In this setup, we have a single localhost and we can support servera.example.com and serverb.example.com and many more. First we have to get istio installed and install the kubernetes gateway api CRD. Setup istio istioctl install -f samples/bookinfo/demo-profile-no-gateways.yaml -y install kubernetes gateway api crds kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd?ref=v1.3.0" | kubectl apply -f - Let's deploy our application A and application B. Application A uses port 8080 and uses httpbin as the app image. apiVersion : v1 kind : Namespace metadata : name : tenant-a labels : tenant : tenant-a --- apiVersion : v1 kind : Service metadata : name : servera-service namespace : tenant-a spec : selector : app : servera ports : - port : 8080 targetPort : 8080 --- apiVersion...