-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcfs-burst.yaml
74 lines (73 loc) · 1.64 KB
/
cfs-burst.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
labels:
app: kube-cfs-burst
name: kube-cfs-burst
spec:
selector:
matchLabels:
name: kube-cfs-burst
template:
metadata:
labels:
name: kube-cfs-burst
spec:
containers:
- env:
- name: MAX_BURST_PERCENT
value: "200"
- name: DRY_RUN
value: "Y"
- name: MY_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: CGROUP_PATH
value: "/cgroup"
image: kube-cfs-burst:v1.0.0
imagePullPolicy: Always
securityContext:
privileged: true
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 100m
memory: 128Mi
name: kube-cfs-burst
volumeMounts:
- mountPath: /cgroup
name: cgroup
- mountPath: /etc/resolv.conf
name: conf
- mountPath: /etc/environment
name: envfile
- mountPath: /etc/hosts
name: hosts
- mountPath: /etc/kubernetes
name: config
volumes:
- hostPath:
path: /sys/fs/cgroup/cpu,cpuacct/kubepods
type: ""
name: cgroup
- hostPath:
path: /etc/resolv.conf
type: ""
name: conf
- hostPath:
path: /etc/environment
type: ""
name: envfile
- hostPath:
path: /etc/hosts
type: ""
name: hosts
- hostPath:
path: /etc/kubernetes
type: ""
name: config