Installing Ingress Gateways with Istio

  1. Create a namespace for the gateway if one does not exist:

    kubectl create namespace <GATEWAY_NAMESPACE>
  2. Enable the namespace for injection:

    kubectl label namespace <GATEWAY_NAMESPACE> istio.io/rev- istio-injection=enabled --overwrite
  3. Copy the configuration files from samples/gateways/istio-ingressgateway from the anthos-service-mesh repository (https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages/tree/main/samples/gateways).

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

  5. Deploy the ingress gateway, which is located in samples/gateways:

    kubectl apply -n <GATEWAY_NAMESPACE> -f samples/gateways/istio-ingressgateway
  6. Verify that the services and pods have been deployed:

    kubectl get pod,service -n <GATEWAY_NAMESPACE>

Last updated