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

[Feature Request] Support for running inside a namespace #109

Open
schlichtanders opened this issue Oct 3, 2023 · 2 comments
Open

[Feature Request] Support for running inside a namespace #109

schlichtanders opened this issue Oct 3, 2023 · 2 comments

Comments

@schlichtanders
Copy link

Hello,

I would like to use K8sClusterManagers.jl inside a predefined namespace to prevent accidental (or voluntary) damage to other infrastructures inside kubernetes.

Currently this is not possible. It fails as soon as get_pod is run - it asks for the pod name globally, which is not allowed by its RBAC role.
https://github.com/beacon-biosignals/K8sClusterManagers.jl/blob/main/src/pod.jl#L29

Could this be added to the project or is it out of scope?

@omus
Copy link
Member

omus commented Jan 25, 2024

Could this be added to the project or is it out of scope?

This is most definitely in scope.

The get_pod function runs within the current namespace used by your kubectl context. Can you elaborate more on the problem you're seeing and the RBAC role you're using? We've documented the the K8s role permissions required in our documentation. Note we use a K8s Role and not a ClusterRole so it is scoped to the namespace to which the resource is deployed.

@schlichtanders
Copy link
Author

schlichtanders commented Jan 30, 2024

I understand I think. You mean I can just switch the namespace by using kubectl directly and switch the context's namespace (or switch to another context with another namespace)

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

No branches or pull requests

2 participants