-
Notifications
You must be signed in to change notification settings - Fork 734
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
sysctl initContainer requires runAsUser: 0 starting Elasticsearch 8.0.0 #5410
Comments
We should upgrade the documentation and make sure the init container example for setting this value still works with 8.0. |
We don't need to rely on the initContainers:
- command:
- sh
- -c
- sysctl -w vm.max_map_count=262144
name: sysctl
securityContext:
privileged: true
runAsUser: 0 I'll create a PR to update the example in the doc. |
hi , containers are not allowed to run as root in many of the managed kubernetes service. so intit container fails works fine with aks version below 1.22 |
Please update the docs, people like me lost their time on debugging that. |
privileged: true is not supported with k8s v1.25 PSA baseline/restricted Pod Security Standards. Also privileged containers are dangerous. |
As mentioned here: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-virtual-memory.html, an alternative if you can't run privileged containers and therefore can't increase the kernel setting
|
If using example from the documentation, upgrade from 7.17 to 8.0 fails with
example
solution
The text was updated successfully, but these errors were encountered: