In Linux, the sysctl
interface allows an administrator to modify kernel parameters at runtime. Parameters are available via the /proc/sys/
virtual process file system. These parameters cover various subsystems, such as:
On DigitalOcean, you cannot access the nodes to make configuration changes to the underlying virtual machine. This allows us to maintain supportability and stability for our managed Kubernetes service.
However, you can work around this limitation in the following two ways:
sysctl
s.sysctl
s.For example, you could launch the following Init Container:
initContainers:
- command:
- /bin/sh
- -c
- |
sysctl -w net.core.somaxconn=10000
image: busybox
imagePullPolicy: Always
name: init-sysctl
resources: {}
securityContext:
privileged: true
Kubernetes does not allow any updates in securityContext
unless it is a namespaced sysctl
.