-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[bitnami/elasticsearch] Enabling readOnlyFileSystem with a multi-node elasticsearch cluster fails on startup #30705
Comments
Hi, the issue may not be directly related to the Bitnami container image/Helm chart, but rather to how the application is being utilized, configured in your specific environment, or tied to a particular scenario that is not easy to reproduce on our side. If you think that's not the case and want to contribute a solution, we'd like to invite you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here. Your contribution will greatly benefit the community. Please feel free to contact us if you have any questions or need assistance. Suppose you have any questions about the application, customizing its content, or technology and infrastructure usage. In that case, we highly recommend that you refer to the forums and user guides provided by the project responsible for the application or technology. With that said, we'll keep this ticket open until the stale bot automatically closes it, in case someone from the community contributes valuable insights. |
Thanks @carrodher for the reply. I have a follow up question
I am not sure if I follow you completely.
|
Hi, I believe the issue has to do with the bitnami/elasticsearch image you are using. ReadOnlyRootFilesystem support was added in the |
@javsalgar - can you please share the link that states that ReadOnlyRootFilesystem support was added in elasticsearch version |
Hi, The support of readOnlyRootFilesystem was added not by the upstream project, but in how we changed our bitnami/elasticsearch container. And it was in that version where we added that support |
Ok so just to confirm my understanding - we need to use |
Yes |
I tried with chart version Could you guide me if something in the config (below) is incorrect? My elasticsearch helm config is as below metrics:
enabled: true
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: 1
memory: 512Mi
containerSecurityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
master:
masterOnly: false
replicaCount: 2
containerSecurityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
image:
repository: "bitnami/elasticsearch"
tag: "8.9.2"
extraVolumes:
- name: custom-log-config
configMap:
name: elasticsearch-log-config
extraVolumeMounts:
- name: custom-log-config
mountPath: /opt/bitnami/elasticsearch/config/log4j2.properties
subPath: log4j2.properties
resources:
requests:
cpu: 1.5
memory: 2Gi
limits:
cpu: 1.5
memory: 2Gi
volumeClaimTemplate:
accessModes: ["ReadWriteOnce"]
storageClassName: "local-path"
resources:
requests:
storage: "20Gi" |
Hi, the issue may not be directly related to the Bitnami container image/Helm chart, but rather to how the application is being utilized, configured in your specific environment, or tied to a particular scenario that is not easy to reproduce on our side. If you think that's not the case and want to contribute a solution, we'd like to invite you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here. Your contribution will greatly benefit the community. Please feel free to contact us if you have any questions or need assistance. Suppose you have any questions about the application, customizing its content, or technology and infrastructure usage. In that case, we highly recommend that you refer to the forums and user guides provided by the project responsible for the application or technology. With that said, we'll keep this ticket open until the stale bot automatically closes it, in case someone from the community contributes valuable insights. |
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. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
Name and Version
bitnami/elasticsearch: 19.13.15
What architecture are you using?
amd64
What steps will reproduce the bug?
We are deploying elasticsearch v8.9.2 through zeebe (open source workflow engine from camunda team). The helm chart used is version: 19.13.15 by camunda.
To tighten security our requirement is to run elasticsearch with minimal privileges and on read only file system. We configured it with the below helm config but the deployment fails with an startup error "Exception in thread "main" java.nio.file.FileSystemException: /opt/bitnami/elasticsearch/config/elasticsearch.keystore.tmp: Read-only file system". The complete stacktrace is shared below.
We looked into a few previously reported issues but could not find a solution. Kindly suggest a solution that works.
Are you using any custom parameters or values?
Below is the helm config to tighten security.
What is the expected behavior?
Elasticsearch should be deployed and executed without errors
What do you see instead?
Complete stacktrace
The text was updated successfully, but these errors were encountered: