GKE
To install Kong Ingress Controller for Konnect, select a Kong Ingress Controller Control Plane in Gateway Manager and follow the instructions in the UI
Prerequisites
- Set up an GKE cluster.
- Install
kubectl
and update yourkubeconfig
to point to the GKE Kubernetes cluster by runninggcloud container clusters get-credentials <my-cluster-name> --zone <my-zone> --project <my-project-id>
Deploy the Kong Ingress Controller
-
Add the Kong Helm repo
helm repo add kong https://charts.konghq.com helm repo update
-
Deploy the Kong Ingress Controller using
Helm
:helm install kong kong/ingress -n kong --create-namespace
The results should look like this:
NAME: kong LAST DEPLOYED: Tue Oct 3 15:12:38 2023 NAMESPACE: kong STATUS: deployed REVISION: 1 TEST SUITE: None
Note: this process could take up to five minutes the first time.
Setup environment variables
Create an environment variable with the IP address at which Kong is accessible. This IP address sends requests to the Kubernetes cluster.
-
Get the IP address at which Kong is accessible.
$ kubectl get services -n kong
The results should look like this:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kong-gateway-proxy LoadBalancer 34.118.227.63 34.28.38.36 80:32683/TCP,443:30798/TCP 5m2s
-
Create an environment variable for the LoadBalancer IP.
$ export PROXY_IP=$(kubectl get -o jsonpath="{.status.loadBalancer.ingress[0].ip}" service -n kong kong-gateway-proxy)
It may take some time for GKE to associate the IP address to the
kong-gateway-proxy
Service.
After you’ve installed the Kong Ingress Controller, learn to use Ingress Controller, see the getting started tutorial.