Kubernetes
This guide explains how to deploy Kaneo on Kubernetes using our Helm chart. This setup is ideal for production environments where you need scalability and high availability.
Prerequisites
- A Kubernetes cluster (v1.19+)
- Helm 3 installed
kubectl
configured to communicate with your cluster- Basic knowledge of Kubernetes and Helm
Clone the Kaneo repository:
Install the Helm chart with default values:
Access Kaneo using port forwarding:
Production Deployment with Ingress
For production environments, you should expose Kaneo through an Ingress controller:
Create a values file named kaneo-values.yaml
:
Install the Helm chart with your custom values:
Configure your DNS settings to point your-domain.com
to your Ingress controller's external IP or load balancer.
You should now be able to access Kaneo at https://your-domain.com
and the API will be accessible at https://your-domain.com/api
. 🎉
Using Secrets for Sensitive Data
For better security, you can store sensitive data like JWT tokens in Kubernetes Secrets:
Create a Secret for the JWT access token:
Update your values file to use the Secret:
Upgrade your Helm release:
Using Gateway API
As an alternative to Ingress, you can use the Kubernetes Gateway API for more advanced routing capabilities:
Make sure the Gateway API is installed in your cluster.
Create a file named kaneo-gateway.yaml
:
Apply the Gateway configuration:
Uninstalling
To uninstall Kaneo from your Kubernetes cluster:
This will remove all the Kubernetes components associated with the chart and delete the release.
Next Steps
- Configure monitoring with Prometheus and Grafana
- Set up automated backups for your SQLite database
- Implement horizontal pod autoscaling for high availability