You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the move toward RBAC being on by default in more and more cluster installers, the convention seems to have appeared to control RBAC-related templates as follows:
This is not yet documented in Chart best practices, and it should be. I'm happy to do the doc PR, but wanted to file an issue first to probe for consensus on whether the default value of rbac.create shoulfd be true or false. Most charts using this convention seem to be defaulting to false, but my own opinion is that it should be true, based both on the direction Kubernetes installers are moving (kubeadm apparently turns on RBAC by default since 1.6, and others have done so since even earlier versions) and my own sense that the defaults should be secure unless there's a very good reason not to be.
I agree on this. I am currently doing my first round on K8S 1.8.3 and I'm confused as well. I also think it should be true as using kubeadm init we get RBAC by default.
Isn't this the case? Please correct me if I am wrong.
Haven't seen anybody object to this so I'm thinking of writing it up later tonight. Should it be its own section of the Best Practices guide, part of the Templates section, part of the Pods and Pod Specs section, or somewhere else entirely?
Activity
[-]Document RBAC conventions[/-][+]Document RBAC conventions for charts[/+]bacongobbler commentedon Nov 3, 2017
I just updated the title to reflect that this is for charts and not for tiller as seen in #3094.
julianxhokaxhiu commentedon Nov 6, 2017
I agree on this. I am currently doing my first round on K8S 1.8.3 and I'm confused as well. I also think it should be
trueas usingkubeadm initwe get RBAC by default.Isn't this the case? Please correct me if I am wrong.
unguiculus commentedon Nov 7, 2017
/cc @mgoodness
mgoodness commentedon Nov 8, 2017
Sound reasoning. Let's make
rbac.create=trueby default. Existing charts can/should be updated & their versions bumped to reflect the breaking change.mattfarina commentedon Nov 9, 2017
cc: @kubernetes/charts-maintainers
omkensey commentedon Nov 19, 2017
Haven't seen anybody object to this so I'm thinking of writing it up later tonight. Should it be its own section of the Best Practices guide, part of the Templates section, part of the Pods and Pod Specs section, or somewhere else entirely?
prydonius commentedon Nov 20, 2017
@omkensey that would be great. I think this should probably be it's own section.
RBAC best practices
RBAC best practices (#3184)