mirror of
https://gitlab.com/arm-research/smarter/smarter-device-manager.git
synced 2024-12-04 08:05:12 +00:00
Add tty to the configmaps and rename yaml files to correspond to uses and README
This commit is contained in:
parent
c7605e87d8
commit
0eab2f36e6
@ -147,3 +147,6 @@ The following command should show the node resources in a similar form as shown
|
|||||||
kubectl describe node pike5
|
kubectl describe node pike5
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## k3s
|
||||||
|
|
||||||
|
K3s < 1.18 stores the plugin interface in a different directory than k8s and so it needs a different yaml file to enable smarter-device-manager to communicate correctly with k3s agent. So use the smart-device-manager-k3s yaml files on this reposistor for k3s < 1.18.
|
||||||
|
@ -22,3 +22,11 @@ data:
|
|||||||
nummaxdevices: 20
|
nummaxdevices: 20
|
||||||
- devicematch: ^vcsm.*$
|
- devicematch: ^vcsm.*$
|
||||||
nummaxdevices: 20
|
nummaxdevices: 20
|
||||||
|
- devicematch: ^ttyUSB[0-9]*$
|
||||||
|
nummaxdevices: 1
|
||||||
|
- devicematch: ^ttyACM[0-9]*$
|
||||||
|
nummaxdevices: 1
|
||||||
|
- devicematch: ^ttyTHS[0-9]*$
|
||||||
|
nummaxdevices: 1
|
||||||
|
- devicematch: ^ttyS[0-9]*$
|
||||||
|
nummaxdevices: 1
|
||||||
|
@ -22,5 +22,13 @@ data:
|
|||||||
nummaxdevices: 20
|
nummaxdevices: 20
|
||||||
- devicematch: ^vcsm.*$
|
- devicematch: ^vcsm.*$
|
||||||
nummaxdevices: 20
|
nummaxdevices: 20
|
||||||
|
- devicematch: ^ttyUSB[0-9]*$
|
||||||
|
nummaxdevices: 1
|
||||||
|
- devicematch: ^ttyACM[0-9]*$
|
||||||
|
nummaxdevices: 1
|
||||||
|
- devicematch: ^ttyTHS[0-9]*$
|
||||||
|
nummaxdevices: 1
|
||||||
|
- devicematch: ^ttyS[0-9]*$
|
||||||
|
nummaxdevices: 1
|
||||||
- devicematch: nvidia-gpu
|
- devicematch: nvidia-gpu
|
||||||
nummaxdevices: 20
|
nummaxdevices: 20
|
||||||
|
@ -32,8 +32,6 @@ spec:
|
|||||||
hostname: smarter-device-management
|
hostname: smarter-device-management
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
imagePullSecrets:
|
|
||||||
- name: k8sedgeregcred
|
|
||||||
containers:
|
containers:
|
||||||
- name: smarter-device-manager
|
- name: smarter-device-manager
|
||||||
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
@ -32,8 +32,6 @@ spec:
|
|||||||
hostname: smarter-device-management
|
hostname: smarter-device-management
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
imagePullSecrets:
|
|
||||||
- name: k8sedgeregcred
|
|
||||||
containers:
|
containers:
|
||||||
- name: smarter-device-manager
|
- name: smarter-device-manager
|
||||||
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
@ -32,8 +32,6 @@ spec:
|
|||||||
hostname: smarter-device-management
|
hostname: smarter-device-management
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
imagePullSecrets:
|
|
||||||
- name: k8sedgeregcred
|
|
||||||
containers:
|
containers:
|
||||||
- name: smarter-device-manager
|
- name: smarter-device-manager
|
||||||
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
@ -32,8 +32,6 @@ spec:
|
|||||||
hostname: smarter-device-management
|
hostname: smarter-device-management
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
imagePullSecrets:
|
|
||||||
- name: k8sedgeregcred
|
|
||||||
containers:
|
containers:
|
||||||
- name: smarter-device-manager
|
- name: smarter-device-manager
|
||||||
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
@ -1,48 +0,0 @@
|
|||||||
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: smarter-jetson-xavier-4bcc2584
|
|
||||||
containers:
|
|
||||||
- name: smarter-device-manager
|
|
||||||
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager/smarter-device-manager:IMAGE_ID
|
|
||||||
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
|
|
||||||
- name: sys-dir
|
|
||||||
mountPath: /sys
|
|
||||||
volumes:
|
|
||||||
- name: device-plugin
|
|
||||||
hostPath:
|
|
||||||
path: /var/lib/rancher/k3s/agent/kubelet/device-plugins
|
|
||||||
- name: dev-dir
|
|
||||||
hostPath:
|
|
||||||
path: /dev
|
|
||||||
- name: sys-dir
|
|
||||||
hostPath:
|
|
||||||
path: /sys
|
|
||||||
terminationGracePeriodSeconds: 30
|
|
Loading…
Reference in New Issue
Block a user