I am fairly new to kubernetes and want to build a statefulset for elasticsearch.
I found this one here during my search in web:
My question is about the init container given there:
spec: initContainers: - name: init-sysctl image: busybox:1.27.2 command: - sysctl - -w - vm.max_map_count=262144 securityContext: privileged: true - name: es-master image: quay.io/pires/docker-elasticsearch-kubernetes:6.3.0 env: - name: NAMESPACE ...
Is my understanding correct, that the init container applies the change to the host and that it is immediately valid for all pods running on that given host?
If so I should remember to use this with care because different init containers could set different values for same parameter.