This example deploys Flagsmith Enterprise to a Kubernetes cluster using a Helmfile. It also deploys kube-prometheus-stack with Grafana for monitoring.
The Flagsmith API and task processor pods emit Prometheus metrics, which are scraped by a 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.
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:
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/.