Closed GeoffWilliams closed 1 year ago
@GeoffWilliams that depends entirely your application and device!
Is your application and/or device able to tolerate multiple processes potentially accessing/reading/writing to the same device simultaneously? A rolling restart would mean that multiple containers would have the device allocated to it at the same time. This might cause problems with the device or drivers. However, if this is acceptable, then you could change the "count" of the serial device (see fuse device example [0]). This would enable two pods targeting the same device to be running simultaneously.
If simultaneous access of the device is not acceptable, then rolling updates are not acceptable either. This means you'll need to either:
[0] https://github.com/squat/generic-device-plugin/blob/main/manifests/generic-device-plugin.yaml#L52
closing for now. please re-open if you think there is a problem with the plugin or if you need more support!
Plugin is working great with USB Zigbee stick on
/dev/ttyUSB0
and Home Assistant as aDeployment
, thanks! Is there any way I can roll theDeployment
without deleting and re-applying? Eg, can I make this work:At the moment
kubectl describe pod
gives:I'm limiting the
Deployment
like this:Not fully sure what the number means, I just copy pasted the examples but it works.