You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recommend running Flagsmith on Google Cloud Platform using the following services:
9
+
Flagsmith can be deployed on Google Cloud Platform using either of two approaches:
10
10
11
-
-[Cloud Run](https://cloud.google.com/run) for the application server
12
-
-[Cloud SQL/PostgreSQL](https://cloud.google.com/sql/postgresql) for the database
11
+
-**[Google Kubernetes Engine (GKE)](#gke-recommended-for-production)** with our Helm charts — recommended for
12
+
production and enterprise deployments.
13
+
-**[Cloud Run](#cloud-run-quick-start)** — a simpler option for evaluation or smaller workloads.
13
14
14
-
## Cloud Run
15
+
:::tip
15
16
16
-
Unless you have specific requirements, we recommend running the [unified Docker image](https://hub.docker.com/repository/docker/flagsmith/flagsmith).
17
+
For production and enterprise deployments, we recommend GKE with our
18
+
[Helm charts](https://github.com/Flagsmith/flagsmith-charts). This gives you full control over scaling, networking, and
19
+
operational tooling.
17
20
18
-
It's best to study our [docker-compose file](https://github.com/Flagsmith/flagsmith/blob/main/docker-compose.yml) in order to set up the base environment variables. Further environment variables are [described here](/deployment-self-hosting/core-configuration/environment-variables).
21
+
:::
19
22
20
-
Run a single Cloud Run service with at least two container instances running for failover. For more info on sizing, see our [scaling page](/deployment-self-hosting/scaling-and-performance/sizing-and-scaling). We recommend running with at least [2 minimum instances](https://cloud.google.com/run/docs/configuring/min-instances) to avoid cold starts, particularly in order to serve low-latency requests to the SDKs.
23
+
---
24
+
25
+
## GKE (Recommended for Production)
26
+
27
+
### Cluster Setup
28
+
29
+
We recommend [GKE Standard](https://cloud.google.com/kubernetes-engine/docs/concepts/choose-cluster-mode) or
30
+
[GKE Autopilot](https://cloud.google.com/kubernetes-engine/docs/concepts/autopilot-overview) depending on how much
31
+
control you need over node configuration. Either mode works well with Flagsmith.
32
+
33
+
For node pool sizing guidance, see our
34
+
[sizing and scaling page](/deployment-self-hosting/scaling-and-performance/sizing-and-scaling). As a starting point, our
35
+
recommended resource allocation per pod is 1 vCPU and 2 GB RAM.
36
+
37
+
### Deploying Flagsmith with Helm
38
+
39
+
We publish official Helm charts for deploying Flagsmith on Kubernetes. Add the repository and install:
Use `/health` as the health-check endpoint for both the API and the frontend.
145
+
146
+
For the database, use [Cloud SQL for PostgreSQL](https://cloud.google.com/sql/docs/postgres). We support PostgreSQL
147
+
versions 12 and above; our SaaS platform runs on version 15.
21
148
22
-
If you are using health checks, make sure to use `/health` as the health-check endpoint for both the API and the frontend.
149
+
:::tip
23
150
24
-
## Cloud SQL/PostgreSQL
151
+
When your deployment grows beyond evaluation, consider migrating to
152
+
[GKE with Helm charts](#gke-recommended-for-production) for better control over scaling, networking, and operations.
25
153
26
-
We support PostgreSQL versions `12+`. Our SaaS platform runs in production on PostgreSQL version `15`. When starting for the first time, the application will create that database schema automatically. Schema upgrades will also happen seamlessly during application server upgrades.
0 commit comments