Skip to content

Commit

Permalink
move ups port to usb vendor id and product id
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuism committed Mar 22, 2024
1 parent b396537 commit 57b0880
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
9 changes: 3 additions & 6 deletions charts/root/templates/generic-device-plugin/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@ spec:
mountPath: /dev/ttyUSB0
- name: upsport
groups:
- paths:
- path: /dev/bus/usb
mountPath: /dev/bus/usb
- paths:
- path: /dev/char
mountPath: /dev/char
- usb:
- vendor: "051d"
product: "0002"
- name: zwavemodule
groups:
- paths:
Expand Down
32 changes: 32 additions & 0 deletions mounted_debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh

kubectl run mydebian -n jellyfin --image debian --rm -ti --restart=Never --overrides='
{
"spec": {
"containers": [
{
"stdin": true,
"tty": true,
"args": [ "bash" ],
"name": "mydebian",
"image": "debian",
"volumeMounts": [
{
"mountPath": "/mnt/temp",
"name": "store"
}
]
}
],
"volumes": [
{
"name": "store",
"persistentVolumeClaim": {
"claimName": "jellyfin-media-pvc"
}
}
]
}
}
'

0 comments on commit 57b0880

Please sign in to comment.