https://github.com/flagsmith/self-hosted
Create an entire Flagsmith environment locally
https://github.com/flagsmith/self-hosted
docker docker-compose feature-flags feature-toggles
Last synced: 9 months ago
JSON representation
Create an entire Flagsmith environment locally
- Host: GitHub
- URL: https://github.com/flagsmith/self-hosted
- Owner: Flagsmith
- Created: 2020-05-22T11:54:09.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-21T18:10:09.000Z (12 months ago)
- Last Synced: 2025-04-21T19:25:50.070Z (12 months ago)
- Topics: docker, docker-compose, feature-flags, feature-toggles
- Homepage: https://www.flagsmith.com/
- Size: 1.09 MB
- Stars: 117
- Watchers: 9
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Self-hosted Flagsmith example
This example deploys Flagsmith Enterprise to a Kubernetes cluster using a Helmfile. It also deploys
[kube-prometheus-stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack) with
Grafana for monitoring.
The Flagsmith API and task processor pods emit Prometheus metrics, which are scraped by a [`ServiceMonitor`](https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.ServiceMonitor)
from the Prometheus operator.
> [!WARNING]
> This example and all its resources (e.g. dashboards) are provided as reference examples with no security, stability or
> backwards compatibility guarantees.
## Usage
First, create a namespace for Flagsmith resources:
```
kubectl create namespace flagsmith
```
Create a Secret in the same namespace for your private container image pulling credentials:
```
kubectl create secret docker-registry flagsmithofficial-example-pull-secret \
--namespace=flagsmith \
--docker-server=quay.io \
--docker-username='flagsmithofficial+example' \
--docker-password=''
```
Reference this Secret in your Helm values:
```yaml
global:
image:
imagePullSecrets:
- name: flagsmithofficial-example-pull-secret
```
Deploy the stack:
```
helmfile sync
```
Grafana dashboards are available at http://prometheus-grafana.monitoring.svc.cluster.local/.
## Dashboard example
