## 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](https://github.com/apache/apisix-ingress-controller/). This chart bootstraps all the components needed to run Apache APISIX on a Kubernetes Cluster using [Helm](https://helm.sh). ## Prerequisites * Kubernetes v1.14+ * Helm v3.8+ ## Install To install the chart with the release name `my-apisix`: ```sh helm repo add apisix https://apache.github.io/apisix-helm-chart helm repo update helm install [RELEASE_NAME] apisix/apisix --namespace ingress-apisix --create-namespace ``` ## Uninstall To uninstall/delete a Helm release `my-apisix`: ```sh helm delete [RELEASE_NAME] --namespace ingress-apisix ``` The command removes all the Kubernetes components associated with the chart and deletes the release. ## Admin API keys The chart does not ship a default Admin API key. When the release has an Admin API (the `traditional` and `control_plane` roles, without `apisix.fullCustomConfig`) and you don't set the keys yourself, the chart generates random keys for the `admin` and `viewer` roles when the release is installed and stores them in the Secret `-admin-credentials` (`apisix-admin-credentials` for the release name `apisix`). `helm upgrade` keeps them, and the bundled ingress controller reads the admin key from the same Secret. To print the admin key: ```sh kubectl get secret --namespace apisix-admin-credentials -o jsonpath='{.data.admin}' | base64 -d ``` To use your own keys, either set `apisix.admin.credentials.admin` and `apisix.admin.credentials.viewer`, or store them in a Secret and set `apisix.admin.credentials.secretName` (plus `secretAdminKey` / `secretViewerKey` if the Secret uses other field names). The publicly known keys that chart versions before 3.0.0 used as defaults are rejected wherever the chart sees them: in `apisix.admin.credentials`, in `apisix.fullCustomConfig.config`, in the generated Secret, and in the Secret named by `secretName` when the chart can read it. On upgrade, a generated key that is missing from the Secret fails the release instead of being replaced (see [Upgrading](#upgrading)). The only exception is `apisix.admin.enabled: false`: no client can use the keys then, so missing ones are generated again. `helm uninstall` deletes the generated Secret, so a new install gets new keys. To let the chart manage keys that an existing release already uses (for example after taking them out of `apisix.admin.credentials`), create the Secret first and let Helm adopt it, then upgrade: ```sh kubectl -n create secret generic -admin-credentials \ --from-literal=admin= --from-literal=viewer= kubectl -n label secret -admin-credentials app.kubernetes.io/managed-by=Helm kubectl -n annotate secret -admin-credentials \ meta.helm.sh/release-name= meta.helm.sh/release-namespace= ``` Keys from a Secret reach APISIX as environment variables. Don't use a key made only of digits, or `true` / `false`: APISIX converts such values to a number or a boolean, and the key stops matching ([apache/apisix#14178](https://github.com/apache/apisix/issues/14178)). ### GitOps and offline rendering The chart keeps a generated key by reading the Secret with Helm's `lookup` function. `lookup` returns nothing when the chart is rendered without access to the cluster: `helm template`, `helm install --dry-run` (client side), and Argo CD, which renders every application with `helm template`. In those cases a new key is generated on every render. Under Argo CD, every sync then writes a new key into the Secret while the running APISIX pods keep the old one, and the bundled ingress controller, which follows the Secret, gets `401 Unauthorized` from the Admin API. With such tools, create the Secret yourself (for example with External Secrets or Sealed Secrets) and set `apisix.admin.credentials.secretName`. With Argo CD you can instead keep the first generated key by adding this to the Application: ```yaml spec: ignoreDifferences: - kind: Secret name: -admin-credentials jsonPointers: - /data syncPolicy: syncOptions: - RespectIgnoreDifferences=true ``` Flux runs `helm install` and `helm upgrade`, so generated keys are kept as with the Helm CLI. Previews that cannot read the cluster (`helm upgrade --dry-run=client`, `helm diff upgrade` on Helm 3, `helmfile diff`) show a newly generated key for the Secret, but the actual upgrade keeps the stored one. Such previews also cannot show an `ADMIN KEY ERROR` that the real upgrade would raise. To preview against the cluster, use `helm upgrade --dry-run=server --hide-secret` (Helm 3.15 or later; without `--hide-secret` the output contains the keys); with helmfile, pass `--template-args="--dry-run=server"`. ### Rotating keys Keys set in `apisix.admin.credentials` are part of the APISIX ConfigMap, so `helm upgrade` restarts APISIX with the new keys. Keys from a Secret, including the generated Secret, are read when APISIX starts: after changing the Secret, run `kubectl rollout restart` on the APISIX workload. The bundled ingress controller watches the Secret and picks up the new admin key by itself. To rotate a generated key, change it in the Secret; later upgrades keep the new value. `helm rollback`, including the automatic rollback of `--atomic` (Helm 3) or `--rollback-on-failure` (Helm 4), re-applies the Secret stored in the target revision, so rolling back to a revision rendered before a rotation restores the old key. After rotating, run `helm upgrade` once so the release records the new key, and don't roll back past that revision. To keep keys out of the release history, use `apisix.admin.credentials.secretName`. ## Upgrading ### To 3.1.0 This chart upgrades the default gateway to Apache APISIX 3.21.0. * If you set `apisix.fullCustomConfig.enabled: true` for a `traditional` or `control_plane` deployment with `deployment.admin.admin_key_required` enabled, give every entry in `deployment.admin.admin_key` an explicit `role` of `admin` or `viewer`. Quote numeric-looking key values in YAML, for example `key: "1234567890123456"`. These checks also apply to traditional deployments with the Admin API disabled. * If you use configuration encryption, back up etcd before upgrading. Pause Admin API writes while old and new gateway versions run together. APISIX 3.21.0 prefixes newly encrypted plugin configuration and metadata values with `$ENC$v1$`. If you have re-saved encrypted resources and need to roll back to a gateway build that cannot read this prefix, restore the pre-upgrade etcd data before starting that build. See the [APISIX 3.21.0 release notes](https://github.com/apache/apisix/releases/tag/3.21.0) for the full upstream upgrade guidance. ### To 3.0.0 Chart 3.0.0 no longer uses the publicly known default Admin API keys (`edd1c9f034335f136f87ad84b625c8f1` and `4054f7cf07e344346cd3f287985e76a2`). * If you already set `apisix.admin.credentials.admin` and `viewer`, or `secretName`, to other keys, nothing changes, with one exception: inline keys are now used exactly as given. Earlier versions rendered them unquoted, so YAML dropped leading and trailing spaces, tabs and line breaks (for example the newline at the end of a file passed with `--set-file`), the quotes around a key that starts with one, and a ` #` with everything after it. Such keys now fail with `ADMIN KEY ERROR` instead of silently becoming a key that clients don't send; remove those parts. * If your release used the defaults, `helm upgrade` fails with `ADMIN KEY ERROR` before changing anything. Choose new keys, pass them with `--set apisix.admin.credentials.admin= --set apisix.admin.credentials.viewer=` or `apisix.admin.credentials.secretName`, upgrade again, and give the new admin key to your Admin API clients. * Argo CD and other tools that render the chart with `helm template` cannot run this check: the first sync of 3.0.0 replaces the public keys with random ones, cutting off Admin API clients, and later renders replace them again (see [GitOps and offline rendering](#gitops-and-offline-rendering)). Create a Secret with your keys and set `apisix.admin.credentials.secretName` in the same change that moves the application to 3.0.0. * With the bundled ingress controller, remove `ingress-controller.gatewayProxy.createDefault` and any admin key set under `ingress-controller.gatewayProxy`: the apisix chart now creates the GatewayProxy with this release's Admin API Service and admin key. If you keep `createDefault: true`, set its admin key yourself. When it uses this release's Admin API Service (`-admin`), directly or through `endpoints` that name it, it must be the key APISIX uses (the same value, or a `secretKeyRef` to the same Secret and field), or the chart refuses to render. Without `endpoints` or `ingress-controller.gatewayProxy.provider.controlPlane.service.name`, the controller chart uses `ingress-controller.apisix.adminService.name`, which defaults to `apisix-admin`. If that default is not this release's Service and this release has its own Admin API, the chart refuses to render and asks you to set the Service name. A data-plane release can keep pointing its controller at a control plane's Admin API Service this way. * With `apisix.admin.credentials.secretName`, the chart reads that Secret with `lookup` to reject the public default keys, so the identity that runs Helm needs `get` on Secrets in the release namespace. Helm's default storage driver keeps releases in Secrets and already needs it. * If the release has no Admin API (the `data_plane` role, `apisix.fullCustomConfig`, or `apisix.admin.enabled: false`) and the bundled ingress controller is enabled, the chart cannot create the GatewayProxy and refuses to render. Point the controller at your control plane with `ingress-controller.gatewayProxy.createDefault: true` and its `endpoints` and admin key, or set `ingress-controller.gatewayProxy.name: ""` to leave the IngressClass without a GatewayProxy. * The bundled apisix-ingress-controller chart moves from 1.3.0 to 1.5.0. Its Gateway API CRDs are no longer installed from `crds/`: they are rendered as templates (`ingress-controller.crds.gatewayAPI.enabled`), only when they are missing or belong to this release, and kept on uninstall. * The bundled etcd accepts client connections only from its own pods and the APISIX pods of this release (`etcd.networkPolicy.allowExternal: false`). During the upgrade, APISIX pods of the previous version cannot reach etcd until they are replaced: Admin API requests that reach them fail, and they receive no configuration changes, but they keep serving the routes they have. With one replica this lasts a few seconds; with several replicas or a DaemonSet, it lasts until the rollout has replaced every old pod. If other pods connect to etcd, for example a data plane installed as another release, the apisix-dashboard chart, APISIX pods with `hostNetwork: true`, or a pod that runs etcdctl, allow them as described in [Access to the bundled etcd](#access-to-the-bundled-etcd). A DaemonSet with `updateStrategy.type: OnDelete` keeps its old pods, which cannot reach etcd, until you delete them. * Don't upgrade with `--reuse-values`, or with `spec.upgrade.preserveValues: true` in Flux: they render with the default values of the chart version you upgrade from, in which etcd accepts every pod, so the chart refuses to render (from 2.0 to 2.7, the etcd chart's image check fails first). Use `--reset-then-reuse-values` (Helm 3.14 or later), or pass your values again; `helm get values --namespace -o yaml` prints the ones you set. Don't add `--all`: its output also holds the defaults of the old version, among them `etcd.networkPolicy.allowExternal: true`, which keeps etcd open to every pod without an error. In Flux, set `spec.upgrade.preserveValues: false`. * The chart now refuses to render `etcd.metrics.enabled` with the metrics on the client port, a release name, `etcd.nameOverride` or `etcd.fullnameOverride` that makes the etcd client label longer than 63 characters, and `hostNetwork: true` without an `etcd.networkPolicy.extraIngress` rule that can admit the addresses of the nodes, unless `etcd.networkPolicy.allowExternal` is true. See [Access to the bundled etcd](#access-to-the-bundled-etcd). * With `etcd.auth.rbac.existingSecret`, APISIX now reads the root password from that Secret, as etcd does. Earlier versions read it from the Secret ``, which the etcd chart does not create in that case. ## Access to the bundled etcd APISIX keeps its configuration in etcd, including routes, consumers and their credentials. Unless etcd requires authentication, which it does not by default, a client that can connect to etcd can read and change all of it without an Admin API key. The bundled etcd therefore accepts client connections only from its own pods and from pods labelled `-client: "true"`, which the chart adds to the APISIX pods and to the pre-upgrade, snapshot and defragmentation jobs of the etcd chart. For a release named `apisix`, the label is `apisix-etcd-client: "true"`. This needs a network plugin that enforces NetworkPolicies. To let another pod in the release's namespace connect, add the label to it before you upgrade this release, for example with `podLabels` for a data plane installed as another release. Set the label as the string `"true"`, in a values file or with `--set-string`: `--set` makes it a boolean, which Kubernetes rejects. For pods in other namespaces, set both `etcd.networkPolicy.ingressNSMatchLabels` and `etcd.networkPolicy.ingressNSPodMatchLabels`: the first alone admits every pod in those namespaces, and the second has no effect without the first. Clients outside the cluster need an `etcd.networkPolicy.extraIngress` rule. To accept connections from any pod, as before 3.0.0, set `etcd.networkPolicy.allowExternal: true`. Pods that cannot carry the label need a rule of their own in `etcd.networkPolicy.extraIngress`: - The apisix-dashboard chart connects to etcd directly. Its pod labels are also the selector of its Deployment (`labelsOverride` replaces both), which cannot change on an existing release, so admit its pods by their default label instead; adjust `matchLabels` if you set `nameOverride` or `labelsOverride` there: ```yaml etcd: networkPolicy: extraIngress: - ports: - port: 2379 from: - podSelector: matchLabels: app.kubernetes.io/name: apisix-dashboard ``` - With `hostNetwork: true`, most network plugins cannot select the APISIX pods by their labels: etcd sees the addresses that the nodes connect from, and accepts connections only from its own node. Admit the nodes that run APISIX with an `ipBlock` rule for those addresses, or set `etcd.networkPolicy.allowExternal: true`: ```yaml etcd: networkPolicy: extraIngress: - ports: - port: 2379 from: - ipBlock: cidr: 10.0.1.17/32 # one entry for each address that a node connects from - ipBlock: cidr: 10.0.1.18/32 ``` Without encapsulation, a node connects from its own address. With encapsulation, it connects to pods on other nodes from the address of its tunnel device, which the network plugin takes from the pod address range: with Calico in IPIP or VXLAN mode, the address in the node annotation `projectcalico.org/IPv4IPIPTunnelAddr` or `projectcalico.org/IPv4VXLANTunnelAddr`, and with Calico's WireGuard encryption on, the one in `projectcalico.org/IPv4WireguardInterfaceAddr` (with its host encryption on, Calico sets no such address and the node's own address applies); with Flannel in VXLAN mode (also used by Canal, k3s and RKE2), the first address of the node's `spec.podCIDR`, such as `10.42.1.0` for `10.42.1.0/24`. List those addresses as well. Some network plugins do not match node addresses with `ipBlock` rules at all, for example Cilium in its default configuration; use `allowExternal: true` there, and consider etcd authentication, described below. Such a rule admits everything that connects from those addresses: every process and every `hostNetwork` pod on those nodes, in any namespace. Update it when nodes are added or replaced. A range is easier to keep, but don't use one that also holds addresses of pods (with the Amazon VPC CNI, for example, pods get addresses from the VPC): the rule would admit those pods as well. The chart refuses to render `hostNetwork: true` unless `allowExternal` is true or `extraIngress` is a list with a rule that has an `ipBlock` or admits every source; it cannot check which addresses and ports a rule admits. The policy also does not stop processes in the host network of the nodes that run etcd. etcd does not require authentication by default (`etcd.auth.rbac.create: false`). With `etcd.auth.rbac.create: true`, APISIX connects as `root` with the root password from `etcd.auth.rbac.rootPassword` or `etcd.auth.rbac.existingSecret`; when both are empty, the etcd chart generates a password into the Secret ``. Under Argo CD and other tools that render the chart without access to the cluster, a generated password changes on every render, so use `existingSecret` there. To turn authentication on for an existing release, create the Secret with the password before you upgrade: ```shell openssl rand -hex 16 | tr -d '\n' | kubectl create secret generic apisix-etcd-auth --namespace \ --from-file=etcd-root-password=/dev/stdin ``` The password must not end with a newline: to use one of your own, pipe it with `printf '%s'`, not with `echo`. ```yaml etcd: auth: rbac: create: true existingSecret: apisix-etcd-auth ``` With `rootPassword` instead, the upgrade of an existing release changes nothing and fails when `--timeout` expires: the etcd chart's pre-upgrade job waits for the password Secret, which only the upgrade itself would create. With neither `rootPassword` nor `existingSecret`, the etcd chart refuses the upgrade at once with `PASSWORDS ERROR`; don't follow its hint to set `auth.rbac.rootPassword`, create the Secret as shown above. During the upgrade with `existingSecret`, the new APISIX pods restart until etcd requires the password. With the default three etcd replicas, etcd requires it only after `etcd-0`, the last pod of the rolling update, has restarted, and each etcd pod is ready no sooner than 60 seconds after it starts, so the upgrade takes several minutes. From the moment etcd requires the password until the new APISIX pods are ready, the APISIX pods of the previous revision cannot use etcd, and Admin API requests fail; the gateway keeps serving its routes. In a test on kind with three replicas, this lasted about 20 seconds, but it can be longer. Run this upgrade with `--timeout 10m`, and without `--atomic` or `--rollback-on-failure`: a rollback after etcd requires the password stops the gateway, as described below. Once etcd requires authentication, do not roll back to a revision without it. etcd keeps authentication on, so the APISIX pods of that revision, which connect without a password, cannot read their configuration, and the gateway stops routing requests. To turn authentication off again, turn it off in etcd and delete the `root` user, then upgrade with `etcd.auth.rbac.create: false`. Without deleting the user, `etcd-0` fails to start when you turn authentication on again later. ```shell kubectl exec --namespace apisix-etcd-0 -- \ sh -c 'ETCDCTL_PASSWORD="${ETCD_ROOT_PASSWORD:-$(cat "$ETCD_ROOT_PASSWORD_FILE")}" etcdctl --user root auth disable' kubectl exec --namespace apisix-etcd-0 -- etcdctl user delete root ``` The first command reads the password in the etcd pod, so it does not appear in the command line or in the audit log of the Kubernetes API server. Run the upgrade right after these commands: until it has replaced the APISIX pods, they keep logging in with the password, which etcd refuses while authentication is off, so Admin API requests fail. If you turn on the metrics of the etcd chart, also set `etcd.metrics.useSeparateEndpoint: true`. Otherwise etcd serves the metrics on its client port, and the etcd chart opens that port to every pod; the chart refuses to render that combination unless `etcd.networkPolicy.allowExternal` is true. It also refuses to render when the release name, `etcd.nameOverride` or `etcd.fullnameOverride` is so long that the client label has more than the 63 characters that Kubernetes allows. ## Configure the wait-etcd init container When `etcd.enabled` is true, `initContainer.resources` and `initContainer.securityContext` configure the built-in `wait-etcd` container for both Deployment and DaemonSet workloads. They are independent of the top-level `resources` and `securityContext`, which configure the APISIX container. Both options default to `{}` and are omitted from the rendered container when empty. Applicable `podSecurityContext` settings still apply to `wait-etcd`. For example: ```yaml initContainer: resources: requests: cpu: 10m memory: 16Mi limits: cpu: 100m memory: 32Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 1000 ``` Adjust resource values for your environment. The default BusyBox image runs as root, so `runAsNonRoot: true` also requires a non-zero UID supplied through `runAsUser`, `podSecurityContext`, or an admission policy. On platforms such as OpenShift that assign a UID, omit the explicit `runAsUser` value. These options do not configure `extraInitContainers` and have no effect when `etcd.enabled` is false. ## Connect to external etcd with server-only TLS For external etcd, use `https://` endpoints in `externalEtcd.host` and set `etcd.auth.tls.enabled: true` to configure TLS verification and SNI. Client certificates are optional: leave `existingSecret`, `certFilename` and `certKeyFilename` empty when etcd does not require a client certificate. For example, to connect to an IP endpoint using a CA stored in a Secret: ```yaml apisix: ssl: enabled: true existingCASecret: etcd-ca certCAFilename: ca.crt etcd: enabled: false auth: tls: enabled: true existingSecret: "" certFilename: "" certKeyFilename: "" verify: true sni: etcd.example.test externalEtcd: host: - https://192.0.2.10:2379 user: "" # This example assumes etcd username/password authentication is disabled. ``` Replace the endpoint, Secret name, CA key and SNI with your actual values. The CA Secret must be in the same namespace as APISIX. If etcd username/password authentication is enabled, configure `externalEtcd.user` and its password or password Secret as usual. The SNI must be a DNS name covered by every endpoint's server certificate. It does not change the connection address or require DNS resolution when the endpoints are IP addresses. An empty SNI is omitted from the APISIX configuration so the client can use the endpoint hostname. For mTLS, keep `etcd.auth.tls.enabled: true` and set `existingSecret`, `certFilename` and `certKeyFilename` under `etcd.auth.tls`. The certificate and key must be configured together. When TLS is enabled, a non-empty `existingSecret` is mounted at `/etcd-ssl`, including when certificate paths are supplied through `apisix.fullCustomConfig`. The CA Secret above is configured separately. With `etcd.auth.tls.enabled: false`, the APISIX etcd TLS settings and client-certificate mount are omitted as before. This flag does not rewrite external endpoint URLs; use `http://` endpoints for HTTP connections. ## Data encryption APISIX encrypts the private keys of SSL objects and of upstream client certificates (`tls.client_key`), and sensitive plugin fields such as the credentials of authentication plugins, before it stores them in etcd. It encrypts with the first key of `apisix.dataEncryption.keyring` and tries every key when it decrypts. Each key is 16 or 32 bytes long (AES-128 or AES-256), for example 16 or 32 ASCII letters, and is used as its own IV. With `apisix.dataEncryption.enableEncryptFields: false`, plugin fields are stored in plain text; private keys are still encrypted with the keyring. When no keyring is set, APISIX uses its built-in keyring, `qeddd145sfvddff3` and `edd1c9f0985e76a2`. These keys are published in the APISIX source code, so anyone who can read etcd can decrypt the data. Set your own keyring, preferably in an existing Secret: keys set in the values are stored in plain text in the APISIX ConfigMap, which the Kubernetes `view` role can read, and in every revision of the Helm release. For a release that stores no encrypted data yet: ```shell kubectl create secret generic apisix-keyring \ --from-literal=key1="$(LC_ALL=C tr -dc 'A-Za-z' "consumer-$CONSUMER.json" ``` 3. Upgrade with the new key first and the current keys after it: ```yaml apisix: dataEncryption: keyring: - "" - qeddd145sfvddff3 - edd1c9f0985e76a2 ``` With a Secret, put the current keys in it after the new one: ```shell kubectl create secret generic apisix-keyring \ --from-literal=key1="" \ --from-literal=key2=qeddd145sfvddff3 \ --from-literal=key3=edd1c9f0985e76a2 ``` ```yaml apisix: dataEncryption: secretName: apisix-keyring secretKeys: [key1, key2, key3] ``` In a decoupled deployment, upgrade the data planes before the control plane. When rotating your own key, first adding the new key after the current one and moving it to the front in a second upgrade lets all pods learn the new key before it is used to encrypt data. This does not remove the need to pause other writers from step 2 until step 4 is complete. 4. PUT the bodies from step 2, not the result of a new GET: ```shell curl -s -X PUT http://127.0.0.1:9180/apisix/admin/consumers -H "X-API-KEY: $ADMIN_KEY" -d @"consumer-$CONSUMER.json" ``` Then upload each SSL object, and each upstream, HTTP route, stream route and service whose upstream configuration sets `tls.client_key`, again with its PEM key, for example from the Kubernetes Secret it came from: the Admin API cannot re-encrypt them from what it stores. Until this step is done, the gateway can reject some of the credentials stored before step 3, and APISIX cannot load about one SSL object in 256 (its log says `failed to parse key`), so TLS handshakes for that object's SNIs fail. Private keys that are still encrypted with the built-in keys can be read by anyone who can read etcd. Resume other configuration writers only after every resource in this step has been restored. 5. You can keep the old keys after the new one; that does not weaken the new key. Remove them only after step 4 is done for every resource: APISIX cannot decrypt anything that is still encrypted with a key that is no longer in the keyring. A rollback to a revision from before the change, with `helm rollback` or by reverting the values, removes the new key, and APISIX can no longer read what was encrypted with it. Undo other changes with an upgrade that keeps the current keyring. ## Parameters ## Values | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | Set affinity for Apache APISIX deploy | | apisix.admin.allow.ingressControllerExtraIpList | list | `["0.0.0.0/0","::/0"]` | Client IP CIDRs appended to ipList when ingress-controller.enabled is true, so that the bundled ingress controller can reach the Admin API. Narrow it to the ingress controller Pod CIDR, or set it to [] to append nothing. | | apisix.admin.allow.ipList | list | `["127.0.0.1/24"]` | The client IP CIDR allowed to access Apache APISIX Admin API service. | | apisix.admin.cors | bool | `true` | Admin API support CORS response headers | | apisix.admin.credentials | object | `{"admin":"","secretAdminKey":"","secretName":"","secretViewerKey":"","viewer":""}` | Admin API credentials. Leave `admin` and `viewer` empty to let the chart generate random keys. They are stored in the Secret `-admin-credentials` and kept across upgrades. Tools that render the chart without access to the cluster (`helm template`, Argo CD) cannot keep generated keys; use `secretName` with them. The publicly known keys that chart versions before 3.0.0 used as defaults are rejected. | | apisix.admin.credentials.admin | string | `""` | Apache APISIX admin API admin role key. Leave empty to generate one. | | apisix.admin.credentials.secretAdminKey | string | `""` | Name of the admin role key in the secret, overrides the default key name "admin" | | apisix.admin.credentials.secretName | string | `""` | The APISIX Helm chart supports storing user credentials in a secret. The secret needs to contain two keys, admin and viewer, with their respective values set. | | apisix.admin.credentials.secretViewerKey | string | `""` | Name of the viewer role key in the secret, overrides the default key name "viewer" | | apisix.admin.credentials.viewer | string | `""` | Apache APISIX admin API viewer role key. Leave empty to generate one. | | apisix.admin.enable_admin_ui | bool | `true` | Enable Embedded Admin UI | | apisix.admin.enabled | bool | `true` | Enable Admin API | | apisix.admin.externalIPs | list | `[]` | IPs for which nodes in the cluster will also accept traffic for the servic | | apisix.admin.ingress | object | `{"annotations":{},"enabled":false,"hosts":[{"host":"apisix-admin.local","paths":["/apisix"]}],"tls":[]}` | Using ingress access Apache APISIX admin service | | apisix.admin.ingress.annotations | object | `{}` | Ingress annotations | | apisix.admin.ingress.enabled | bool | `false` | Enable an Ingress resource in front of the Admin API service | | apisix.admin.ingress.hosts | list | `[{"host":"apisix-admin.local","paths":["/apisix"]}]` | Ingress host and path rules | | apisix.admin.ingress.tls | list | `[]` | Ingress TLS settings | | apisix.admin.ip | string | `"0.0.0.0"` | which ip to listen on for Apache APISIX admin API. Set to `"[::]"` when on IPv6 single stack | | apisix.admin.port | int | `9180` | which port to use for Apache APISIX admin API | | apisix.admin.servicePort | int | `9180` | Service port to use for Apache APISIX admin API | | apisix.admin.type | string | `"ClusterIP"` | admin service type | | apisix.customPlugins | object | `{"enabled":false,"luaPath":"/opts/custom_plugins/?.lua","plugins":[{"attrs":{},"configMap":{"mounts":[{"key":"the-file-name","path":"mount-path"}],"name":"configmap-name"},"name":"plugin-name"}]}` | customPlugins allows you to mount your own HTTP plugins. | | apisix.customPlugins.enabled | bool | `false` | Whether to configure some custom plugins | | apisix.customPlugins.luaPath | string | `"/opts/custom_plugins/?.lua"` | the lua_path that tells APISIX where it can find plugins, note the last ';' is required. | | apisix.customPlugins.plugins[0] | object | `{"attrs":{},"configMap":{"mounts":[{"key":"the-file-name","path":"mount-path"}],"name":"configmap-name"},"name":"plugin-name"}` | plugin name. | | apisix.customPlugins.plugins[0].attrs | object | `{}` | plugin attrs | | apisix.customPlugins.plugins[0].configMap | object | `{"mounts":[{"key":"the-file-name","path":"mount-path"}],"name":"configmap-name"}` | plugin codes can be saved inside configmap object. | | apisix.customPlugins.plugins[0].configMap.mounts | list | `[{"key":"the-file-name","path":"mount-path"}]` | since keys in configmap is flat, mountPath allows to define the mount path, so that plugin codes can be mounted hierarchically. | | apisix.customPlugins.plugins[0].configMap.name | string | `"configmap-name"` | name of configmap. | | apisix.dataEncryption.enableEncryptFields | bool | `true` | Encrypt sensitive plugin fields before storing them in etcd. APISIX encrypts SSL private keys with the keyring either way | | apisix.dataEncryption.keyring | list | `[]` | Keys that encrypt and decrypt, each 16 or 32 bytes long, for example ASCII letters. APISIX encrypts with the first key and tries every key when decrypting. When this and `secretName` are both empty, APISIX uses its built-in keyring, which is public. Keys set here are stored in plain text in the APISIX ConfigMap; prefer `secretName` | | apisix.dataEncryption.secretKeys | list | `["key1"]` | Keys of the Secret `secretName` that hold the keyring, in keyring order | | apisix.dataEncryption.secretName | string | `""` | Name of an existing Secret that holds the keyring. Use it instead of `keyring` | | apisix.deleteURITailSlash | bool | `false` | Delete the '/' at the end of the URI | | apisix.deployment.mode | string | `"traditional"` | Apache APISIX deployment mode Optional: traditional, decoupled, standalone standalone is file-driven standalone: rules are read from the mounted apisix.yaml, and the default traditional role is rendered as data_plane. For API-driven standalone, keep mode traditional and set role_traditional.config_provider to yaml. ref: https://apisix.apache.org/docs/apisix/deployment-modes/ | | apisix.deployment.role | string | `"traditional"` | Deployment role Optional: traditional, data_plane, control_plane ref: https://apisix.apache.org/docs/apisix/deployment-modes/ | | apisix.deployment.role_traditional.config_provider | string | `"etcd"` | Config provider for the traditional role. enum: etcd, yaml | | apisix.deployment.standalone | object | `{"config":"routes:\n-\n uri: /hi\n upstream:\n nodes:\n \"127.0.0.1:1980\": 1\n type: roundrobin\n","existingConfigMap":""}` | Standalone rules configuration ref: https://apisix.apache.org/docs/apisix/deployment-modes/#standalone | | apisix.deployment.standalone.config | string | `"routes:\n-\n uri: /hi\n upstream:\n nodes:\n \"127.0.0.1:1980\": 1\n type: roundrobin\n"` | Rules which are set to the default apisix.yaml configmap. If apisix.delpoyment.standalone.existingConfigMap is empty, these are used. | | apisix.deployment.standalone.existingConfigMap | string | `""` | Specifies the name of the ConfigMap that contains the rule configurations. The configuration must be set to the key named `apisix.yaml` in the configmap. | | apisix.discovery.enabled | bool | `false` | Enable or disable Apache APISIX integration service discovery | | apisix.discovery.registry | object | `{}` | Service discovery registry. Refer to [configuration under discovery](https://github.com/apache/apisix/blob/master/conf/config.yaml.example#L307) for example. Also see [example of using external service discovery](https://apisix.apache.org/docs/ingress-controller/1.8.0/tutorials/external-service-discovery/). | | apisix.dns.enableResolvSearchOpt | bool | `true` | Honor the `search` option in `/etc/resolv.conf` when resolving domain names | | apisix.dns.resolvers | list | `[]` | Nameservers used by APISIX to resolve upstream domain names. When empty (default), nameservers are read from `/etc/resolv.conf`, which is usually what you want inside Kubernetes | | apisix.dns.timeout | int | `5` | DNS resolver timeout in seconds | | apisix.dns.validity | int | `30` | Override the TTL in seconds of valid DNS records | | apisix.enableHTTP2 | bool | `true` | Enable HTTP/2 on the HTTP listeners | | apisix.enableIPv6 | bool | `true` | Enable nginx IPv6 resolver | | apisix.enableServerTokens | bool | `true` | Whether the APISIX version number should be shown in Server header | | apisix.extPlugin.cmd | list | `["/path/to/apisix-plugin-runner/runner","run"]` | the command and its arguements to run as a subprocess | | apisix.extPlugin.enabled | bool | `false` | Enable External Plugins. See [external plugin](https://apisix.apache.org/docs/apisix/next/external-plugin/) | | apisix.fullCustomConfig.config | object | `{}` | If apisix.fullCustomConfig.enabled is true, full customized config.yaml. Please note that other settings about APISIX config will be ignored | | apisix.fullCustomConfig.enabled | bool | `false` | Enable full customized config.yaml | | apisix.graphql.maxSize | int | `1048576` | The maximum size in bytes of GraphQL queries APISIX parses when matching routes by GraphQL attributes (default 1MiB) | | apisix.lru | object | `{"secret":{"count":512,"neg_count":512,"neg_ttl":60,"ttl":300}}` | fine tune the parameters of LRU cache for some features like secret | | apisix.lru.secret.count | int | `512` | Maximum number of cached secret values | | apisix.lru.secret.neg_count | int | `512` | Maximum number of cached negative (failed lookup) results | | apisix.lru.secret.neg_ttl | int | `60` | TTL in seconds for cached negative (failed lookup) results | | apisix.lru.secret.ttl | int | `300` | TTL in seconds for cached secret values | | apisix.luaModuleHook | object | `{"configMapRef":{"mounts":[{"key":"","path":""}],"name":""},"enabled":false,"hookPoint":"","luaPath":""}` | Whether to add a custom lua module | | apisix.luaModuleHook.configMapRef | object | `{"mounts":[{"key":"","path":""}],"name":""}` | configmap that stores the codes | | apisix.luaModuleHook.configMapRef.mounts[0] | object | `{"key":"","path":""}` | Name of the ConfigMap key, for setting the mapping relationship between ConfigMap key and the lua module code path. | | apisix.luaModuleHook.configMapRef.mounts[0].path | string | `""` | Filepath of the plugin code, for setting the mapping relationship between ConfigMap key and the lua module code path. | | apisix.luaModuleHook.configMapRef.name | string | `""` | Name of the ConfigMap where the lua module codes store | | apisix.luaModuleHook.enabled | bool | `false` | Enable loading a custom lua module hook | | apisix.luaModuleHook.hookPoint | string | `""` | the hook module which will be used to inject third party code into APISIX use the lua require style like: "module.say_hello" | | apisix.luaModuleHook.luaPath | string | `""` | extend lua_package_path to load third party code | | apisix.maxRequestHeadersReadable | int | `nil` | Max number of request headers plugins can read; headers past it are still forwarded upstream. 0 disables the limit. Unset uses the APISIX default (100). Requires APISIX 3.20.0+ | | apisix.nginx.configurationSnippet | object | `{"httpAdmin":"","httpEnd":"","httpSrv":"","httpStart":"","main":"","stream":""}` | Custom nginx configuration snippets injected into the generated nginx.conf. As arbitrary configuration can be added here, it is your responsibility to make sure the snippets don't conflict with the configuration generated by APISIX. | | apisix.nginx.configurationSnippet.httpAdmin | string | `""` | Snippet added to the nginx `server` block that serves the Admin API | | apisix.nginx.configurationSnippet.httpEnd | string | `""` | Snippet added to the end of the nginx `http` block | | apisix.nginx.configurationSnippet.httpSrv | string | `""` | Snippet added to the nginx `server` block that proxies regular traffic | | apisix.nginx.configurationSnippet.httpStart | string | `""` | Snippet added to the beginning of the nginx `http` block | | apisix.nginx.configurationSnippet.main | string | `""` | Snippet added to the nginx `main` (top-level) block | | apisix.nginx.configurationSnippet.stream | string | `""` | Snippet added to the nginx `stream` block | | apisix.nginx.customLuaSharedDicts | list | `[]` | Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module?tab=readme-ov-file#lua_shared_dict) settings, click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict | | apisix.nginx.enableCPUAffinity | bool | `true` | Bind nginx worker processes to CPUs | | apisix.nginx.envs | list | `[]` | List of environment variable names allowed to be accessed within nginx (rendered as nginx `env` directives) | | apisix.nginx.http | object | `{"charset":"utf-8","clientBodyTimeout":"60s","clientHeaderTimeout":"60s","clientMaxBodySize":0,"proxySslServerName":true,"realIpFrom":["127.0.0.1","unix:"],"realIpHeader":"X-Real-IP","realIpRecursive":"off","sendTimeout":"10s","underscoresInHeaders":"on","upstream":{"keepalive":320,"keepaliveRequests":1000,"keepaliveTimeout":"60s"},"variablesHashMaxSize":2048}` | Nginx HTTP subsystem configurations | | apisix.nginx.http.charset | string | `"utf-8"` | The charset added to the "Content-Type" response header field, see [charset](http://nginx.org/en/docs/http/ngx_http_charset_module.html#charset) | | apisix.nginx.http.clientBodyTimeout | string | `"60s"` | timeout for reading client request body, then 408 (Request Time-out) error is returned to the client | | apisix.nginx.http.clientHeaderTimeout | string | `"60s"` | timeout for reading client request header, then 408 (Request Time-out) error is returned to the client | | apisix.nginx.http.clientMaxBodySize | int | `0` | The maximum allowed size of the client request body. If exceeded, the 413 (Request Entity Too Large) error is returned to the client. Note that unlike Nginx, we don't limit the body size by default (0 means no limit). | | apisix.nginx.http.proxySslServerName | bool | `true` | Enables or disables passing of the server name through TLS Server Name Indication extension (SNI, RFC 6066) when establishing a connection with the proxied HTTPS server | | apisix.nginx.http.realIpFrom | list | `["127.0.0.1","unix:"]` | Trusted addresses from which the real IP header is honored, see [set_real_ip_from](http://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from) | | apisix.nginx.http.realIpHeader | string | `"X-Real-IP"` | The request header used to determine the client's real IP address, see [real_ip_header](http://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header) | | apisix.nginx.http.realIpRecursive | string | `"off"` | Whether to search for the real IP recursively when the header set in apisix.nginx.http.realIpHeader contains multiple addresses, see [real_ip_recursive](http://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_recursive) | | apisix.nginx.http.sendTimeout | string | `"10s"` | timeout for transmitting a response to the client, then the connection is closed | | apisix.nginx.http.underscoresInHeaders | string | `"on"` | Enable the use of underscores in client request header fields | | apisix.nginx.http.upstream | object | `{"keepalive":320,"keepaliveRequests":1000,"keepaliveTimeout":"60s"}` | Keepalive settings for connections from APISIX to upstream servers | | apisix.nginx.http.upstream.keepalive | int | `320` | Maximum number of idle keepalive connections to upstream servers that are preserved in the cache of each worker process. When this number is exceeded, the least recently used connections are closed | | apisix.nginx.http.upstream.keepaliveRequests | int | `1000` | Maximum number of requests that can be served through one keepalive connection. After the maximum number of requests is made, the connection is closed | | apisix.nginx.http.upstream.keepaliveTimeout | string | `"60s"` | Timeout during which an idle keepalive connection to an upstream server will stay open | | apisix.nginx.http.variablesHashMaxSize | int | `2048` | The maximum size of the nginx variables hash table | | apisix.nginx.keepaliveTimeout | string | `"60s"` | Timeout during which a keep-alive client connection will stay open on the server side. | | apisix.nginx.logs.accessLog | string | `"/dev/stdout"` | Access log path | | apisix.nginx.logs.accessLogFormat | string | `"$remote_addr - $remote_user [$time_local] $http_host \\\"$request\\\" $status $body_bytes_sent $request_time \\\"$http_referer\\\" \\\"$http_user_agent\\\" $upstream_addr $upstream_status $upstream_response_time \\\"$upstream_scheme://$upstream_host$upstream_uri\\\""` | Access log format | | apisix.nginx.logs.accessLogFormatEscape | string | `"default"` | Allows setting json or default characters escaping in variables | | apisix.nginx.logs.enableAccessLog | bool | `true` | Enable access log or not, default true | | apisix.nginx.logs.errorLog | string | `"/dev/stderr"` | Error log path | | apisix.nginx.logs.errorLogLevel | string | `"warn"` | Error log level | | apisix.nginx.logs.stream | object | `{"accessLog":"logs/access_stream.log","accessLogFormat":"$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time","accessLogFormatEscape":"default","enableAccessLog":false}` | Stream (L4 proxy) access log configuration | | apisix.nginx.logs.stream.accessLog | string | `"logs/access_stream.log"` | Stream access log path | | apisix.nginx.logs.stream.accessLogFormat | string | `"$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time"` | Stream access log format | | apisix.nginx.logs.stream.accessLogFormatEscape | string | `"default"` | Allows setting json or default characters escaping in variables for stream | | apisix.nginx.logs.stream.enableAccessLog | bool | `false` | Enable stream access log or not, default false | | apisix.nginx.luaSharedDicts | list | `[]` | Override default [lua_shared_dict](https://github.com/apache/apisix/blob/master/conf/config.yaml.example#L250-L276) settings, click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict | | apisix.nginx.maxPendingTimers | int | `16384` | Maximum number of pending timers. Increase it if you see "too many pending timers" error | | apisix.nginx.maxRunningTimers | int | `4096` | Maximum number of running timers. Increase it if you see "lua_max_running_timers are not enough" error | | apisix.nginx.metaLuaSharedDicts | list | `[]` | Override default meta-level [lua_shared_dict](https://github.com/apache/apisix/blob/master/conf/config.yaml.example) settings, meta-level shared dicts are shared across both HTTP and stream subsystems. Since APISIX 3.16.0, `upstream-healthcheck` is a meta-level shared dict. click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict | | apisix.nginx.workerConnections | string | `"10620"` | The maximum number of connections that each worker process can open | | apisix.nginx.workerProcesses | string | `"auto"` | The number of nginx worker processes. `auto` means the number of CPU cores | | apisix.nginx.workerRlimitNofile | string | `"20480"` | The number of files a worker process can open, should be larger than apisix.nginx.workerConnections | | apisix.nginx.workerShutdownTimeout | string | `"240s"` | Timeout for a graceful shutdown of worker processes | | apisix.normalizeURILikeServlet | bool | `false` | The URI normalization in servlet is a little different from the RFC's. See https://github.com/jakartaee/servlet/blob/master/spec/src/main/asciidoc/servlet-spec-body.adoc#352-uri-path-canonicalization, which is used under Tomcat. Turn this option on if you want to be compatible with servlet when matching URI path. | | apisix.pluginAttrs | object | `{}` | Set APISIX plugin attributes. By default, APISIX's [plugin_attr](https://github.com/apache/apisix/blob/master/apisix/cli/config.lua#L295) are automatically used. See [configuration example](https://github.com/apache/apisix/blob/master/conf/config.yaml.example#L591). | | apisix.plugins | list | `[]` | Customize the list of APISIX plugins to enable. By default, APISIX's [default plugins](https://github.com/apache/apisix/blob/master/apisix/cli/config.lua#L196) are automatically used. | | apisix.prometheus.containerPort | int | `9091` | container port where the metrics are exposed | | apisix.prometheus.enabled | bool | `false` | Enable Prometheus metrics. ref: https://apisix.apache.org/docs/apisix/plugins/prometheus/ | | apisix.prometheus.metricPrefix | string | `"apisix_"` | prefix of the metrics | | apisix.prometheus.path | string | `"/apisix/prometheus/metrics"` | path of the metrics endpoint | | apisix.proxyCache | object | `{"cacheTtl":"10s","zones":[{"cache_levels":"1:2","disk_path":"/tmp/disk_cache_one","disk_size":"1G","memory_size":"50m","name":"disk_cache_one"},{"memory_size":"50m","name":"memory_cache"}]}` | Proxy caching configuration used by the proxy-cache plugin. | | apisix.proxyCache.cacheTtl | string | `"10s"` | The default caching time in disk if the upstream does not specify the cache time | | apisix.proxyCache.zones | list | `[{"cache_levels":"1:2","disk_path":"/tmp/disk_cache_one","disk_size":"1G","memory_size":"50m","name":"disk_cache_one"},{"memory_size":"50m","name":"memory_cache"}]` | The parameters of a cache. The `memory_size` field stores the cache index for the disk strategy and the cache content for the memory strategy; `disk_size`, `disk_path` and `cache_levels` only apply to the disk strategy. | | apisix.proxyProtocol | object | `{"enableTcpPP":false,"enableTcpPPToUpstream":false,"listenHttpNodePort":null,"listenHttpPort":null,"listenHttpsNodePort":null,"listenHttpsPort":null}` | PROXY Protocol configuration. | | apisix.proxyProtocol.enableTcpPP | bool | `false` | Accept the PROXY Protocol on every service.stream.tcp port. | | apisix.proxyProtocol.enableTcpPPToUpstream | bool | `false` | Send the PROXY Protocol to the upstream server on every service.stream.tcp port. | | apisix.proxyProtocol.listenHttpNodePort | int | `nil` | The nodePort of the PROXY Protocol HTTP port, only used if service.type is NodePort. If not set, a random port will be assigned by Kubernetes. | | apisix.proxyProtocol.listenHttpPort | int | `nil` | The HTTP port that accepts the PROXY Protocol. It differs from `service.http` ports and `apisix.admin` port: this port only accepts HTTP requests carrying the PROXY Protocol, while the other ports only accept plain HTTP requests. If you enable the PROXY Protocol, you must use this port to receive HTTP requests with it. When set, the port is also exposed on the gateway Service. | | apisix.proxyProtocol.listenHttpsNodePort | int | `nil` | The nodePort of the PROXY Protocol HTTPS port, only used if service.type is NodePort. If not set, a random port will be assigned by Kubernetes. | | apisix.proxyProtocol.listenHttpsPort | int | `nil` | The HTTPS port that accepts the PROXY Protocol. When set, the port is also exposed on the gateway Service. | | apisix.router.http | string | `"radixtree_host_uri"` | Defines how apisix handles routing: - radixtree_uri: match route by uri(base on radixtree) - radixtree_host_uri: match route by host + uri(base on radixtree) - radixtree_uri_with_parameter: match route by uri with parameters | | apisix.setIDFromPodUID | bool | `false` | Use Pod metadata.uid as the APISIX id. | | apisix.showUpstreamStatusInResponseHeader | bool | `false` | When true, the upstream status is always written to the `X-APISIX-Upstream-Status` response header; when false, it is written only for 5xx responses | | apisix.ssl.additionalContainerPorts | list | `[]` | Support multiple https ports, See [Configuration](https://github.com/apache/apisix/blob/0bc65ea9acd726f79f80ae0abd8f50b7eb172e3d/conf/config-default.yaml#L99) | | apisix.ssl.certCAFilename | string | `""` | Filename be used in the apisix.ssl.existingCASecret | | apisix.ssl.containerPort | int | `9443` | Container port APISIX listens on for HTTPS traffic | | apisix.ssl.enableHTTP3 | bool | `false` | Enable HTTP/3 (QUIC) on the HTTPS listeners | | apisix.ssl.enabled | bool | `false` | Enable HTTPS listeners | | apisix.ssl.existingCASecret | string | `""` | Specifies the name of Secret contains trusted CA certificates in the PEM format used to verify the certificate when APISIX needs to do SSL/TLS handshaking with external services (e.g. etcd) | | apisix.ssl.fallbackSNI | string | `""` | Define SNI to fallback if none is presented by client | | apisix.ssl.hostPort | number | `nil` | Bind the APISIX HTTPS container port to a host port. | | apisix.ssl.sslCiphers | string | `"ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA"` | TLS ciphers allowed to use. | | apisix.ssl.sslProtocols | string | `"TLSv1.2 TLSv1.3"` | TLS protocols allowed to use. | | apisix.ssl.sslSessionTickets | bool | `false` | Enable or disable TLS session tickets. Disabled by default because session tickets defeat Perfect Forward Secrecy (see https://github.com/mozilla/server-side-tls/issues/135) | | apisix.status.ip | string | `"0.0.0.0"` | The IP address on which the status endpoint (`/status`, `/status/ready`) listens | | apisix.status.port | int | `7085` | The port on which the status endpoint listens | | apisix.stream_plugins | list | `[]` | Customize the list of APISIX stream_plugins to enable. By default, APISIX's [default stream_plugins](https://github.com/apache/apisix/blob/master/apisix/cli/config.lua#L294) are automatically used. | | apisix.tracing | bool | `false` | Enable comprehensive request lifecycle tracing (SSL/SNI, rewrite, access, header_filter, body_filter, and log). When disabled, OpenTelemetry collects only a single span per request. | | apisix.trustedAddresses | list | `["127.0.0.1"]` | When configured, APISIX will trust the `X-Forwarded-*` Headers passed in requests from the IP/CIDR in the list. | | apisix.vault.enabled | bool | `false` | Enable or disable the vault integration | | apisix.vault.host | string | `""` | The host address where the vault server is running. | | apisix.vault.prefix | string | `""` | Prefix allows you to better enforcement of policies. | | apisix.vault.timeout | int | `10` | HTTP timeout for each request. | | apisix.vault.token | string | `""` | The generated token from vault instance that can grant access to read data from the vault. | | apisix.wasm.enabled | bool | `false` | Enable Wasm Plugins. See [wasm plugin](https://apisix.apache.org/docs/apisix/next/wasm/) | | apisix.wasm.plugins | list | `[]` | List of Wasm plugins, each item with `name`, `priority` and `file` (path or URL of the wasm binary) | | autoscaling.enabled | bool | `false` | Enable HorizontalPodAutoscaler for APISIX (only when useDaemonSet is false) | | autoscaling.maxReplicas | int | `100` | Maximum number of APISIX replicas | | autoscaling.minReplicas | int | `1` | Minimum number of APISIX replicas | | autoscaling.targetCPUUtilizationPercentage | int | `80` | Target average CPU utilization percentage that triggers scaling | | autoscaling.targetMemoryUtilizationPercentage | int | `80` | Target average memory utilization percentage that triggers scaling | | autoscaling.version | string | `"v2"` | HPA version, the value is "v2" or "v2beta1", default "v2" | | control.enabled | bool | `true` | Enable Control API | | control.ingress | object | `{"annotations":{},"enabled":false,"hosts":[{"host":"apisix-control.local","paths":["/*"]}],"tls":[]}` | Using ingress access Apache APISIX Control service | | control.ingress.annotations | object | `{}` | Ingress annotations | | control.ingress.enabled | bool | `false` | Enable an Ingress resource in front of the Control API service | | control.ingress.hosts | list | `[{"host":"apisix-control.local","paths":["/*"]}]` | Ingress host and path rules | | control.ingress.tls | list | `[]` | Ingress TLS settings | | control.service.annotations | object | `{}` | Control annotations | | control.service.externalIPs | list | `[]` | IPs for which nodes in the cluster will also accept traffic for the servic | | control.service.ip | string | `"127.0.0.1"` | which ip to listen on for Apache APISIX Control API | | control.service.port | int | `9090` | which port to use for Apache APISIX Control API | | control.service.servicePort | int | `9090` | Service port to use for Apache APISIX Control API | | control.service.type | string | `"ClusterIP"` | Control service type | | etcd | object | `{"auth":{"rbac":{"create":false,"existingSecret":"","existingSecretPasswordKey":"","rootPassword":""},"tls":{"certFilename":"","certKeyFilename":"","enabled":false,"existingSecret":"","sni":"","verify":true}},"autoCompactionMode":"periodic","autoCompactionRetention":"1h","containerSecurityContext":{"enabled":false},"defrag":{"cronjob":{"podLabels":{"{{ include \"apisix.etcd.clientLabel\" . }}":"true"}}},"disasterRecovery":{"cronjob":{"podLabels":{"{{ include \"apisix.etcd.clientLabel\" . }}":"true"}}},"enabled":true,"image":{"registry":"docker.io","repository":"bitnamilegacy/etcd","tag":"latest"},"networkPolicy":{"allowExternal":false},"preUpgradeJob":{"podLabels":{"{{ include \"apisix.etcd.clientLabel\" . }}":"true"}},"prefix":"/apisix","replicaCount":3,"service":{"port":2379},"startupRetry":2,"timeout":30,"watchTimeout":50}` | etcd configuration use the FQDN address or the IP of the etcd | | etcd.auth | object | `{"rbac":{"create":false,"existingSecret":"","existingSecretPasswordKey":"","rootPassword":""},"tls":{"certFilename":"","certKeyFilename":"","enabled":false,"existingSecret":"","sni":"","verify":true}}` | if etcd.enabled is true, set more values of bitnamilegacy/etcd helm chart | | etcd.auth.rbac.create | bool | `false` | Require clients to authenticate to etcd. APISIX connects as root with the password from `rootPassword` or `existingSecret`; when both are empty, a password is generated into the Secret ``. For an existing release, read "Access to the bundled etcd" in the README first | | etcd.auth.rbac.existingSecret | string | `""` | Name of an existing Secret with the root password, used instead of rootPassword. Requires etcd.auth.rbac.create to be true | | etcd.auth.rbac.existingSecretPasswordKey | string | `""` | Key of existingSecret that holds the root password. The default is etcd-root-password | | etcd.auth.rbac.rootPassword | string | `""` | Root password for etcd. Requires etcd.auth.rbac.create to be true | | etcd.auth.tls.certFilename | string | `""` | Client certificate filename in existingSecret. Set together with certKeyFilename for mTLS; leave both empty for server-only TLS. | | etcd.auth.tls.certKeyFilename | string | `""` | Client private key filename in existingSecret. Required when certFilename is set. | | etcd.auth.tls.enabled | bool | `false` | Enable TLS settings for the APISIX etcd connection. For external etcd, also use https:// endpoints in externalEtcd.host. Client certificates are optional. | | etcd.auth.tls.existingSecret | string | `""` | Secret containing the optional etcd client certificate and key. Mounted when TLS is enabled and the name is non-empty, including with fullCustomConfig. Required when certFilename and certKeyFilename are set. | | etcd.auth.tls.sni | string | `""` | TLS server name used when etcd.auth.tls.enabled is true. Omitted when empty so the endpoint hostname is used. For IP endpoints, set a DNS name covered by every endpoint certificate, since IP SANs are not matched. | | etcd.auth.tls.verify | bool | `true` | Whether to verify the etcd endpoint certificate when etcd.auth.tls.enabled is true. | | etcd.autoCompactionMode | string | `"periodic"` | Auto compaction mode (periodic or revision), only used when etcd.enabled is true | | etcd.autoCompactionRetention | string | `"1h"` | Auto compaction retention for mvcc key value store, only used when etcd.enabled is true | | etcd.containerSecurityContext | object | `{"enabled":false}` | added for backward compatibility with old kubernetes versions, as seccompProfile is not supported in kubernetes < 1.19 | | etcd.defrag.cronjob.podLabels | object | `{"{{ include \"apisix.etcd.clientLabel\" . }}":"true"}` | Labels of the pods of the etcd chart's defragmentation job, used when etcd.defrag.enabled is true | | etcd.disasterRecovery.cronjob.podLabels | object | `{"{{ include \"apisix.etcd.clientLabel\" . }}":"true"}` | Labels of the pods of the etcd chart's snapshot job, used when etcd.disasterRecovery.enabled is true | | etcd.enabled | bool | `true` | install built-in etcd by default, set false if do not want to install built-in etcd together, this etcd is based on bitnamilegacy/etcd helm chart and latest bitnami docker image, only for development and testing purposes, if you want to use etcd in production, we recommend you to install etcd by yourself and use `externalEtcd` to connect it. | | etcd.image | object | `{"registry":"docker.io","repository":"bitnamilegacy/etcd","tag":"latest"}` | docker image for built-in etcd | | etcd.image.tag | string | `"latest"` | `bitnamilegacy/etcd` only provide `latest` tag now, ref: https://github.com/bitnami/containers/issues/83267, you can switch `etcd.image.repository` to `bitnamilegacy/etcd` to use old versioned tags. | | etcd.networkPolicy.allowExternal | bool | `false` | Accept etcd client connections from any pod. When false, only etcd's own pods and pods labelled `-client: "true"` can connect; the chart adds that label to the APISIX pods and to the jobs of the etcd chart below | | etcd.preUpgradeJob.podLabels | object | `{"{{ include \"apisix.etcd.clientLabel\" . }}":"true"}` | Labels of the pods of the etcd chart's pre-upgrade job | | etcd.prefix | string | `"/apisix"` | apisix configurations prefix | | etcd.replicaCount | int | `3` | Number of etcd replicas, only used when etcd.enabled is true | | etcd.service.port | int | `2379` | etcd client service port | | etcd.startupRetry | int | `2` | The number of retries to etcd during startup | | etcd.timeout | int | `30` | Set the timeout value in seconds for subsequent socket operations from apisix to etcd cluster | | etcd.watchTimeout | int | `50` | Set the timeout value in seconds for watching etcd | | externalEtcd | object | `{"existingSecret":"","host":["http://etcd.host:2379"],"password":"","secretPasswordKey":"etcd-root-password","user":"root"}` | external etcd configuration. If etcd.enabled is false, these configuration will be used. | | externalEtcd.existingSecret | string | `""` | if externalEtcd.existingSecret is the name of secret containing the external etcd password | | externalEtcd.host | list | `["http://etcd.host:2379"]` | if etcd.enabled is false, use external etcd, support multiple address, if your etcd cluster enables TLS, please use https scheme, e.g. https://127.0.0.1:2379. | | externalEtcd.password | string | `""` | if etcd.enabled is false and externalEtcd.existingSecret is empty, externalEtcd.password is the passsword for external etcd. | | externalEtcd.secretPasswordKey | string | `"etcd-root-password"` | externalEtcd.secretPasswordKey Key inside the secret containing the external etcd password | | externalEtcd.user | string | `"root"` | if etcd.enabled is false, user for external etcd. Set empty to disable authentication | | extraContainers | list | `[]` | Additional `containers`, See [Kubernetes containers](https://kubernetes.io/docs/concepts/containers/) for the detail. | | extraDeploy | list | `[]` | Additional Kubernetes resources to deploy with the release. | | extraEnvVars | list | `[]` | extraEnvVars An array to add extra env vars e.g: extraEnvVars: - name: FOO value: "bar" - name: FOO2 valueFrom: secretKeyRef: name: SECRET_NAME key: KEY | | extraInitContainers | list | `[]` | Additional `initContainers`, See [Kubernetes initContainers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) for the detail. | | extraVolumeMounts | list | `[]` | Additional `volumeMounts` for the APISIX container, See [Kubernetes Volumes](https://kubernetes.io/docs/concepts/storage/volumes/) for the detail. | | extraVolumes | list | `[]` | Additional `volume`, See [Kubernetes Volumes](https://kubernetes.io/docs/concepts/storage/volumes/) for the detail. | | fullnameOverride | string | `""` | String to fully override the chart fullname | | global.imagePullSecrets | list | `[]` | Global Docker registry secret names as an array | | hostNetwork | bool | `false` | Use the host's network namespace | | image.pullPolicy | string | `"IfNotPresent"` | Apache APISIX image pull policy | | image.repository | string | `"apache/apisix"` | Apache APISIX image repository | | image.tag | string | `"3.21.0-ubuntu"` | Apache APISIX image tag Overrides the image tag whose default is the chart appVersion. | | ingress | object | `{"annotations":{},"enabled":false,"hosts":[{"host":"apisix.local","paths":[]}],"servicePort":null,"tls":[]}` | Using ingress access Apache APISIX service | | ingress-controller | object | `{"enabled":false,"gatewayProxy":{"name":"{{ .Release.Name }}-config","provider":{"controlPlane":{"auth":{"adminKey":{"value":""}}}}},"webhook":{"enabled":false}}` | Ingress controller configuration | | ingress-controller.enabled | bool | `false` | Enable the apisix-ingress-controller sub-chart | | ingress-controller.gatewayProxy.name | string | `"{{ .Release.Name }}-config"` | Name of the GatewayProxy for the bundled controller. The apisix chart creates it, with this release's Admin API Service and admin key, and the controller's IngressClass references it. Set `ingress-controller.gatewayProxy.createDefault: true` only if you want the controller chart to create its own GatewayProxy instead; its admin key must then match `apisix.admin.credentials`. Set it to `""` to leave the IngressClass without a GatewayProxy. It is rendered once with `tpl` in the controller chart's context; both charts reuse that name. | | ingress-controller.gatewayProxy.provider.controlPlane.auth.adminKey.value | string | `""` | Admin key of the GatewayProxy that the controller chart creates when `createDefault` is true. There is no default; the GatewayProxy that the apisix chart creates gets this release's key automatically. | | ingress.annotations | object | `{}` | Ingress annotations | | ingress.enabled | bool | `false` | Enable an Ingress resource in front of the APISIX service | | ingress.hosts | list | `[{"host":"apisix.local","paths":[]}]` | Ingress host and path rules | | ingress.servicePort | number | `nil` | Service port to send traffic. Defaults to `service.http.servicePort`. | | ingress.tls | list | `[]` | Ingress TLS settings | | initContainer.image | string | `"busybox"` | Init container image | | initContainer.resources | object | `{}` | Resource requests and limits for the wait-etcd init container (only used when etcd.enabled is true) | | initContainer.securityContext | object | `{}` | Container security context for wait-etcd. Empty by default to inherit applicable podSecurityContext settings. | | initContainer.tag | float | `1.28` | Init container tag | | lifecycle | object | `{"preStop":{"exec":{"command":["/bin/sh","-c","sleep 30"]}}}` | Lifecycle hooks for the Apache APISIX container | | metrics | object | `{"serviceMonitor":{"annotations":{},"enabled":false,"interval":"15s","labels":{},"name":"","namespace":""}}` | Observability configuration. | | metrics.serviceMonitor.annotations | object | `{}` | @param serviceMonitor.annotations ServiceMonitor annotations | | metrics.serviceMonitor.enabled | bool | `false` | Enable or disable Apache APISIX serviceMonitor | | metrics.serviceMonitor.interval | string | `"15s"` | interval at which metrics should be scraped | | metrics.serviceMonitor.labels | object | `{}` | @param serviceMonitor.labels ServiceMonitor extra labels | | metrics.serviceMonitor.name | string | `""` | name of the serviceMonitor, by default, it is the same as the apisix fullname | | metrics.serviceMonitor.namespace | string | `""` | namespace where the serviceMonitor is deployed, by default, it is the same as the namespace of the apisix | | nameOverride | string | `""` | String to partially override the chart fullname | | nodeSelector | object | `{}` | Node labels for Apache APISIX pod assignment | | podAnnotations | object | `{}` | Annotations to add to each pod | | podDisruptionBudget | object | `{"enabled":false,"maxUnavailable":1,"minAvailable":"90%"}` | See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ for more details | | podDisruptionBudget.enabled | bool | `false` | Enable or disable podDisruptionBudget | | podDisruptionBudget.maxUnavailable | int | `1` | Set the maxUnavailable of podDisruptionBudget | | podDisruptionBudget.minAvailable | string | `"90%"` | 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](https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget) for more details | | podLabels | object | `{}` | Labels to add to each pod | | podSecurityContext | object | `{}` | Set the securityContext for Apache APISIX pods | | priorityClassName | string | `""` | Set [priorityClassName](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority) for Apache APISIX pods | | rbac.create | bool | `false` | Whether RBAC resources (ClusterRole and ClusterRoleBinding) should be created | | replicaCount | int | `1` | if useDaemonSet is true or autoscaling.enabled is true, replicaCount not become effective | | resources | object | `{}` | Set pod resource requests & limits | | securityContext | object | `{}` | Set the securityContext for Apache APISIX container | | service.externalIPs | list | `[]` | IPs for which nodes in the cluster will also accept traffic for the service | | service.externalTrafficPolicy | string | `"Cluster"` | Setting how the Service route external traffic. If you want to keep the client source IP, you can set this to Local, ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip | | service.http | object | `{"additionalContainerPorts":[],"containerPort":9080,"enabled":true,"hostPort":null,"servicePort":80}` | Apache APISIX service settings for http | | service.http.additionalContainerPorts | list | `[]` | Support multiple http ports, See [Configuration](https://github.com/apache/apisix/blob/0bc65ea9acd726f79f80ae0abd8f50b7eb172e3d/conf/config-default.yaml#L24) | | service.http.containerPort | int | `9080` | Container port APISIX listens on for HTTP traffic | | service.http.enabled | bool | `true` | Enable plain HTTP listeners | | service.http.hostPort | number | `nil` | Bind the APISIX HTTP container port to a host port. | | service.http.servicePort | int | `80` | Kubernetes service port for HTTP traffic | | service.labelsOverride | object | `{}` | Override default labels assigned to Apache APISIX gateway resources | | service.stream | object | `{"enabled":false,"tcp":[],"udp":[]}` | Apache APISIX service settings for stream. L4 proxy (TCP/UDP) | | service.stream.enabled | bool | `false` | Enable the stream (L4 proxy) subsystem | | service.stream.tcp | list | `[]` | TCP proxy port list, element format: port number, or a map with `addr` and optional `tls` / `tls_passthrough` | | service.stream.udp | list | `[]` | UDP proxy port list | | service.tls | object | `{"servicePort":443}` | Apache APISIX service settings for tls | | service.tls.servicePort | int | `443` | Kubernetes service port for HTTPS traffic | | service.type | string | `"NodePort"` | Apache APISIX service type for user access itself | | serviceAccount.annotations | object | `{}` | Annotations to add to the ServiceAccount | | serviceAccount.create | bool | `false` | Whether a ServiceAccount should be created for the APISIX pods | | serviceAccount.name | string | `""` | Name of the ServiceAccount to use. If not set and create is true, a name is generated from the chart fullname | | terminationGracePeriodSeconds | int | `30` | Number of seconds Kubernetes waits for Apache APISIX to terminate gracefully | | timezone | string | `""` | timezone is the timezone where apisix uses. For example: "UTC" or "Asia/Shanghai" This value will be set on apisix container's environment variable TZ. You may need to set the timezone to be consistent with your local time zone, otherwise the apisix's logs may used to retrieve event maybe in wrong timezone. | | tolerations | list | `[]` | List of node taints to tolerate | | topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods | | updateStrategy | object | `{}` | Update strategy of the workload (Deployment or DaemonSet), e.g. `type: RollingUpdate` | | useDaemonSet | bool | `false` | set false to use `Deployment`, set true to use `DaemonSet` |