ressu / kube-plex

Scalable Plex Media Server on Kubernetes -- dispatch transcode jobs as pods on your cluster!
Apache License 2.0
102 stars 24 forks source link

initial wag at adding nodeselector reflection #46

Closed rkbennett closed 1 year ago

rkbennett commented 1 year ago

Addresses #45

Not sure if this is the same use case everyone has, but this is something that I have needed for my cluster where I have a mix of different node resources, so I've had to add node labels to advertise compatibility for scheduling. This update passes through whatever nodeselectors are assigned to the plex pod into all spawned transcode jobs and pods. If for some reason it fails to get a result it should default to the current nodeSelector that's in use. I've tested this locally and it seems to work as desired, though my golang experience is next to none, so take that with a grain of salt.