Open yaodwwy opened 1 month ago
You could you try by disabling containerSecurityContext
? (eg. --set master.containerSecurityContext.enabled=false
)
Some plugins does some changes in the ownership/permissions of the directories.
You could you try by disabling
containerSecurityContext
? (eg.--set master.containerSecurityContext.enabled=false
) Some plugins does some changes in the ownership/permissions of the directories.
No effect. Can Elasticsearch cluster Parameters initScripts use to install plugins ?
Hi @yaodwwy ,
The Elasticsearch container, for security reasons, is executed as a non-root container and, therefore, the user (UID 1001 by default) doesn't have permissions to install new plugins.
We recommend you to extend the Bitnami Elasticsearch container image adding your custom plugins as it's explained in the link below:
https://github.com/bitnami/containers/tree/main/bitnami/elasticsearch#adding-plugins-at-build-time-persisting-plugins ... Then, you can install the Bitnami Elasticsearch chart using your custom image.
I hope it helps
Hi @yaodwwy ,
The Elasticsearch container, for security reasons, is executed as a non-root container and, therefore, the user (UID 1001 by default) doesn't have permissions to install new plugins.
We recommend you to extend the Bitnami Elasticsearch container image adding your custom plugins as it's explained in the link below:
https://github.com/bitnami/containers/tree/main/bitnami/elasticsearch#adding-plugins-at-build-time-persisting-plugins ... Then, you can install the Bitnami Elasticsearch chart using your custom image.
I hope it helps
Hi, @dgomezleon
If I set below --set master.containerSecurityContext.enabled=false --set master.containerSecurityContext.runAsUser=0 When I install plugins with
elasticsearch-plugin install -b xxx
how to persistence plugins? It will disappear after restarting.
I think you will still find permission issues only with those parameters. Take a look at this previous issue in case it helps: https://github.com/bitnami/charts/issues/25280
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Name and Version
bitnami/elasticsearch --version 20.0.0
What architecture are you using?
amd64
What steps will reproduce the bug?
--set plugins: https://github.com/infinilabs/analysis-ik/releases/download/v8.12.2/elasticsearch-analysis-ik-8.12.2.zip
Are you using any custom parameters or values?
What is the expected behavior?
I wanna install Plugins when pods started.