Create the kong and kafka namespaces, install Kong Operator, then deploy a Kafka cluster for the Event Gateway examples.
For on-prem, also enable the GWAdmin and OnPremEventGateway controllers, store your Event Gateway license in a Secret, and create the control plane.
Save an Event Gateway license with the event_gateway entitlement as event-gateway-license.jws in your working directory.
This is a signed license token, not the JSON license file that Kong Gateway Enterprise uses.
This guide walks through a complete Kong Event Gateway setup using Kong Operator.
By the end of the series, you will have:
a Konnect Event Gateway control plane
an on-prem Event Gateway control plane that Kong Operator runs in your cluster
an Event Gateway data plane in Kubernetes
a backend Kafka cluster
a virtual cluster, listener, and listener policies
Install Kong Operator using Helm from the OCI registry on Docker Hub. Set nameOverride so that the resources get the same names as with the chart from the Helm repository:
If you want cert-manager to issue and rotate the admission and conversion webhook certificates, install cert-manager to your cluster and enable cert-manager integration by passing the following argument while installing, in the next step:
If you do not enable this, the chart will generate and inject self-signed certificates automatically. We recommend enabling cert-manager to manage the lifecycle of these certificates.
Kong Operator needs a certificate authority to sign the certificate for mTLS communication between the control plane and the data plane.
This is handled automatically by the Helm chart. If you need to provide a custom CA certificate, refer to the certificateAuthority section
in the values.yaml of the Helm chart to learn how to create and reference your own CA certificate.
With an on-prem control plane, Kong Event Gateway data planes pull their configuration from a control plane in your cluster.
You deploy this control plane with a GWAdmin resource. For more information, see On-prem control plane.
Store your Event Gateway license in a Secret. Kong Operator only reads Secrets that have the konghq.com/secret=true label:
kubectl create secret generic gw-admin-license -n kong \ --from-file=license=./event-gateway-license.jwskubectl label secret gw-admin-license -n kong konghq.com/secret=true
The on-prem Kong Event Gateway control plane validates its license itself, and doesn’t start without a valid license.
The LicenseProvisioned=True condition on the GWAdmin only means that the license Secret is mounted.
Check the control plane logs:
kubectl logs -n kong deployment/gw-admin
Copied!
Make sure that the Secret holds the Event Gateway license token with the event_gateway entitlement, not a Kong Gateway Enterprise JSON license.