Deploy to Kubernetes
Deploy Flipt to Kubernetes using our Helm chart
What You’ll Learn
In this guide, you will learn how to deploy Flipt to a local Kubernetes cluster (via Kind) using our official Helm chart. You’ll also learn how to override the default Flipt configuration by providing a values.yaml
file.
By the end of this guide, we will have:
- 🚢 Created a Kind cluster locally using Docker
- 📦 Installed Flipt into your cluster via Helm
- ⚙️ Configured Flipt log level and other settings via a
values.yaml
file
Prerequisites
- Docker installed (Download: https://www.docker.com/products/docker-desktop)
- Helm v3.x installed (Installation guide: https://helm.sh/docs/intro/install/)
- Kind installed (Installation guide: https://kind.sigs.k8s.io/docs/user/quick-start/)
Deploying Flipt
1. Create a Local Kubernetes Cluster Using Kind
First, we need to create a local Kubernetes cluster. We’ll use Kind to accomplish this.
Open a terminal and run the following command:
This command will create a new Kubernetes cluster named flipt
. Wait for the command to complete and ensure the cluster is correctly set up.
2. Add the Flipt Helm Repository
Next, we’ll add the Flipt Helm repository which hosts the Flipt Helm charts. Run the following command:
After running this command, Helm will fetch shared information about the new repository.
3. Update Helm Repositories
To ensure that Helm has the latest information about the charts from the Flipt Helm repository, update the repositories:
4. Install Flipt with Custom Configuration
Before installing Flipt, you should create a values.yaml
file to customize the deployment according to your preferences. For example, to set a specific configuration value, you could add the following to your values.yaml
file:
This example sets the Flipt server log level to ‘WARN’ and also enables our in-memory cache. You can adjust this file to include any configuration values you need.
Once you have your values.yaml
file, you can use it when installing Flipt with Helm by using the -f
or --values
flag:
This command installs the Flipt Helm chart into your Kubernetes cluster using the configuration options specified in your values.yaml
file merged with the default values from Flipt.
The values.yaml
file allows you to customize many aspects of the deployment,
including resource limits and requests, service types, replica counts, and
more. Be sure to consult the Flipt
documentation and the
default values.yaml
in the Flipt Helm chart for more information on what can
be configured.
5. Forward the Port to Access Flipt
After successfully installing Flipt via the Helm chart, you should see instructions on how to access Flipt in your terminal. The instructions will look something like this:
Execute the commands in your terminal to forward the port and access Flipt.
You should now be able to access Flipt at http://localhost:8080
.
6. Verify the Installation and Configuration
To ensure that Flipt has been correctly deployed to your Kubernetes cluster, you can check the running pods:
You should see the Flipt pod in the list with a status of Running
.
To verify that your configuration changes were applied, you can curl
Flipt’s /meta/config
endpoint:
In the output of this command, you should see the configuration values you set in your values.yaml
file.
Next Steps
Congratulations! You’ve successfully deployed Flipt to a local Kubernetes cluster using our Helm chart. You’ve also learned how to override the default Flipt configuration by providing a values.yaml
file.
You should be able to take the knowledge you’ve gained in this guide and deploy Flipt in to a real Kubernetes cluster.
Please refer to the Flipt Helm chart repository for more information on how to configure Flipt using the Helm chart.
Additionally, you should checkout our documentation on our native Kubernetes authentication method. This method can be leveraged to automatically authenticate clients, without the need to manually manage credentials, for applications deployed into the same Kubernetes cluster as Flipt.
Was this page helpful?