Helm chartv3.4.5App 2.3.3Verified publisher

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

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
global.storageClassGlobal storage class for dynamic provisioningnil

Common Parameters

ParameterDescriptionDefault
nameOverrideString to partially override kong.fullname template with a string (will prepend the release name)nil
fullnameOverrideString to fully override kong.fullname template with a stringnil
commonLabelsLabels to add to all deployed objectsnil
commonAnnotationsAnnotations to add to all deployed objects[]
clusterDomainKubernetes cluster domaincluster.local
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)nil

Deployment Parameters

ParameterDescriptionDefault
image.registrykong image registrydocker.io
image.repositorykong image namebitnami/kong
image.tagkong image tag{TAG_NAME}
image.pullPolicykong image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
replicaCountNumber of replicas of the kong Pod2
updateStrategyUpdate strategy for deployment{type: "RollingUpdate"}
schedulerNameAlternative schedulernil
databaseSelect which database backend Kong will use. Can be 'postgresql' or 'cassandra'postgresql
containerSecurityContextContainer security podSecurityContext{ runAsUser: 1001, runAsNonRoot: true}
podSecurityContextPod security context{}
hostAliasesAdd deployment host aliases[]
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
podAnnotationsPod annotations{}
podLabelsPod labels{}
sidecarsAttach additional containers to the pod (evaluated as a template)nil
initContainersAdd additional init containers to the pod (evaluated as a template)nil
pdb.enabledDeploy a pdb object for the Kong podfalse
pdb.maxUnavailableMaximum unavailable Kong replicas (expressed in percentage)50%
autoscaling.enabledDeploy a HorizontalPodAutoscaler object for the Kong deploymentfalse
autoscaling.apiVersionAPI Version of the HPA object (for compatibility with Openshift)v1beta1
autoscaling.minReplicasMinimum number of replicas to scale back2
autoscaling.maxReplicasMaximum number of replicas to scale out2
autoscaling.metricsMetrics to use when deciding to scale the deployment (evaluated as a template)Check values.yaml
extraVolumesArray of extra volumes to be added to the Kong deployment deployment (evaluated as template). Requires setting extraVolumeMountsnil
kong.livenessProbeLiveness probe (kong container)Check values.yaml
kong.readinessProbeReadiness probe (kong container)Check values.yaml
kong.lifecycleHooksLifecycle hooks (kong container)Check deployment.yaml
kong.customLivenessProbeOverride default liveness probe (kong container)nil
kong.customReadinessProbeOverride default readiness probe (kong container)nil
kong.resourcesConfigure resource requests and limits (kong container)nil
kong.extraVolumeMountsArray of extra volume mounts to be added to the Kong Container (evaluated as template). Normally used with extraVolumes.nil
ingressController.livenessProbeLiveness 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkong is pinned at v3.4.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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