You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/public_cloud/containers_orchestration/managed_kubernetes/configuring-sysctl-parameters-on-nodes/guide.en-gb.md
+26-27Lines changed: 26 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,7 @@ updated: 2025-01-13
9
9
The OVHcloud Managed Kubernetes service gives you access to Kubernetes clusters, without the hassle of installing or operating them.
10
10
But for some specific usecases, you may have to customize nodes parameters.
11
11
12
-
This guide will cover the modification of the Sysctl parameters which takes in charge the Inotify part and allows you to open more files simultaneously.
13
-
12
+
This guide will cover the customization of the sysctl parameters which define user limits on the number of inotify resources and inotify file watches.
14
13
## Requirements
15
14
16
15
- A [Public Cloud project](/links/public-cloud/public-cloud) in your OVHcloud account
@@ -30,29 +29,29 @@ Create a YAML named `sysctl-tuner-daemonset.yaml` with the content below:
30
29
apiVersion: apps/v1
31
30
kind: DaemonSet
32
31
metadata:
33
-
name: sysctl-tuner
32
+
name: sysctl-tuner
34
33
spec:
35
-
selector:
36
-
matchLabels:
37
-
name: sysctl-tuner
38
-
template:
39
-
metadata:
40
-
labels:
41
-
name: sysctl-tuner
42
-
spec:
43
-
containers:
44
-
- name: sysctl
45
-
image: busybox
46
-
securityContext:
47
-
privileged: true
48
-
command:
49
-
- sh
50
-
- -c
51
-
- "sysctl -w fs.inotify.max_user_watches=<value>"# Define the value you need
52
-
hostNetwork: true
53
-
hostPID: true
54
-
tolerations:
55
-
- operator: "Exists"# Allow running on all nodes, including tainted ones
34
+
selector:
35
+
matchLabels:
36
+
name: sysctl-tuner
37
+
template:
38
+
metadata:
39
+
labels:
40
+
name: sysctl-tuner
41
+
spec:
42
+
containers:
43
+
- name: sysctl
44
+
image: busybox
45
+
securityContext:
46
+
privileged: true
47
+
command:
48
+
- sh
49
+
- -c
50
+
- "sysctl -w fs.inotify.max_user_watches=<value>"# Define the value you need
51
+
hostNetwork: true
52
+
hostPID: true
53
+
tolerations:
54
+
- operator: "Exists"# Allow running on all nodes, including tainted ones
56
55
```
57
56
58
57
Define the value of the sysctl key `fs.inotify.max_user_watches` based on your applications' needs.
@@ -67,19 +66,19 @@ The DaemonSet will set the sysctl parameter `fs.inotify.max_user_watches` with t
67
66
> $ kubectl run busybox --image=busybox:latest --rm=true -it --privileged=true -- sysctl -a
68
67
> ```
69
68
>
70
-
> This command will create a privileged busybox pod, will print all "sysctl" variables then delete the pod.
69
+
> This command will create a privileged busybox pod that prints all available sysctl values and deletes the pod.
71
70
72
71
## Step 2: Test if the changes were applied correctly
73
72
74
-
In order to check if the Inotify value has been changed properly, you can escalate a shell into a pod:
73
+
In order to check if the inotify value has been changed properly, you can execute a shell into a pod:
0 commit comments