2020-06-02 17:13:09 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
|
|
|
name: < Replace with the namespace to use >
|
|
|
|
labels:
|
|
|
|
name: < Replace with the namespace to use >
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: smarter-device-manager
|
|
|
|
namespace: < Replace with the namespace to use >
|
|
|
|
labels:
|
|
|
|
name: smarter-device-manager
|
|
|
|
role: agent
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: smarter-device-manager
|
|
|
|
updateStrategy:
|
|
|
|
type: RollingUpdate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: smarter-device-manager
|
|
|
|
annotations:
|
|
|
|
node.kubernetes.io/bootstrap-checkpoint: "true"
|
|
|
|
spec:
|
|
|
|
nodeSelector:
|
|
|
|
smarter-device-manager : enabled
|
|
|
|
priorityClassName: "system-node-critical"
|
|
|
|
hostname: smarter-device-management
|
|
|
|
hostNetwork: true
|
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
|
|
containers:
|
|
|
|
- name: smarter-device-manager
|
2022-07-18 18:33:38 +00:00
|
|
|
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager:v1.20.10
|
2020-06-02 17:13:09 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop: ["ALL"]
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 15Mi
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 15Mi
|
|
|
|
volumeMounts:
|
|
|
|
- name: device-plugin
|
|
|
|
mountPath: /var/lib/kubelet/device-plugins
|
|
|
|
- name: dev-dir
|
|
|
|
mountPath: /dev
|
2020-06-10 15:36:18 +00:00
|
|
|
- name: sys-dir
|
|
|
|
mountPath: /sys
|
2020-06-02 17:13:09 +00:00
|
|
|
- name: config
|
|
|
|
mountPath: /root/config
|
|
|
|
volumes:
|
|
|
|
- name: device-plugin
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/rancher/k3s/agent/kubelet/device-plugins
|
|
|
|
- name: dev-dir
|
|
|
|
hostPath:
|
|
|
|
path: /dev
|
2020-06-09 21:15:51 +00:00
|
|
|
- name: sys-dir
|
|
|
|
hostPath:
|
|
|
|
path: /sys
|
2020-06-02 17:13:09 +00:00
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
name: smarter-device-manager-rpi
|
|
|
|
- name: config
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/rancher/k3s/agent/kubelet/device-plugins
|
|
|
|
terminationGracePeriodSeconds: 30
|