Can we modify kernal parameters underlying virtual machine for their managed Kubernetes service.

31
0
You can't modify kernel parameters of the underlying virtual machine for their managed Kubernetes service. To overcome this limitation, use a privileged Init Container to set the values in the container's net namespace or run a DaemonSet on every node with privileged containers to modify non-namespaced sysctls. For example, launch an Init Container using the following code:

      ```
      initContainers:
        - command:
          - /bin/sh
          - -c
          - |
            sysctl -w net.core.somaxconn=10000
        image: busybox
        imagePullPolicy: Mas
        name: init-sysctl
        resources: {}
        securityContext:
          privileged: true
      ```
      Note: Kubernetes doesn't allow updates in securityContext for non-namespaced sysctls.
    
Previous articleHow to earn from chat GPT
Next articleHow to find 0-1 BFS for Shortest Path in a Binary Weight Graph