Repository navigation
[stable/redis] add RBAC - #5971
Conversation
|
@barryib AFAIK Redis does not use the k8s API so I can't see why this change is necessary, anything I'm missing? |
|
@prydonius In our k8s clusters, every pod should run with a service account and should validate against pod security policy. I got error like this: So with this PR, redis chart will create a service account and bind it to the role with the given rules: redis:
serviceAccount:
create: true
rbac:
create: true
role:
rules:
- apiGroups:
- extensions
resources:
- podsecuritypolicies
verbs:
- use
resourceNames:
- bme.unprivileged |
prydonius
left a comment
There was a problem hiding this comment.
interesting, thanks for the information @barryib. @unguiculus what do you think about this? It sounds like we may need to add this to all charts if we add it here.
unguiculus
left a comment
There was a problem hiding this comment.
A couple of comments. Otherwise LGTM.
There was a problem hiding this comment.
No need to wrap into an if block.
There was a problem hiding this comment.
@unguiculus Forget about precedent comment. Fixed in cb66927
There was a problem hiding this comment.
No need to wrap into an if block.
There was a problem hiding this comment.
@unguiculus removing the if block will unconditionally ’serviceAcvount’ even if the serviceAccountName is empty. Furthermore, it'll pod will try to run with a possibly inexistent service account.
There was a problem hiding this comment.
@unguiculus Forget about precedent comment. Fixed in cb66927
juan131
left a comment
There was a problem hiding this comment.
Just a couple of comments about the wording, but it's ok to me
There was a problem hiding this comment.
I would use enabled as we do for other components such as livenessProbes, readinessProbes, etc.
There was a problem hiding this comment.
Forget about this comment. As it's documented at https://github.com/kubernetes/helm/blob/master/docs/chart_best_practices/conventions.md, create is fine.
There was a problem hiding this comment.
I would use enabled as we do for other components such as livenessProbes, readinessProbes, etc.
There was a problem hiding this comment.
Forget about this comment. As it's documented at https://github.com/kubernetes/helm/blob/master/docs/chart_best_practices/conventions.md, create is fine.
|
/ok-to-test /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: barryib, prydonius The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* art-ha-static-volumes: (60 commits) added support for static pv [stable/artifactory] adding support for edge node and replicator (helm#5649) [stable/grafana] Set the user and fs group for grafana (helm#5854) [stable/stolon] Fix issue with secret deletion during helm upgrade (helm#5903) cert-manager: fast-forward to upstream 36289cf0 (helm#5919) Split Jenkins readiness and liveness probe periods (helm#5704) Kafka release name check (helm#5770) Adding JFrog Distribution (helm#5631) Correct default zookeeper host to be compatible with zk charts (helm#5824) [stable/redis] add RBAC (helm#5971) [stable/wordpress] Set dependencies to latest version (helm#6074) [stable/rabbitmq] Release 1.1.6 (helm#6095) [stable/mariadb] Fix configurable parameters (helm#6092) [stable/keycloak] Add option to configure sidecars and misc improvements (helm#6090) [stable/kubewatch] - Use maintained bitnami image for kubewatch (helm#5871) [stable/ghost] Release 4.0.1 (helm#6085) update PROCESSES.md to clarify promotion process (helm#6084) [incubator/drone] Move drone from incubator to stable (helm#5780) fix for helm#6039 (helm#6042) [stable/sonatype-nexus] Update image to 3.12.1 (helm#6076) ...
* [stable/redis] add RBAC * [stable/redis] bump chart version * [stable/redis] use "default" SA if SA is not defined Signed-off-by: voron <[email protected]>
What this PR does / why we need it:
Add RBAC (serviceAccount, Role, Rolebinding) option to the sbale/redis chart.
/cc @prydonius @tompizmor @sameersbn @carrodher @juan131