Helm chartv7.1.3App 3.0.0

Kong is an open source Microservice API gateway and platform designed for managing microservices requests of high-availability, fault-tolerance, and distributed systems.

About this chart

Kong packaged by Bitnami

Kong is an open source Microservice API gateway and platform designed for managing microservices requests of high-availability, fault-tolerance, and distributed systems.

Overview of Kong

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

  helm repo add my-repo https://charts.bitnami.com/bitnami
  helm install my-release my-repo/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.

Extra functionalities beyond the Kong core 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.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

  helm repo add my-repo https://charts.bitnami.com/bitnami
  helm install my-release my-repo/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

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override common.names.fullname template with a string (will prepend the release name)""
fullnameOverrideString to fully override common.names.fullname template with a string""
commonAnnotationsCommon annotations to add to all Kong resources (sub-charts are not considered). Evaluated as a template{}
commonLabelsCommon labels to add to all Kong resources (sub-charts are not considered). Evaluated as a template{}
clusterDomainKubernetes cluster domaincluster.local
extraDeployArray of extra objects to deploy with the release (evaluated as a template).[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the daemonset/deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the daemonset/deployment["infinity"]

Kong common parameters

NameDescriptionValue
image.registrykong image registrydocker.io
image.repositorykong image repositorybitnami/kong
image.tagkong image tag (immutable tags are recommended)2.8.1-debian-11-r34
image.digestkong image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicykong image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugEnable image debug modefalse
databaseSelect which database backend Kong will use. Can be 'postgresql' or 'cassandra'postgresql

Kong deployment / daemonset parameters

NameDescriptionValue
useDaemonsetUse a daemonset instead of a deployment. replicaCount will not take effect.false
replicaCountNumber of Kong replicas2
containerSecurityContext.enabledEnabled Kong containers' Security Contexttrue
containerSecurityContext.runAsUserSet Kong container's Security Context runAsUser1001
containerSecurityContext.runAsNonRootSet Kong container's Security Context runAsNonRoottrue
podSecurityContext.enabledEnabled Kong pods' Security Contextfalse
podSecurityContext.fsGroupSet Kong pod's Security Context fsGroup1001
updateStrategy.typeKong update strategyRollingUpdate
updateStrategy.rollingUpdateKong deployment rolling update configuration parameters{}
hostAliasesAdd deployment host aliases[]
topologySpreadConstraintsTopology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template[]
priorityClassNamePriority Class Name""
schedulerNameUse an alternate scheduler, e.g. "stork".""
terminationGracePeriodSecondsSeconds Kong pod needs to terminate gracefully""
podAnnotationsAdditional pod annotations{}
podLabelsAdditional pod labels{}
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.[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
extraVolumesArray of extra volumes to be added to the Kong deployment deployment (evaluated as template). Requires setting extraVolumeMounts[]
initContainersAdd additional init containers to the Kong pods[]
sidecarsAdd additional sidecar containers to the Kong pods[]
autoscaling.enabledDeploy a HorizontalPodAutoscaler object for the Kong deploymentfalse
autoscaling.minReplicasMinimum number of replicas to scale back2
autoscaling.maxReplicasMaximum number of replicas to scale out5
autoscaling.metricsMetrics to use when deciding to scale the deployment (evaluated as a template)[]
pdb.createDeploy a PodDisruptionBudget object for Kong deploymentfalse
pdb.minAvailableMinimum available Kong replicas (expressed in percentage)""
pdb.maxUnavailableMaximum unavailable Kong replicas (expressed in percentage)50%

Kong Container Parameters

NameDescriptionValue
kong.commandOverride default container command (useful when using custom images)[]
kong.argsOv

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 v7.1.3 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