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

Add deployment doc for single namespace configuration #256

Open
antonmatsiuk opened this issue Nov 15, 2018 · 4 comments
Open

Add deployment doc for single namespace configuration #256

antonmatsiuk opened this issue Nov 15, 2018 · 4 comments

Comments

@antonmatsiuk
Copy link

After restarting kubernetes nodes HaProxy ingress was not able to access Ingress backends (503 HTTP Error). haproxy-ingress logs gave following errors (HaProxy is deployed in "monitoring" namespace):

W1115 03:44:53.384367       8 queue.go:113] requeuing sync status, err pods is forbidden: User "system:serviceaccount:monitoring:ingress-controller" cannot list pods in the namespace "monitoring"

Fixed by allowing "list" verb for "Pods" resource in "ingress-controller" Role in corresponding namespace.

Runtime:
PhotonOS 4.9.130-2.ph2-esx
kubernetes v1.11.1
Docker version 17.06.0-ce

@jcmoraisjr
Copy link
Owner

Hi, it sounds you didn't create the cluster role binding which give all the permissions needed to the controller do its job. Actually there isn't a doc that say how to configure rbac to work on a single namespace - I'll label this issue and leave it open so this won't be forgotten.

@antonmatsiuk
Copy link
Author

@jcmoraisjr Thank you, the problem was that ClusterRoleBinding was corrupted by an ingress in another namespace. Documentation on a multi-namespace ingress instantiation would be highly appreciated.

@swapnilgawade16
Copy link

swapnilgawade16 commented Mar 11, 2019

Hi, it sounds you didn't create the cluster role binding which give all the permissions needed to the controller do its job. Actually there isn't a doc that say how to configure rbac to work on a single namespace - I'll label this issue and leave it open so this won't be forgotten.

I am trying to configure rbac to work in single namespace without using ClusterRole or ClusterRoleBinding. I am facing issue where haproxy ingress keeps throwing errors "cannot list [RESOURCES] at the cluster scope". I have added --watch-namespace still why is ingress trying to get cluster resources. Can you please provide a document that shows how to configure rbac with single namespace without using ClusterRole ? It would be really helpful. Thanks

@jcmoraisjr jcmoraisjr changed the title ingress-controller service account "cannot list pods in the namespace" error Add deployment doc for single namespace configuration Oct 18, 2020
@jcmoraisjr
Copy link
Owner

@swapnil1988 the "list resource at cluster scope issue" should be fixed since #578 and should be working fine on v0.10. If you have any problem please file a new issue with controller version, configurations and behavior.

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

No branches or pull requests

3 participants