Skip to content
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

Cannot deploy multiple trino clusters in the same k8s namespace #159

Open
sudohainguyen opened this issue May 11, 2024 · 7 comments · May be fixed by #163 or #173
Open

Cannot deploy multiple trino clusters in the same k8s namespace #159

sudohainguyen opened this issue May 11, 2024 · 7 comments · May be fixed by #163 or #173

Comments

@sudohainguyen
Copy link

sudohainguyen commented May 11, 2024

Describe the bug

Not able to deploy multiple clusters using helm chart due to configmap conflicts (caused by this line for example)

chart version: 0.20.0

Suggestion

Templating configmap objects name using predefined template in _helpers.tpl
e.g.
instead of trino-resource-groups-volume-coordinator
use trino-resource-groups-volume-{{ template "trino.coordinator" . }}

@nineinchnick
Copy link
Member

Why do you need to install multiple clusters into a single namespace? Can you use separate namespaces?

@sudohainguyen
Copy link
Author

I want to setup multiple clusters to serve different workloads (interactive vs BI reports), think I should reuse existing datalake access permission setup in the namespace instead of duplicating to another one

@nineinchnick
Copy link
Member

I'd recommend using separate namespaces. Can you share some more details on how the access permissions for the Kubernetes namespace are configured? It's independent of any Trino configuration, right?

@mosabua
Copy link
Member

mosabua commented May 13, 2024

I think it actually would make more sense to have separate namespaces for the separate clusters.. that way you can control resources per cluster and usecase better .. since they are isolated in the namespaces.

@silent-lad
Copy link

I also landed on this problem. It works good with fullnameOverride for some resources but configmaps like trino-resource-groups-volume-coordinator have fixed names.
Our usecase is to deploy multiple trino clusters sitting behind a trino-gateway. The clusters are identical in work load and configuration.

@sudohainguyen
Copy link
Author

yeah I think the use case is not quite unusual though, think we should let chart users decide which strategy to employ

@mgorbatenko
Copy link

For what it is worth, I also have a use case where I would like to deploy multiple clusters in the same namespace. Similar to @silent-lad, we are deploying multiple clusters behind a gateway. The clusters can be different in configuration, but we have other ways of identifying resources assigned to a particular cluster. It's much easier for our use case to have everything in one namespace from a few different perspectives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants