There are 3 "experiments" included in this patchfile:
- Mounting the aic xorg config file into the X11 container
- I expect that this might be needed. Going forward, I'll need to provide an easy way to do this in the helm chart
- Mounting all of /run /dev and /sys into the X11 container
- I don't think this should be needed but I'd rather get something working then figure out what granularity is needed than go back and forth for weeks
- Running the userspace binary as a sidecar in the container
- This container also has access to /run /dev and /sys
- If it communicates with X11 using a socket that's not in one of those directories, we will need to add an emptyDir to allow communication
To use this:
- Disable and stop the aic-render systemd service (but keep the kernel module enabled)
- Move the binary to /opt/aic-render and make it executible
- Add
cm.yaml
in the same namespace as the helm chart is installed intokubectl apply -n <your-kiosk-ns> -f cm.yaml
- Apply the patchfile to the daemonset
kubectl patch -n <your-kiosk-ns> ds/kiosk --type json --patch-file patch.yaml
If the pod starts and can't run the binary, it will not block the pod from starting and will just sleep infinity
.