2019-11-22 16:52:49 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: smarter-device-management
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
# Mark this pod as a critical add-on; when enabled, the critical add-on
|
|
|
|
# scheduler reserves resources for critical add-on pods so that they can
|
|
|
|
# be rescheduled after a failure.
|
|
|
|
# See https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
|
|
|
|
priorityClassName: "system-node-critical"
|
|
|
|
hostNetwork: true
|
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
|
|
hostname: smarter-device-management
|
|
|
|
nodeName: <replace with node to run>
|
|
|
|
containers:
|
|
|
|
- name: smarter-device-manager
|
2020-06-09 21:15:51 +00:00
|
|
|
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
2019-11-22 16:52:49 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop: ["ALL"]
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 10Mi
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 10Mi
|
|
|
|
volumeMounts:
|
|
|
|
- name: device-plugin
|
|
|
|
mountPath: /var/lib/kubelet/device-plugins
|
|
|
|
- name: dev-dir
|
|
|
|
mountPath: /dev
|
2020-06-08 19:45:14 +00:00
|
|
|
- name: sys-dir
|
|
|
|
mountPath: /sys
|
2019-11-22 16:52:49 +00:00
|
|
|
volumes:
|
|
|
|
- name: device-plugin
|
|
|
|
hostPath:
|
2020-01-17 16:25:24 +00:00
|
|
|
path: /var/lib/rancher/k3s/agent/kubelet/device-plugins
|
2019-11-22 16:52:49 +00:00
|
|
|
- name: dev-dir
|
|
|
|
hostPath:
|
|
|
|
path: /dev
|
2020-06-08 19:45:14 +00:00
|
|
|
- name: sys-dir
|
|
|
|
hostPath:
|
|
|
|
path: /sys
|
2020-06-09 21:15:51 +00:00
|
|
|
terminationGracePeriodSeconds: 30
|