krakend

by KvalitetsIT

Helm chartv0.0.3App 0.0.3MITVerified publisher

A Helm chart for Kubernetes

About this chart

krakend-helm

An helm chart to deploy krakend in a kubernetes cluster

  • Installs the api-gateway system KrakenD

TL;DR;

$ helm install krakend-helm

Installing the Chart

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

$ helm install --name my-release krakend-helm

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Upgrading an existing Release to a new major version

A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions.

Configuration

ParameterDescriptionDefault
replicasNumber of nodes1
securityContextDeployment securityContext{}
image.repositoryImage repositorydevopsfaith/krakend
image.tagImage taglatest
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsImage pull secrets{}
service.typeKubernetes service typeClusterIP
service.portKubernetes port where service is exposed80
ingress.enabledEnables Ingressfalse
ingress.annotationsIngress annotations (values are templated){}
ingress.hostsIngress accepted hostnames[]
ingress.tlsIngress TLS configuration[]
resourcesCPU/Memory resource requests/limits{}
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
affinityAffinity settings for pod assignment{}
annotationsDeployment annotations{}
serviceAccount.annotationsServiceAccount annotations
serviceAccount.createCreate service accounttrue
serviceAccount.nameService account name to use, when empty will be set to created account if serviceAccount.create is set else to default``
podAnnotationsDeployment{}
namespaceOverrideOverride the deployment namespace"" (Release.Namespace)

Deploy krakend with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has krakend 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 chartkrakend is pinned at v0.0.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