Sometimes it is necessary to set specific sysctl settings to improve performance.
There is a mechanism available since kubernetes 1.21 where you can set sysctl values from the pod.securityContext.
This can be achieved by setting the pxc.containerSecurityContext
in the values-pxc-db.yaml
pxc:
containerSecurityContext:
sysctls:
- name: kernel.msgmax
value: "65536"
It is important that the value is a string
There are limitations to the sysctls that can be set. See Kubernetes-Docs