-
Notifications
You must be signed in to change notification settings - Fork 252
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
Failed to fetch eligible deployments for namespace whereas the namespace exists #42
Comments
Appears to be a permissions issue. What namespace is kube-monkey running under and what permissions does it have? |
The kube-monkey app is also running in the same namespace. We have our own namespace called cam-km. The config details in the configmap is as below:apiVersion: v1 The kube-monkey and other pods are in the same namespace. |
Hi Any update or suggestions? |
Any suggestion I have now moved it to the kube-system namespace also. How do we set the namespace permission |
Got it working by moving the kube-monkey pod from my namespace to kube-system namespace. So the kube-monkey pod and config map needs to be part of the kube-system namespace than being part of our namespace. |
Sorry for not responding sooner. The kube-monkey deployment and config map definitely need to be in the same namespace, but I'm not sure why it didn't work when it was in the same namespace as your app. I assumed the default user in the namespace has all access to objects within the namespace, but maybe that assumption was wrong. |
@sudarshntn @asobti I am getting the same error now. However my kube-monkey and config are running on kube-system namespace. I0719 15:14:37.034731 1 config.go:74] Successfully validated configs Any suggestions or help in . this regards. |
Am also getting the same error : found that creating a cluster role binding will help,but am unable to create at the clusterscope.It is forbidden. |
I0221 03:49:36.201590 7 kubemonkey.go:24] Status Update: Generating next schedule at 2018-02-22 00:00:00 +0530 IST
I0221 18:30:00.000194 7 schedule.go:54] Status Update: Generating schedule for terminations
W0221 18:30:00.015033 7 factory.go:44] Failed to fetch eligible deployments for namespace cam-km due to error: User "system:serviceaccount:cam-km:default" cannot list deployments.extensions in the namespace "cam-km". (get deployments.extensions)
I0221 18:30:00.015728 7 schedule.go:47] Status Update: 0 terminations scheduled today
I0221 18:30:00.015775 7 kubemonkey.go:63] Status Update: Waiting to run scheduled terminations.
I0221 18:30:00.015789 7 kubemonkey.go:77] Status Update: All terminations done.
I0221 18:30:00.015892 7 kubemonkey.go:24] Status Update: Generating next schedule at 2018-02-23 00:00:00 +0530 IST
********** Today's schedule **********
No terminations scheduled
********** End of schedule **********
The text was updated successfully, but these errors were encountered: