apisix
by KubeGems
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
| Parameter | Description | Default |
|---|---|---|
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
apisix parameters
| Parameter | Description | Default |
|---|---|---|
apisix.enabled | Enable or disable Apache APISIX itself | true |
apisix.enableIPv6 | Enable nginx IPv6 resolver | true |
apisix.enableCustomizedConfig | Enable full customized config.yaml | false |
apisix.customizedConfig | If apisix.enableCustomizedConfig is true, full customized config.yaml. Please note that other settings about APISIX config will be ignored | {} |
apisix.image.repository | Apache APISIX image repository | apache/apisix |
apisix.image.tag | Apache APISIX image tag | {TAG_NAME} (the latest Apache APISIX image tag) |
apisix.image.pullPolicy | Apache APISIX image pull policy | IfNotPresent |
apisix.kind | Apache APISIX kind use a DaemonSet or Deployment | Deployment |
apisix.replicaCount | Apache APISIX deploy replica count,kind is DaemonSet,replicaCount not become effective | 1 |
apisix.podAnnotations | Annotations to add to each pod | {} |
apisix.podSecurityContext | Set the securityContext for Apache APISIX pods | {} |
apisix.securityContext | Set the securityContext for Apache APISIX container | {} |
apisix.podDisruptionBudget.enabled | Enable or disable podDisruptionBudget | false |
apisix.podDisruptionBudget.minAvailable | Set 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 details | Not set |
apisix.podDisruptionBudget.maxUnavailable | Set the maxUnavailable of podDisruptionBudget | 1 |
apisix.resources | Set pod resource requests & limits | {} |
apisix.nodeSelector | Node labels for Apache APISIX pod assignment | {} |
apisix.tolerations | List of node taints to tolerate | {} |
apisix.affinity | Set affinity for Apache APISIX deploy | {} |
apisix.podAntiAffinity.enabled | Enable or disable podAntiAffinity | false |
apisix.setIDFromPodUID | Whether to use the Pod UID as the APISIX instance id, see apache/apisix#5417 to decide whether you should enable this setting) | false |
apisix.customLuaSharedDicts | Add custom lua_shared_dict settings, click here to learn the format of a shared dict | [] |
apisix.pluginAttrs | Set APISIX plugin attributes, see config-default.yaml for more details | {} |
apisix.luaModuleHook.enabled | Whether to add a custom lua module | false |
apisix.luaModuleHook.luaPath | Configure LUA_PATH so that your own lua module codes can be located | "" |
apisix.luaModuleHook.hookPoint | The entrypoint of your lua module, use Lua require syntax, like "module.say_hello" | "" |
apisix.luaModuleHook.configMapRef.name | Name of the ConfigMap where the lua module codes store | "" |
apisix.luaModuleHook.configMapRef.mounts[].key | Name 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartapisix is pinned at v0.10.0 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