infra/k8s/generic-device-plugin/ds.yaml

78 lines
1.8 KiB
YAML
Raw Normal View History

2024-05-19 04:44:05 +00:00
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: generic-device-plugin
labels:
app.kubernetes.io/name: generic-device-plugin
spec:
selector:
matchLabels:
app.kubernetes.io/name: generic-device-plugin
template:
metadata:
labels:
app.kubernetes.io/name: generic-device-plugin
spec:
priorityClassName: system-node-critical
tolerations:
- key: "rtlsdr"
value: "true"
effect: "NoSchedule"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: device
operator: In
values:
- rtlsdr
containers:
- image: squat/generic-device-plugin
args:
- --domain
- janky.solutions
- --device
- |
name: rtlsdr
groups:
- count: 2
usb:
- vendor: "0BDA"
product: "2838"
2024-10-15 07:07:17 +00:00
- --device
- |
name: meshtastic
groups:
- count: 1
usb:
- vendor: "1A86"
product: "55D4"
2024-05-19 04:44:05 +00:00
name: generic-device-plugin
resources:
requests:
cpu: 50m
memory: 10Mi
limits:
cpu: 50m
memory: 20Mi
ports:
- containerPort: 8080
name: http
securityContext:
privileged: true
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
- name: dev
mountPath: /dev
volumes:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins
- name: dev
hostPath:
path: /dev
updateStrategy:
type: RollingUpdate