Kong for Kubernetes is an Ingress Controller based on the Open-Source Kong Gateway. It consists of two components:
- Kong: the Open-Source Gateway
- Controller: a daemon process that integrates with the Kubernetes platform and configures Kong.
Kong for Kubernetes can be installed using an installer of your choice.
Once you've installed Kong for Kubernetes, jump to the next section on using it.
Please pick one of the following guides depending on your platform:
- Minikube
- Google Kubernetes Engine(GKE) by Google
- Elastic Kubernetes Service(EKS) by Amazon
- Azure Kubernetes Service(AKS) by Microsoft
Use Kustomize to install Kong for Kubernetes:
kustomize build github.com/kong/kubernetes-ingress-controller/deploy/manifests/base
You can use the above URL as a base kustomization and build on top of it to make it suite better for your cluster and use-case.
Once installed, set an environment variable, $PROXY_IP with the External IP address of
the kong-proxy
service in kong
namespace:
export PROXY_IP=$(kubectl get -o jsonpath="{.status.loadBalancer.ingress[0].ip}" service -n kong kong-proxy)
You can use Helm to install Kong via the official Helm chart:
$ helm repo add kong https://charts.konghq.com
$ helm repo update
# Helm 2
$ helm install kong/kong
# Helm 3
$ helm install kong/kong --generate-name --set ingressController.installCRDs=false
Once installed, set an environment variable, $PROXY_IP with the External IP address of
the demo-kong-proxy
service in kong
namespace:
export PROXY_IP=$(kubectl get -o jsonpath="{.status.loadBalancer.ingress[0].ip}" service -n kong demo-kong-proxy)
Once you've installed Kong for Kubernetes, please follow our getting started tutorial to learn more.