vkdr kong
Use these commands to install and manage Kong Gateway as an ingress controller in your vkdr cluster.
Kong Gateway is a powerful API gateway that can be used as an ingress controller with advanced features like rate limiting, authentication, and more.
vkdr kong install
Install Kong Gateway in your cluster.
vkdr kong install [-es] [--acme] [--api] [--default-ic] [--oidc] \
[--use-nodeport] [--acme-server=<acme_server>] [-d=<domain>] \
[-i=<image_name>] [-l=<license>] [--log-level=<log_level>] \
[-m=<kong_mode>] [-p=<admin_password>] [--proxy-tls-secret=<proxy_tls_secret>] \
[-t=<image_tag>] [--env=<String=String>]... [--label=<String=String>]...
Flags
| Flag | Shorthand | Description | Default |
|---|---|---|---|
--domain | -d | Domain name for the generated ingress | localhost |
--secure | -s | Enable HTTPS | false |
--enterprise | -e | Run Kong Gateway enterprise image | false |
--mode | -m | Kong mode: dbless, standard, or hybrid | dbless |
--admin | -p | Kong admin password | vkdr1234 |
--default-ic | Make Kong the cluster's default ingress controller | false | |
--api | Expose gateway endpoint at api.DOMAIN | false | |
--acme | Enable ACME plugin globally for automatic TLS | false | |
--acme-server | ACME server: staging or production | staging | |
--oidc | Enable OIDC authentication for Admin API/UI | false | |
--use-nodeport | Use NodePort instead of LoadBalancer | false | |
--image | -i | Kong image name | (chart default) |
--tag | -t | Kong image tag | (chart default) |
--license | -l | Kong license file (for enterprise) | (none) |
--proxy-tls-secret | Secret with default TLS certificate for proxy | (none) | |
--log-level | Kong log level | (default) | |
--env | Kong environment variables (repeatable) | (none) | |
--label | Custom labels for Kong resources (repeatable) | (none) |
Examples
Basic Installation
Install Kong as the default ingress controller:
vkdr infra up
vkdr kong install --default-ic
# Access Kong at http://localhost:8000
With Custom Domain and HTTPS
vkdr kong install -d example.com -s --default-ic
Enterprise Mode
vkdr kong install -e -l /path/to/license.json --default-ic
With OIDC Authentication (Keycloak)
vkdr infra up
vkdr keycloak install
vkdr kong install --default-ic --oidc
# Kong Admin UI uses Keycloak for authentication
# Requires 'vkdr' realm with 'kong-admin' OpenID Connect client
With ACME (Let's Encrypt)
vkdr kong install -d myapp.example.com -s --acme --acme-server production --default-ic
Using NodePort
When using NodePort mode, Kong uses ports 30000-30001:
# Start cluster with nodeports exposed
vkdr infra start --nodeports 2
# Install Kong with NodePort
vkdr kong install --use-nodeport --default-ic
# Access via http://localhost:9000