kong
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.
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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname template with a string (will prepend the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template with a string | "" |
commonAnnotations | Common annotations to add to all Kong resources (sub-charts are not considered). Evaluated as a template | {} |
commonLabels | Common labels to add to all Kong resources (sub-charts are not considered). Evaluated as a template | {} |
clusterDomain | Kubernetes cluster domain | cluster.local |
extraDeploy | Array of extra objects to deploy with the release (evaluated as a template). | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the daemonset/deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the daemonset/deployment | ["infinity"] |
Kong common parameters
| Name | Description | Value |
|---|---|---|
image.registry | kong image registry | docker.io |
image.repository | kong image repository | bitnami/kong |
image.tag | kong image tag (immutable tags are recommended) | 2.8.1-debian-11-r34 |
image.digest | kong image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | kong image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Enable image debug mode | false |
database | Select which database backend Kong will use. Can be 'postgresql' or 'cassandra' | postgresql |
Kong deployment / daemonset parameters
| Name | Description | Value |
|---|---|---|
useDaemonset | Use a daemonset instead of a deployment. replicaCount will not take effect. | false |
replicaCount | Number of Kong replicas | 2 |
containerSecurityContext.enabled | Enabled Kong containers' Security Context | true |
containerSecurityContext.runAsUser | Set Kong container's Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set Kong container's Security Context runAsNonRoot | true |
podSecurityContext.enabled | Enabled Kong pods' Security Context | false |
podSecurityContext.fsGroup | Set Kong pod's Security Context fsGroup | 1001 |
updateStrategy.type | Kong update strategy | RollingUpdate |
updateStrategy.rollingUpdate | Kong deployment rolling update configuration parameters | {} |
hostAliases | Add deployment host aliases | [] |
topologySpreadConstraints | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template | [] |
priorityClassName | Priority Class Name | "" |
schedulerName | Use an alternate scheduler, e.g. "stork". | "" |
terminationGracePeriodSeconds | Seconds Kong pod needs to terminate gracefully | "" |
podAnnotations | Additional pod annotations | {} |
podLabels | Additional pod labels | {} |
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. | [] |
affinity | Affinity for pod assignment | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | [] |
extraVolumes | Array of extra volumes to be added to the Kong deployment deployment (evaluated as template). Requires setting extraVolumeMounts | [] |
initContainers | Add additional init containers to the Kong pods | [] |
sidecars | Add additional sidecar containers to the Kong pods | [] |
autoscaling.enabled | Deploy a HorizontalPodAutoscaler object for the Kong deployment | false |
autoscaling.minReplicas | Minimum number of replicas to scale back | 2 |
autoscaling.maxReplicas | Maximum number of replicas to scale out | 5 |
autoscaling.metrics | Metrics to use when deciding to scale the deployment (evaluated as a template) | [] |
pdb.create | Deploy a PodDisruptionBudget object for Kong deployment | false |
pdb.minAvailable | Minimum available Kong replicas (expressed in percentage) | "" |
pdb.maxUnavailable | Maximum unavailable Kong replicas (expressed in percentage) | 50% |
Kong Container Parameters
| Name | Description | Value |
|---|---|---|
kong.command | Override default container command (useful when using custom images) | [] |
kong.args | Ov |
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 v7.1.3 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