You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build Kubernetes manifest to deploy server in a cluster #36
@JAORMX@ChrisJBurns, I was looking into this, but realized that if we set up RBAC for the Kubernetes manifest, the role won't have access to interact with custom resources unless rules for that are explicitly added in the RBAC config.
This works locally because the local Kubeconfig has a wider set of permissions.
Any thoughts on how to handle this?
As far as I can tell, thv uses the user's local kubeconfig by mounting it into the tool hive container
I'm looking at RBAC currently for ToolHive Operator, mainly to allow for multi-namespace. What will happen is that you will be able to deploy mkp into the cluster using the Operator and it will setup the permissions in order to run certain commands. There will be further work in order to specify additional RBAC permissions that you want your MCP ServiceAccount to be able to perform.
Activity
nimishamehta5 commentedon Jun 4, 2025
@JAORMX @ChrisJBurns, I was looking into this, but realized that if we set up RBAC for the Kubernetes manifest, the role won't have access to interact with custom resources unless rules for that are explicitly added in the RBAC config.
This works locally because the local Kubeconfig has a wider set of permissions.
Any thoughts on how to handle this?
As far as I can tell,
thvuses the user's local kubeconfig by mounting it into the tool hive containerChrisJBurns commentedon Jun 4, 2025
Hey @nimishamehta5
I'm looking at RBAC currently for ToolHive Operator, mainly to allow for multi-namespace. What will happen is that you will be able to deploy
mkpinto the cluster using the Operator and it will setup the permissions in order to run certain commands. There will be further work in order to specify additional RBAC permissions that you want your MCP ServiceAccount to be able to perform.nimishamehta5 commentedon Jun 5, 2025
@ChrisJBurns Sounds good, is the operator going to be in a separate project (not the mkp repo)?
ChrisJBurns commentedon Jun 5, 2025
@nimishamehta5
Yep, it is it's own thing https://github.com/stacklok/toolhive/tree/main/cmd/thv-operator and https://github.com/stacklok/toolhive/tree/main/deploy/charts. I've also raised stacklok/toolhive#654 for the use case of needing more custom RBAC rules for MCP servers.