Skip to content

Commit e7901be

Browse files
authored
Merge pull request #7483 from ovh/update_mks_inotify
Update MKS deamonSet to set your inotify parameters
2 parents b031e6b + a66f87c commit e7901be

File tree

15 files changed

+465
-270
lines changed

15 files changed

+465
-270
lines changed

pages/public_cloud/containers_orchestration/managed_kubernetes/configuring-sysctl-parameters-on-nodes/guide.de-de.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Adapt your Inotify parameters for your Managed Kubernetes Service deployments
33
excerpt: 'Adapt your Inotify parameters for your deployments which need specific Inotify parameters'
4-
updated: 2025-01-24
4+
updated: 2025-02-03
55
---
66

77
## Objective
@@ -31,31 +31,44 @@ apiVersion: apps/v1
3131
kind: DaemonSet
3232
metadata:
3333
name: sysctl-tuner
34+
namespace: kube-system
3435
spec:
3536
selector:
3637
matchLabels:
37-
name: sysctl-tuner
38+
app: sysctl-tuner
39+
updateStrategy:
40+
type: RollingUpdate
3841
template:
3942
metadata:
4043
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
44+
app: sysctl-tuner
45+
spec:
46+
hostPID: true
47+
priorityClassName: system-node-critical
48+
hostNetwork: true
49+
tolerations:
50+
- operator: Exists
51+
initContainers:
52+
- image: busybox
53+
name: sysctl-tuner
54+
command:
55+
- sh
56+
- -c
57+
- "sysctl -w fs.inotify.max_user_watches=<value> && sysctl -w fs.inotify.max_user_instances=<value>"
58+
securityContext:
59+
privileged: true
60+
runAsUser: 0
61+
volumeMounts:
62+
- name: root-mount
63+
mountPath: /host
64+
- name: entrypoint
65+
mountPath: /scripts
66+
containers:
67+
- image: registry.k8s.io/pause:3.10
68+
name: pause
5669
```
5770
58-
Define the value of the sysctl key `fs.inotify.max_user_watches` based on your applications' needs.
71+
Define the value of the sysctl key `fs.inotify.max_user_watches` and `fs.inotify.max_user_instances` based on your applications' needs.
5972

6073
The DaemonSet will set the sysctl parameter `fs.inotify.max_user_watches` with the value you provided in the DaemonSet configuration on all nodes deployed into your Kubernetes Cluster.
6174

pages/public_cloud/containers_orchestration/managed_kubernetes/configuring-sysctl-parameters-on-nodes/guide.en-asia.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Adapt your Inotify parameters for your Managed Kubernetes Service deployments
33
excerpt: 'Adapt your Inotify parameters for your deployments which need specific Inotify parameters'
4-
updated: 2025-01-24
4+
updated: 2025-02-03
55
---
66

77
## Objective
@@ -31,31 +31,44 @@ apiVersion: apps/v1
3131
kind: DaemonSet
3232
metadata:
3333
name: sysctl-tuner
34+
namespace: kube-system
3435
spec:
3536
selector:
3637
matchLabels:
37-
name: sysctl-tuner
38+
app: sysctl-tuner
39+
updateStrategy:
40+
type: RollingUpdate
3841
template:
3942
metadata:
4043
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
44+
app: sysctl-tuner
45+
spec:
46+
hostPID: true
47+
priorityClassName: system-node-critical
48+
hostNetwork: true
49+
tolerations:
50+
- operator: Exists
51+
initContainers:
52+
- image: busybox
53+
name: sysctl-tuner
54+
command:
55+
- sh
56+
- -c
57+
- "sysctl -w fs.inotify.max_user_watches=<value> && sysctl -w fs.inotify.max_user_instances=<value>"
58+
securityContext:
59+
privileged: true
60+
runAsUser: 0
61+
volumeMounts:
62+
- name: root-mount
63+
mountPath: /host
64+
- name: entrypoint
65+
mountPath: /scripts
66+
containers:
67+
- image: registry.k8s.io/pause:3.10
68+
name: pause
5669
```
5770
58-
Define the value of the sysctl key `fs.inotify.max_user_watches` based on your applications' needs.
71+
Define the value of the sysctl key `fs.inotify.max_user_watches` and `fs.inotify.max_user_instances` based on your applications' needs.
5972

6073
The DaemonSet will set the sysctl parameter `fs.inotify.max_user_watches` with the value you provided in the DaemonSet configuration on all nodes deployed into your Kubernetes Cluster.
6174

pages/public_cloud/containers_orchestration/managed_kubernetes/configuring-sysctl-parameters-on-nodes/guide.en-au.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Adapt your Inotify parameters for your Managed Kubernetes Service deployments
33
excerpt: 'Adapt your Inotify parameters for your deployments which need specific Inotify parameters'
4-
updated: 2025-01-24
4+
updated: 2025-02-03
55
---
66

77
## Objective
@@ -31,31 +31,44 @@ apiVersion: apps/v1
3131
kind: DaemonSet
3232
metadata:
3333
name: sysctl-tuner
34+
namespace: kube-system
3435
spec:
3536
selector:
3637
matchLabels:
37-
name: sysctl-tuner
38+
app: sysctl-tuner
39+
updateStrategy:
40+
type: RollingUpdate
3841
template:
3942
metadata:
4043
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
44+
app: sysctl-tuner
45+
spec:
46+
hostPID: true
47+
priorityClassName: system-node-critical
48+
hostNetwork: true
49+
tolerations:
50+
- operator: Exists
51+
initContainers:
52+
- image: busybox
53+
name: sysctl-tuner
54+
command:
55+
- sh
56+
- -c
57+
- "sysctl -w fs.inotify.max_user_watches=<value> && sysctl -w fs.inotify.max_user_instances=<value>"
58+
securityContext:
59+
privileged: true
60+
runAsUser: 0
61+
volumeMounts:
62+
- name: root-mount
63+
mountPath: /host
64+
- name: entrypoint
65+
mountPath: /scripts
66+
containers:
67+
- image: registry.k8s.io/pause:3.10
68+
name: pause
5669
```
5770
58-
Define the value of the sysctl key `fs.inotify.max_user_watches` based on your applications' needs.
71+
Define the value of the sysctl key `fs.inotify.max_user_watches` and `fs.inotify.max_user_instances` based on your applications' needs.
5972

6073
The DaemonSet will set the sysctl parameter `fs.inotify.max_user_watches` with the value you provided in the DaemonSet configuration on all nodes deployed into your Kubernetes Cluster.
6174

pages/public_cloud/containers_orchestration/managed_kubernetes/configuring-sysctl-parameters-on-nodes/guide.en-ca.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Adapt your Inotify parameters for your Managed Kubernetes Service deployments
33
excerpt: 'Adapt your Inotify parameters for your deployments which need specific Inotify parameters'
4-
updated: 2025-01-24
4+
updated: 2025-02-03
55
---
66

77
## Objective
@@ -31,31 +31,44 @@ apiVersion: apps/v1
3131
kind: DaemonSet
3232
metadata:
3333
name: sysctl-tuner
34+
namespace: kube-system
3435
spec:
3536
selector:
3637
matchLabels:
37-
name: sysctl-tuner
38+
app: sysctl-tuner
39+
updateStrategy:
40+
type: RollingUpdate
3841
template:
3942
metadata:
4043
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
44+
app: sysctl-tuner
45+
spec:
46+
hostPID: true
47+
priorityClassName: system-node-critical
48+
hostNetwork: true
49+
tolerations:
50+
- operator: Exists
51+
initContainers:
52+
- image: busybox
53+
name: sysctl-tuner
54+
command:
55+
- sh
56+
- -c
57+
- "sysctl -w fs.inotify.max_user_watches=<value> && sysctl -w fs.inotify.max_user_instances=<value>"
58+
securityContext:
59+
privileged: true
60+
runAsUser: 0
61+
volumeMounts:
62+
- name: root-mount
63+
mountPath: /host
64+
- name: entrypoint
65+
mountPath: /scripts
66+
containers:
67+
- image: registry.k8s.io/pause:3.10
68+
name: pause
5669
```
5770
58-
Define the value of the sysctl key `fs.inotify.max_user_watches` based on your applications' needs.
71+
Define the value of the sysctl key `fs.inotify.max_user_watches` and `fs.inotify.max_user_instances` based on your applications' needs.
5972

6073
The DaemonSet will set the sysctl parameter `fs.inotify.max_user_watches` with the value you provided in the DaemonSet configuration on all nodes deployed into your Kubernetes Cluster.
6174

pages/public_cloud/containers_orchestration/managed_kubernetes/configuring-sysctl-parameters-on-nodes/guide.en-gb.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Adapt your Inotify parameters for your Managed Kubernetes Service deployments
33
excerpt: 'Adapt your Inotify parameters for your deployments which need specific Inotify parameters'
4-
updated: 2025-01-24
4+
updated: 2025-02-03
55
---
66

77
## Objective
@@ -31,31 +31,44 @@ apiVersion: apps/v1
3131
kind: DaemonSet
3232
metadata:
3333
name: sysctl-tuner
34+
namespace: kube-system
3435
spec:
3536
selector:
3637
matchLabels:
37-
name: sysctl-tuner
38+
app: sysctl-tuner
39+
updateStrategy:
40+
type: RollingUpdate
3841
template:
3942
metadata:
4043
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
44+
app: sysctl-tuner
45+
spec:
46+
hostPID: true
47+
priorityClassName: system-node-critical
48+
hostNetwork: true
49+
tolerations:
50+
- operator: Exists
51+
initContainers:
52+
- image: busybox
53+
name: sysctl-tuner
54+
command:
55+
- sh
56+
- -c
57+
- "sysctl -w fs.inotify.max_user_watches=<value> && sysctl -w fs.inotify.max_user_instances=<value>"
58+
securityContext:
59+
privileged: true
60+
runAsUser: 0
61+
volumeMounts:
62+
- name: root-mount
63+
mountPath: /host
64+
- name: entrypoint
65+
mountPath: /scripts
66+
containers:
67+
- image: registry.k8s.io/pause:3.10
68+
name: pause
5669
```
5770
58-
Define the value of the sysctl key `fs.inotify.max_user_watches` based on your applications' needs.
71+
Define the value of the sysctl key `fs.inotify.max_user_watches` and `fs.inotify.max_user_instances` based on your applications' needs.
5972

6073
The DaemonSet will set the sysctl parameter `fs.inotify.max_user_watches` with the value you provided in the DaemonSet configuration on all nodes deployed into your Kubernetes Cluster.
6174

0 commit comments

Comments
 (0)