Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Make it work without cluster scope #42

Closed
sderosiaux opened this issue Apr 27, 2020 · 3 comments
Closed

Make it work without cluster scope #42

sderosiaux opened this issue Apr 27, 2020 · 3 comments

Comments

@sderosiaux
Copy link

Hi,
I'm working on a project using a large shared kubernetes cluster in the company and we don't have the permissions to define ClusterRoles. Trying to start event-exporter obviously fails (just to monitor my namespace). Is it possible to make it work without ClusterRole ?

@mustafaakin
Copy link
Contributor

Hello, it is possible to watch only a namespace, but to make that change easily, the tool would be able to watch only a single namespace. I think it's a fair assumption to make in order to keep things simple.

@chaurasiya
Copy link

@mustafaakin
Hi,
I've similar requirement. What should I change to make it work without having permissions to define ClusterRoles? May be just a hint, where to start would be really helpful for workaround.
Thanks

@chaurasiya
Copy link

@mustafaakin
I see we can make it work by using this config build

return clientcmd.BuildConfigFromFlags("", filepath.Join(os.Getenv("HOME"), ".kube", "config"))

At this point by default the tool is using clusterConfig. I can modify it for my purpose to make it work.
Actually I'm facing an issue while building the docker image. Can you help me resolving the following issue?
image

@ffahri ffahri closed this as completed in 077bb66 Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants