kong
Kong is a scalable, open source API layer (aka API gateway or API middleware) that runs in front of any RESTful API. Extra functionalities beyond the core platform are extended through plugins. Kong is built on top of reliable technologies like NGINX and provides an easy-to-use RESTful API to operate and configure the system.
About this chart
Kong
Kong is a scalable, open source API layer (aka API gateway or API middleware) that runs in front of any RESTful API. Extra functionalities beyond the core platform are extended through plugins. Kong is built on top of reliable technologies like NGINX and provides an easy-to-use RESTful API to operate and configure the system.
TL;DR
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-release bitnami/kong
Introduction
This chart bootstraps a kong deployment on a Kubernetes cluster using the Helm package manager. It also includes the kong-ingress-controller container for managing Ingress resources using Kong.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-release bitnami/kong
These commands deploy kong on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
Parameters
The following tables list the configurable parameters of the kong chart and their default values per section/component:
Global Parameters
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
global.storageClass | Global storage class for dynamic provisioning | nil |
Common Parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | String to partially override kong.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override kong.fullname template with a string | nil |
commonLabels | Labels to add to all deployed objects | nil |
commonAnnotations | Annotations to add to all deployed objects | [] |
clusterDomain | Kubernetes cluster domain | cluster.local |
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | nil |
Deployment Parameters
| Parameter | Description | Default |
|---|---|---|
image.registry | kong image registry | docker.io |
image.repository | kong image name | bitnami/kong |
image.tag | kong image tag | {TAG_NAME} |
image.pullPolicy | kong image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
replicaCount | Number of replicas of the kong Pod | 2 |
updateStrategy | Update strategy for deployment | {type: "RollingUpdate"} |
schedulerName | Alternative scheduler | nil |
database | Select which database backend Kong will use. Can be 'postgresql' or 'cassandra' | postgresql |
containerSecurityContext | Container security podSecurityContext | { runAsUser: 1001, runAsNonRoot: true} |
podSecurityContext | Pod security context | {} |
hostAliases | Add deployment host aliases | [] |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | [] |
affinity | Affinity for pod assignment | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
podAnnotations | Pod annotations | {} |
podLabels | Pod labels | {} |
sidecars | Attach additional containers to the pod (evaluated as a template) | nil |
initContainers | Add additional init containers to the pod (evaluated as a template) | nil |
pdb.enabled | Deploy a pdb object for the Kong pod | false |
pdb.maxUnavailable | Maximum unavailable Kong replicas (expressed in percentage) | 50% |
autoscaling.enabled | Deploy a HorizontalPodAutoscaler object for the Kong deployment | false |
autoscaling.apiVersion | API Version of the HPA object (for compatibility with Openshift) | v1beta1 |
autoscaling.minReplicas | Minimum number of replicas to scale back | 2 |
autoscaling.maxReplicas | Maximum number of replicas to scale out | 2 |
autoscaling.metrics | Metrics to use when deciding to scale the deployment (evaluated as a template) | Check values.yaml |
extraVolumes | Array of extra volumes to be added to the Kong deployment deployment (evaluated as template). Requires setting extraVolumeMounts | nil |
kong.livenessProbe | Liveness probe (kong container) | Check values.yaml |
kong.readinessProbe | Readiness probe (kong container) | Check values.yaml |
kong.lifecycleHooks | Lifecycle hooks (kong container) | Check deployment.yaml |
kong.customLivenessProbe | Override default liveness probe (kong container) | nil |
kong.customReadinessProbe | Override default readiness probe (kong container) | nil |
kong.resources | Configure resource requests and limits (kong container) | nil |
kong.extraVolumeMounts | Array of extra volume mounts to be added to the Kong Container (evaluated as template). Normally used with extraVolumes. | nil |
ingressController.livenessProbe | Liveness probe (kong ingress controller container) |
Deploy kong with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kong on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkong is pinned at v3.4.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply