apisix

by KubeGems

Helm chartv0.10.0App 2.14.1

A Helm chart for Apache APISIX

About this chart

Apache APISIX for Kubernetes

Apache APISIX is a dynamic, real-time, high-performance API gateway.

APISIX provides rich traffic management features such as load balancing, dynamic upstream, canary release, circuit breaking, authentication, observability, and more.

You can use Apache APISIX to handle traditional north-south traffic, as well as east-west traffic between services. It can also be used as a k8s ingress controller.

This chart bootstraps all the components needed to run Apache APISIX on a Kubernetes Cluster using Helm.

Prerequisites

  • Kubernetes v1.14+
  • Helm v3+

Install

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

helm repo add apisix https://charts.apiseven.com
helm repo update

helm install [RELEASE_NAME] apisix/apisix --namespace ingress-apisix --create-namespace

Uninstall

To uninstall/delete a Helm release my-apisix:

helm delete [RELEASE_NAME] --namespace ingress-apisix

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

Parameters

The following tables lists the configurable parameters of the apisix chart and their default values per section/component:

Global parameters

ParameterDescriptionDefault
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)

apisix parameters

ParameterDescriptionDefault
apisix.enabledEnable or disable Apache APISIX itselftrue
apisix.enableIPv6Enable nginx IPv6 resolvertrue
apisix.enableCustomizedConfigEnable full customized config.yamlfalse
apisix.customizedConfigIf apisix.enableCustomizedConfig is true, full customized config.yaml. Please note that other settings about APISIX config will be ignored{}
apisix.image.repositoryApache APISIX image repositoryapache/apisix
apisix.image.tagApache APISIX image tag{TAG_NAME} (the latest Apache APISIX image tag)
apisix.image.pullPolicyApache APISIX image pull policyIfNotPresent
apisix.kindApache APISIX kind use a DaemonSet or DeploymentDeployment
apisix.replicaCountApache APISIX deploy replica count,kind is DaemonSet,replicaCount not become effective1
apisix.podAnnotationsAnnotations to add to each pod{}
apisix.podSecurityContextSet the securityContext for Apache APISIX pods{}
apisix.securityContextSet the securityContext for Apache APISIX container{}
apisix.podDisruptionBudget.enabledEnable or disable podDisruptionBudgetfalse
apisix.podDisruptionBudget.minAvailableSet the minAvailable of podDisruptionBudget. You can specify only one of maxUnavailable and minAvailable in a single PodDisruptionBudget. See Specifying a Disruption Budget for your Application for more detailsNot set
apisix.podDisruptionBudget.maxUnavailableSet the maxUnavailable of podDisruptionBudget1
apisix.resourcesSet pod resource requests & limits{}
apisix.nodeSelectorNode labels for Apache APISIX pod assignment{}
apisix.tolerationsList of node taints to tolerate{}
apisix.affinitySet affinity for Apache APISIX deploy{}
apisix.podAntiAffinity.enabledEnable or disable podAntiAffinityfalse
apisix.setIDFromPodUIDWhether to use the Pod UID as the APISIX instance id, see apache/apisix#5417 to decide whether you should enable this setting)false
apisix.customLuaSharedDictsAdd custom lua_shared_dict settings, click here to learn the format of a shared dict[]
apisix.pluginAttrsSet APISIX plugin attributes, see config-default.yaml for more details{}
apisix.luaModuleHook.enabledWhether to add a custom lua modulefalse
apisix.luaModuleHook.luaPathConfigure LUA_PATH so that your own lua module codes can be located""
apisix.luaModuleHook.hookPointThe entrypoint of your lua module, use Lua require syntax, like "module.say_hello"""
apisix.luaModuleHook.configMapRef.nameName of the ConfigMap where the lua module codes store""
apisix.luaModuleHook.configMapRef.mounts[].keyName of the ConfigMap key, for setting the mapping relationship between ConfigMap key and the lua module code path.

Deploy apisix with OpenTenant

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