@@ -17,103 +17,105 @@ Linux kernel doesn't support CVMs.
17
17
18
18
``` yaml
19
19
apiVersion : v1
20
- kind : Namespace
21
- metadata :
22
- name : smarter-device-manager
23
- labels :
24
- name : smarter-device-manager
25
- ---
26
- apiVersion : v1
27
- kind : ResourceQuota
28
- metadata :
29
- name : smarter-device-manager
30
- namespace : smarter-device-manager
31
- spec :
32
- hard :
33
- pods : 50
34
- scopeSelector :
35
- matchExpressions :
36
- - operator : In
37
- scopeName : PriorityClass
38
- values :
39
- - system-node-critical
40
- - system-cluster-critical
41
- ---
42
- apiVersion : v1
43
- kind : ConfigMap
44
- metadata :
45
- name : smarter-device-manager
46
- namespace : smarter-device-manager
47
- data :
48
- conf.yaml : |
49
- - devicematch: ^fuse$
50
- nummaxdevices: 50
51
- ---
52
- apiVersion : apps/v1
53
- kind : DaemonSet
54
- metadata :
55
- name : smarter-device-manager
56
- namespace : smarter-device-manager
57
- labels :
58
- name : smarter-device-manager
59
- role : agent
60
- spec :
61
- selector :
62
- matchLabels :
63
- name : smarter-device-manager
64
- updateStrategy :
65
- type : RollingUpdate
66
- template :
67
- metadata :
68
- labels :
69
- name : smarter-device-manager
70
- annotations :
71
- node.kubernetes.io/bootstrap-checkpoint : " true"
72
- spec :
73
- nodeSelector :
74
- smarter-device-manager : enabled
75
- priorityClassName : " system-node-critical"
76
- hostname : smarter-device-management
77
- hostNetwork : true
78
- dnsPolicy : ClusterFirstWithHostNet
79
- containers :
80
- - name : smarter-device-manager
81
- image : registry.gitlab.com/arm-research/smarter/smarter-device-manager:v1.20.7
82
- imagePullPolicy : IfNotPresent
83
- securityContext :
84
- allowPrivilegeEscalation : false
85
- capabilities :
86
- drop : ["ALL"]
87
- resources :
88
- limits :
89
- cpu : 100m
90
- memory : 15Mi
91
- requests :
92
- cpu : 10m
93
- memory : 15Mi
94
- volumeMounts :
95
- - name : device-plugin
96
- mountPath : /var/lib/kubelet/device-plugins
97
- - name : dev-dir
98
- mountPath : /dev
99
- - name : sys-dir
100
- mountPath : /sys
101
- - name : config
102
- mountPath : /root/config
103
- volumes :
104
- - name : device-plugin
105
- hostPath :
106
- path : /var/lib/kubelet/device-plugins
107
- - name : dev-dir
108
- hostPath :
109
- path : /dev
110
- - name : sys-dir
111
- hostPath :
112
- path : /sys
113
- - name : config
114
- configMap :
115
- name : smarter-device-manager
116
- terminationGracePeriodSeconds : 30
20
+ kind : Namespace
21
+ metadata :
22
+ name : smarter-device-manager
23
+ labels :
24
+ name : smarter-device-manager
25
+
26
+ ---
27
+ apiVersion : v1
28
+ kind : ResourceQuota
29
+ metadata :
30
+ name : smarter-device-manager
31
+ namespace : smarter-device-manager
32
+ spec :
33
+ hard :
34
+ pods : 50
35
+ scopeSelector :
36
+ matchExpressions :
37
+ - operator : In
38
+ scopeName : PriorityClass
39
+ values :
40
+ - system-node-critical
41
+ - system-cluster-critical
42
+ ---
43
+ apiVersion : v1
44
+ kind : ConfigMap
45
+ metadata :
46
+ name : smarter-device-manager
47
+ namespace : smarter-device-manager
48
+ data :
49
+ conf.yaml : |+
50
+ - devicematch: ^fuse$
51
+ nummaxdevices: 50
52
+
53
+ ---
54
+ apiVersion : apps/v1
55
+ kind : DaemonSet
56
+ metadata :
57
+ name : smarter-device-manager
58
+ namespace : smarter-device-manager
59
+ labels :
60
+ name : smarter-device-manager
61
+ role : agent
62
+ spec :
63
+ selector :
64
+ matchLabels :
65
+ name : smarter-device-manager
66
+ updateStrategy :
67
+ type : RollingUpdate
68
+ template :
69
+ metadata :
70
+ labels :
71
+ name : smarter-device-manager
72
+ annotations :
73
+ node.kubernetes.io/bootstrap-checkpoint : " true"
74
+ spec :
75
+ nodeSelector :
76
+ smarter-device-manager : enabled
77
+ priorityClassName : " system-node-critical"
78
+ hostname : smarter-device-management
79
+ hostNetwork : true
80
+ dnsPolicy : ClusterFirstWithHostNet
81
+ containers :
82
+ - name : smarter-device-manager
83
+ image : registry.gitlab.com/arm-research/smarter/smarter-device-manager:v1.20.7
84
+ imagePullPolicy : IfNotPresent
85
+ securityContext :
86
+ allowPrivilegeEscalation : false
87
+ capabilities :
88
+ drop : ["ALL"]
89
+ resources :
90
+ limits :
91
+ cpu : 100m
92
+ memory : 15Mi
93
+ requests :
94
+ cpu : 10m
95
+ memory : 15Mi
96
+ volumeMounts :
97
+ - name : device-plugin
98
+ mountPath : /var/lib/kubelet/device-plugins
99
+ - name : dev-dir
100
+ mountPath : /dev
101
+ - name : sys-dir
102
+ mountPath : /sys
103
+ - name : config
104
+ mountPath : /root/config
105
+ volumes :
106
+ - name : device-plugin
107
+ hostPath :
108
+ path : /var/lib/kubelet/device-plugins
109
+ - name : dev-dir
110
+ hostPath :
111
+ path : /dev
112
+ - name : sys-dir
113
+ hostPath :
114
+ path : /sys
115
+ - name : config
116
+ configMap :
117
+ name : smarter-device-manager
118
+ terminationGracePeriodSeconds : 30
117
119
` ` `
118
120
119
121
Next, apply the changes to your clusters by running:
0 commit comments