Table of Contents

Kong for Kubernetes

Kong for Kubernetes, often referred to as the Kong Ingress Controller (KIC), is an open-source ingress controller that leverages the power of the Kong API gateway to manage and control external access to services within Kubernetes clusters. By combining the flexibility of Kong with the native Kubernetes ecosystem, KIC offers a robust solution for routing, securing, and managing API traffic in your Kubernetes deployments.

Key Features

Benefits

Code Examples

While KIC's configuration primarily involves Kubernetes manifests and custom resources, here's a simplified example of an Ingress definition using KIC:

```yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata:

 name: my-ingress
 annotations:
   kubernetes.io/ingress.class: kong
spec:
 rules:
 - http:
     paths:
     - path: /api
       pathType: Prefix
       backend:
         service:
           name: my-service
           port:
             number: 80
```

This configuration defines an Ingress resource that uses the `kong` ingress class to route traffic to the `/api` path to the `my-service` service on port 80.

Additional Resources