From 28ae26d3a8d1b3ea79f8552ae420faf93366dda5 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 2 Apr 2024 20:01:45 -0400 Subject: [PATCH] fix: add sysctls for cloudflared Signed-off-by: Devin Buhl --- .../templates/ansible/playbooks/cluster-prepare.yaml.j2 | 2 ++ .../kubernetes/bootstrap/talos/talconfig.yaml.j2 | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 b/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 index ae06c797c67..126138c4f6a 100644 --- a/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 +++ b/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 @@ -105,6 +105,8 @@ fs.inotify.max_queued_events: 65536 fs.inotify.max_user_watches: 524288 fs.inotify.max_user_instances: 8192 + net.core.rmem_max: 2500000 + net.core.wmem_max: 2500000 handlers: - name: Reboot diff --git a/bootstrap/templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 b/bootstrap/templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 index 74e67014bf3..9cf85225789 100644 --- a/bootstrap/templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 +++ b/bootstrap/templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 @@ -143,9 +143,11 @@ patches: - |- machine: sysctls: - fs.inotify.max_queued_events: 65536 - fs.inotify.max_user_watches: 524288 - fs.inotify.max_user_instances: 8192 + fs.inotify.max_queued_events: "65536" + fs.inotify.max_user_watches: "524288" + fs.inotify.max_user_instances: "8192" + net.core.rmem_max: "2500000" + net.core.wmem_max: "2500000" # Mount openebs-hostpath in kubelet - |-