-
Notifications
You must be signed in to change notification settings - Fork 0
/
turbobutton.yaml
94 lines (94 loc) · 2.37 KB
/
turbobutton.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
kind: ConfigMap
apiVersion: v1
metadata:
name: turbobutton-able-tunas
namespace: aks-turbobutton
data:
TUNEDEVS: "1" # If true then we will drop in the tuned rc.local file
REHOMEIO: "1" # If true the docker/ and kubelet/ directories are moved to tmpfs
SCHEDULER: "mq-deadline"
READ_AHEAD_KB: "4096"
MAX_SECTORS_KB: "128"
QUEUE_DEPTH: "64" # Need to validate Azure guidance re: qdepth
INST_BPFTRACE: "1"
INST_EBPF_EXPORTER: "1"
INST_FLAMEGRAPH: "1"
OOMKILLER_OFF: "1"
TRANSPARENT_HUGEPAGE: "always"
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: aks-turbobutton
namespace: aks-turbobutton
labels:
k8s-app: aks-turbobutton
spec:
selector:
matchLabels:
name: aks-turbobutton
template:
metadata:
labels:
name: aks-turbobutton
spec:
hostPID: true # For entering the host mont namespace via init
containers:
- name: aks-turbobutton
image: alexeldeib/bpftrace-bin-xenial-llvm-8
command: ["/scripts/fix-node.sh", "3600"]
#command: ["/bin/sleep", "3600"]
envFrom:
- configMapRef:
name: turbobutton-able-tunas
resources:
limits:
memory: 100Mi
requests:
cpu: 10m
memory: 50Mi
securityContext:
privileged: true
volumeMounts:
- name: turbobutton
mountPath: /scripts
- name: turbobutton-io
mountPath: /scripts-io
- name: procmnt
mountPath: /procmnt
- name: etcmnt
mountPath: /etcmnt
- name: usrmnt
mountPath: /usrmnt
- name: usrlocalmnt
mountPath: /usrlocalmnt
- name: cloudmnt
mountPath: /cloudmnt
- name: pythonmnt
mountPath: /pythonmnt
volumes:
- name: turbobutton
configMap:
name: aks-turbobutton
defaultMode: 0744
- name: turbobutton-io
configMap:
name: aks-turbobutton-io
- name: procmnt
hostPath:
path: /proc
- name: etcmnt
hostPath:
path: /etc
- name: usrmnt # im tired ok
hostPath:
path: /usr
- name: usrlocalmnt
hostPath:
path: /usr/local
- name: cloudmnt
hostPath:
path: /var/lib/cloud
- name: pythonmnt
hostPath:
path: /usr/lib/python2.7