packages/twenty-docker/k8s/README.md
DISCLAIMER: The k8s and podman deployments are not maintained by the core team. These files are provided and maintained by the community. Twenty core team maintains support for docker deployment.
This repository contains a world-class Helm chart and (legacy) raw Kubernetes manifests plus Terraform files to help you deploy and manage the Twenty CRM application. The chart is located at packages/twenty-docker/helm/twenty and supersedes the manifests in packages/twenty-docker/k8s/manifests.
Before using these files, ensure you have the following installed and configured on your system:
Quick install:
export DOMAIN=your-domain.com
helm install my-twenty packages/twenty-docker/helm/twenty \
--namespace twentycrm --create-namespace --wait \
--set server.ingress.hosts[0].host=$DOMAIN \
--set server.ingress.hosts[0].paths[0].path=/ \
--set server.ingress.hosts[0].paths[0].pathType=Prefix \
--set server.ingress.tls[0].hosts[0]=$DOMAIN
See QUICKSTART and chart README for details.
Clone the repository to your local machine:
git clone https://github.com/twentyhq/twenty.git
cd twenty/packages/twenty-docker/k8s
Important: These files require customization for your specific implementation. Update the placeholders and configurations according to your environment and requirements.
Navigate to the Terraform directory:
cd terraform
Initialize Terraform:
terraform init
Plan the deployment:
terraform plan
Apply the deployment:
terraform apply
Navigate to the Kubernetes manifests directory:
cd ../k8s
Create Server Secret
kubectl create secret generic -n twentycrm tokens --from-literal accessToken=changeme --from-literal loginToken="changeme" --from-literal refreshToken="changeme" --from-literal fileToken="changeme"
Apply the manifests:
kubectl apply -f .
namespace in the manifests as needed.Secret command above.variables.tf file to match your environment.main.tf file to match your environment.kubectl logs to check the logs of your Kubernetes pods.terraform show and terraform state to inspect your Terraform state and configurations.This setup provides a basic structure for deploying the TwentyCRM application using Kubernetes and Terraform. Ensure you thoroughly customize the manifests and Terraform files to suit your specific needs. For any issues or questions, please refer to the official documentation of Kubernetes and Terraform or seek support from your cloud provider.
Feel free to contribute and improve this repository by submitting pull requests or opening issues. Happy deploying!