-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 note to Kubernetes RBAC docs about RoleBindings and namespaces #2498
Conversation
Thanks a lot! Could you rebase your PR against the |
Hmm that doesn't look right, do you have a hint for me how to rebase correctly? |
I need to rebase your commit onto the I can also take care of it for you if you don't mind. Let me know. |
Sure, please go ahead. I'm glad I could help. |
a37d59a
to
25efe1f
Compare
@jmara alright, rebase complete. (By the way, I did it my doing a git rebase onto like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from a wording improvement, I'm totally fine with it. 👍
docs/user-guide/kubernetes.md
Outdated
@@ -21,6 +21,9 @@ If your cluster is configured with RBAC, you will need to authorize Træfik to u | |||
|
|||
RoleBindings per namespace enable to restrict granted permissions to the very namespaces only that Træfik is watching over, thereby following the least-privileges principle. This is the preferred approach if Træfik is not supposed to watch all namespaces, and the set of namespaces does not change dynamically. Otherwise, a single ClusterRoleBinding must be employed. | |||
|
|||
!!! note | |||
RoleBindings per namespace will be available in Træfik 1.5+ please use ClusterRoleBinding for any older version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rewrite this as following:
RoleBindings per namespace are available in Træfik 1.5 and later. Please use ClusterRoleBindings for older versions.
(Present tense; replace plus by verbatim text; second sentence; plural for ClusterRoleBinding too; older versions.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure sounds good. From a documentation perspective in the 1.5 branch present tens makes totally sense. The rest is fine with me. I'll try to make the changes :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
I've updated the documentation to give the user a hint that Rolebinding per namespace in only available in version 1.5+
Motivation
Spend an hour digging through Github Issues/PRs to find that the changes how Traefik uses the kubernetes api (namespaves) was not merged into the 1.4 branch. The current docs lead to the impression that this (RoleBinding instead of ClusterRoleBinding) should just work out of the box.
Please see #1626 and #1895