OT-CONTAINER-KIT / helm-charts

A repository which that will contain helm charts with best and security practices.
https://ot-container-kit.github.io/helm-charts
49 stars 84 forks source link

Deploying redis-cluster raises permission denied issue of "/data/node.conf" file with default configurations #115

Closed sv6375261073 closed 1 year ago

sv6375261073 commented 1 year ago

redis-cluster version 0.15.0 configs: default error: permission denied /data/node.conf file.

sv6375261073 commented 1 year ago

This issue can be fixed by changing the user in security contexts in statefulset "redis-cluster" which is "{}" by default.

spec:
  securityContext:
    runAsUser: 1099
    runAsGroup: 1099
    fsGroup: 1099
sv6375261073 commented 1 year ago

Please do the changes in statefulset as it should not happen even in default config also.

Installing or upgrading redis-cluster takes default security context which is securityContext: {} and it's not managed by values file in redis-cluster.

Attaching the screen shot below when upgraded the redis-cluster.

image
sv6375261073 commented 1 year ago

@shubham-cmyk can you please provide update for it, ??

shubham-cmyk commented 1 year ago

@sv6375261073

Have you tried using latest helm chart version v0.15.3

sv6375261073 commented 1 year ago

Is that released? 0.15.0 was the default latest. And i am using the same. If 0.15.3 is released will upgrade and test it.

On Wed, 12 Jul 2023, 13:14 Shubham Gupta, @.***> wrote:

@sv6375261073 https://github.com/sv6375261073

Have you tried using latest helm chart version v0.15.3

— Reply to this email directly, view it on GitHub https://github.com/OT-CONTAINER-KIT/helm-charts/issues/115#issuecomment-1632012763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIUORANWXIIMIEHZEQUT4CLXPZIWVANCNFSM6AAAAAA2ABJO4Y . You are receiving this because you were mentioned.Message ID: @.***>

shubham-cmyk commented 1 year ago

Yes @sv6375261073 This might be due to the CRD are not updated. Helm has a issue it don't update the crd so you might have to apply that. If you use helm upgrade then this issue might arise if you uninstall the crd and install again then it would be fine

sv6375261073 commented 1 year ago

Yes, upgraded to 0.15.3 and resolved the issue.

Thanks for your help

On Thu, 13 Jul 2023, 01:17 Shubham Gupta, @.***> wrote:

Yes @sv6375261073 https://github.com/sv6375261073 This might be due to the CRD are not updated. Helm has a issue it don't update the crd so you might have to apply that. If you use helm upgrade then this issue might arise if you uninstall the crd and install again then it would be fine

— Reply to this email directly, view it on GitHub https://github.com/OT-CONTAINER-KIT/helm-charts/issues/115#issuecomment-1633114173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIUORAK22R6JMLY7BHTCWYDXP35MTANCNFSM6AAAAAA2ABJO4Y . You are receiving this because you were mentioned.Message ID: @.***>