Last active
December 21, 2021 17:35
-
-
Save gambtho/645d549753bacaf1106e40925802d044 to your computer and use it in GitHub Desktop.
daemonset aks set pid_max
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
namespace: kube-system | |
name: set-pid-max | |
labels: | |
k8s-app: set-pid-max | |
spec: | |
selector: | |
matchLabels: | |
k8s-app: set-pid-max | |
template: | |
metadata: | |
labels: | |
k8s-app: set-pid-max | |
spec: | |
initContainers: | |
- name: set-pid-max | |
image: mcr.microsoft.com/oss/busybox/busybox:1.33.1 | |
command: ["sh", "-c"] | |
securityContext: | |
privileged: true | |
args: | |
- |- | |
set -e | |
set -o pipefail | |
echo 4194269 > /proc/sys/kernel/pid_max | |
containers: | |
- name: wait | |
image: mcr.microsoft.com/oss/kubernetes/pause:3.6 | |
imagePullPolicy: IfNotPresent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment