Steps to install gateways with Istio

  • Create namespace for the gateway, if it does not exist

    kubectl create namespace <GATEWAY_NAMESPACE>

  • Enable namespace fore injection

    kubectl label namespace <GATEWAY_NAMESPACE> istio.io/rev- istio-injection=enabled –overwrite

  • Copy configuration files from samples/gateways/istio-ingressgateway from anthos-service-mesh repository (https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages/tree/main/samples/gateways)

  • Change your directory to the samples folder. To ensure you are in the correct directory, run ls command to list the contents and confirm that gateways/istio-ingressgateway directory exists

  • Deploy ingress gateway (located in samples/gateways)

    kubectl apply -n <GATEWAY_NAMESPACE> -f samples/gateways/istio-ingressgateway

  • Verify the services and pods are deployed

    kubectl get pod,service -n <GATEWAY_NAMESPACE>