-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multitenancy setup using helm #230
Comments
I've one helm release as a bench. It creates a service to be exposed by ingress or load balancer
If wildcard cert and wildcard dns is configured, you just need to use kubernetes api to add / remove site. Check this https://discuss.frappe.io/t/manage-official-or-custom-frappe-benches-on-kubernetes/107793 |
Thank you for your answer, most probably I have the same setup that you have unless I don't use k8s_bench which might be a good option, currently I'm using the charts in this repo with few customizations. I have properly configured domain dns and cert to have the hosts for my sites.
The site host here is a subdomain of the default site host, for instance if the default site host is This resulted in having both the default and the new site domains point to the same site (default site created by the chart). I have even tried having one ingress that has multiple hosts ( Do you have any idea what could be the issue? Thanks in advance |
SOLVED Using the charts in this repo with a frappe_docker custom image, for having multitenants with a domain
|
I'm trying to have a multitenant setup using dns based multitenancy
Currently I'm creating tenants manually by creating a new site, manually migrating and adding a dns entry.
It mentions using the
bench setup nginx
command to generate the an nginx config file, the generated config file includes server_name which has all the site names/domains.To adapt with the frappe helm charts and frappe's docker image, as it's using nginx_entrypoint.sh to generate a config file based on nginx-template.conf, I've modified line 11 to be
server_name .${FRAPPE_SITE_NAME_HEADER};
to have a dot before the site name header variable since I'm using subdomains for tenants.The problem is that with or without this edit I always can access the first site created by the deployment and when I try to access any new site it returns an empty 200 response without any content, on a browser it downloads an empty file.
Am I missing something? Is there any guide for a multitenant setup using frappe helm?
The text was updated successfully, but these errors were encountered: