Skip to main content

Helm Chart

The Appsmith Helm chart is the recommended way to deploy and manage Appsmith on Kubernetes. For an overview of Appsmith's components and how they fit together, see Deployment Architecture. For the full list of configurable values, see the chart README.

Planning your deployment​

Some choices are easy to change after installation—resource limits and environment variables are a helm upgrade away. Others require a migration to change because they affect where data is stored.

Review the decisions below before your first helm install.

DecisionDefaultMigration required to change?
Storage and workload typeStatefulSet with a single replicaYes—volume migration and workload recreation
MongoDBBitnami subchartYes—data export/import between MongoDB deployments
RedisBitnami subchartNo—Redis data is ephemeral
PostgreSQLBitnami subchartYes—Keycloak data migration needed

Storage and workload type​

In addition to its databases, Appsmith persists data to files on disk—logs and other runtime state. The workload type and storage configuration are tightly coupled, and together they determine how volumes are provisioned and whether you can run multiple replicas.

The chart supports two workload modes, each with different storage behavior:

StatefulSet (default)—runs a single replica with its own persistent volume. The pod is replaced in place during upgrades and configuration changes, preserving the same volume. This is the simplest option and works out of the box with most clusters' default block storage StorageClass (EBS gp3, GCE PD, Azure Disk), but is restricted to a single replica.

Deployment—use this when you need high availability with multiple replicas. Set workload.kind: Deployment or enable autoscaling.enabled. In this mode, all pods mount the same volume, so you need shared storage (ReadWriteMany) backed by AWS EFS, GCP Filestore, Azure Files, or NFS.

ConfigurationWorkloadStorageReplicasValues
Single replica (recommended starting point)StatefulSetBlock storage (ReadWriteOnce)—typically the cluster default1Defaults work out of the box
Multi-replica / HADeploymentShared filesystem (ReadWriteMany)—AWS EFS, GCP Filestore, Azure Files, NFS2+workload.kind: Deployment, persistence.storageClass: <shared-sc>
Existing claimDeploymentPre-provisioned PVC1+workload.kind: Deployment, persistence.existingClaim.enabled: true, persistence.existingClaim.claimName: <name>

A StorageClass with allowVolumeExpansion: true is recommended to allow resizing volumes without reprovisioning.

Changing the storage backend or switching between StatefulSet and Deployment on an existing release requires a migration—recreating volumes and the workload resource. See Migrate to High Availability for the procedure. Plan this before your first install.

MongoDB​

MongoDB is Appsmith's primary data store. The chart supports three approaches, and new installations should use the MongoDB Kubernetes Operator:

OptionStatusWhen to use
MongoDB Kubernetes Operator (recommended)Available since chart 3.7.0New installations. Uses the official MongoDB Kubernetes Operator for operator-managed lifecycle, credential management, and version upgrades.
Bitnami subchart (default)Being phased outExisting installations that haven't migrated yet. The upstream Bitnami MongoDB images have been deprecated by their publisher.
External MongoDBStableManaged services (Atlas) or self-managed MongoDB outside the cluster.

For a complete walkthrough of the MongoDB Operator, see the MongoDB Kubernetes Operator guide. If you have an existing install using the Bitnami subchart, see Migrate from Bitnami to MongoDB Operator for the migration procedure. To configure an external MongoDB instance, see Custom MongoDB.

Redis​

Redis is used for session storage and caching. The chart bundles Redis by default (redis.enabled: true) and runs it in the cluster alongside Appsmith. You can also bring your own Redis—for example, a cloud-managed service like AWS ElastiCache—by disabling the bundled instance and setting APPSMITH_REDIS_URL in applicationConfig.

Since chart 3.9.0, the bundled Redis is password-protected by default. The chart generates the password and stores it in a Kubernetes Secret automatically. See Enable Redis Authentication for how it works and how to enable it on existing deployments.

Redis data is ephemeral, so switching between bundled and external doesn't require a data migration. See External Redis for configuration details.

PostgreSQL​

PostgreSQL is used by Keycloak for identity management. The chart bundles PostgreSQL by default (postgresql.enabled: true) and runs it in the cluster alongside Appsmith. You can also bring your own PostgreSQL—for example, Amazon RDS or Azure Database for PostgreSQL—by disabling the bundled instance and configuring the Keycloak database connection via applicationConfig.

Switching to an external PostgreSQL on an existing install requires migrating Keycloak's data. See External PostgreSQL for configuration details.

Health probes​

The chart configures a startup, liveness, and readiness probe on the Appsmith container. All three send an HTTP request to the health endpoint, /api/v1/health. The liveness and readiness probes start only after the startup probe succeeds.

Saving some admin settings restarts the Appsmith server inside the container, and the restart takes about 45 seconds. The probe defaults in chart 3.9.2 and later are sized so that Kubernetes doesn't kill the container during these restarts.

ProbeperiodSecondstimeoutSecondsfailureThresholdEffect
startupProbe10560Allows 600 seconds for the server to boot.
livenessProbe10518Restarts the container after 180 seconds of continuous failure.
readinessProbe1053Stops sending traffic to the pod after 30 seconds of failure.

Each probe accepts the following keys under probes.startupProbe, probes.livenessProbe, and probes.readinessProbe:

  • port: the container port to probe. Defaults to 80.
  • api: the HTTP path to request. Defaults to /api/v1/health.
  • periodSeconds: how often to run the probe.
  • timeoutSeconds: how long to wait for a response before the attempt counts as a failure.
  • failureThreshold: how many failures in a row trigger the probe's effect.

To change a probe, set only the keys you need in your values.yaml. Keys you don't set keep their defaults. For example, to give the liveness probe a longer timeout:

probes:
livenessProbe:
timeoutSeconds: 15

Upgrading from an older chart​

Charts before 3.9.2 ran each probe every 60 seconds with a 1-second timeout and a failureThreshold of 3. When you upgrade:

  • Keys you set under probes still take effect, and keys you didn't set take the new defaults.
  • If you set failureThreshold with a 60-second interval in mind, the probe now runs every 10 seconds and reaches your threshold six times faster. Multiply failureThreshold by 6 to keep the same window, for example 3 becomes 18. You can also set periodSeconds: 60 for that probe to keep the old timing, but a 60-second period makes pod restarts after saving admin settings more likely.
  • periodSeconds, timeoutSeconds, and failureThreshold must be positive integers. Other values, such as 0, make helm install and helm upgrade fail with a schema validation error. Quoted numbers such as "60" are accepted.

Custom HTTP port​

The probe port defaults to 80 and doesn't follow HTTPContainerPort. If you set HTTPContainerPort, also set port for every probe to the same value. Otherwise the probes call a port the server doesn't listen on, the startup probe never succeeds, and Kubernetes keeps restarting the container:

HTTPContainerPort: 8080
probes:
startupProbe:
port: 8080
livenessProbe:
port: 8080
readinessProbe:
port: 8080

High availability FAQ​

These requirements apply to Kubernetes deployments both on-premises and in the cloud. For an AWS walkthrough, see High Availability on AWS EKS.

Does HA require external MongoDB?​

Multiple Appsmith replicas must connect to the same MongoDB deployment. The MongoDB embedded inside the Appsmith container is intended for a single-instance setup and cannot be used as an independent database in each HA replica.

MongoDB must run separately from the Appsmith application containers, but it does not have to run outside Kubernetes. You can use the MongoDB Kubernetes Operator to run it in the cluster, or configure external MongoDB. External MongoDB is recommended for production but is not mandatory. The operator defaults are for evaluation; follow the production sizing guidance to configure a three-member replica set and appropriate resources.

Appsmith replicas must also share the same Redis service. Running databases in separate pods makes them accessible to the replicas; it does not by itself make those databases highly available.

Will a two-node cluster keep serving if either node fails?​

Two Kubernetes nodes alone do not guarantee end-to-end availability. Plan for:

  • At least two Appsmith replicas, with pod anti-affinity or topology spread constraints to place them on different nodes.
  • Enough capacity on the surviving nodes for the required workloads.
  • Shared storage, ingress, load balancing, and required database services that remain available after the intended failure.
  • A resilient Kubernetes control plane and etcd topology. See the Kubernetes HA topology guide.

MongoDB needs a majority of its voting members to elect a primary. Placing three voting members across only two nodes does not protect against all single-node failures: losing the node hosting two members leaves only one, without a majority. Distribute the members across suitable failure domains, or use a separately operated HA database service. See MongoDB replica-set troubleshooting.

Test node failure and recovery against your availability requirements before production use. Increasing the Appsmith replica count does not remove a single point of failure in a database or storage service.

What replaces EFS for on-premises HA storage?​

Use a shared filesystem that supports ReadWriteMany (RWX), such as NFS provisioned through a suitable CSI driver. All Appsmith replicas must mount the same Appsmith persistent volume. Configure the storage service to tolerate the failures your deployment must survive; an NFS server running only on a failed node would still interrupt service.

The shared volume is for Appsmith files. Keep MongoDB's database volumes separate and use storage appropriate for MongoDB; do not share an embedded MongoDB data directory between Appsmith replicas through NFS.

See Storage and workload type and the HA migration guide, which links to the on-premises NFS CSI driver. Size compute and storage using Infrastructure and capacity planning, including the resources consumed by database and cluster services.

Do air-gapped deployments have different HA requirements?​

Airgap changes the Appsmith image, licensing, and how installation artifacts reach the cluster. It does not remove the shared database, storage, and replica-placement requirements above. See Kubernetes airgap preparation before installing.

Community edition​

The community and enterprise editions use the same Helm chart. To install the community edition, set the image repository in your values.yaml:

image:
repository: appsmith/appsmith-ce

The enterprise image (appsmith/appsmith-ee) is used by default. You can run the enterprise image on a free plan without a license key—the community image is only needed if you prefer to run the open source edition.

Uninstall​

If you installed with the MongoDB Kubernetes Operator (as recommended in the install guide), the operator's custom resource has a finalizer that must be cleared before uninstalling. See the MongoDB Operator uninstall procedure for the full steps.

If you're using the Bitnami subchart or an external MongoDB, a standard uninstall is sufficient:

helm uninstall appsmith-ee -n appsmith-ee
kubectl delete namespace appsmith-ee

See also​