add support for proxmox lxc containers (#209)

Co-authored-by: Adam Doussan <acdoussan@Adams-MacBook-Pro.local>
This commit is contained in:
acdoussan
2023-01-29 21:23:31 -06:00
committed by GitHub
parent be3e72e173
commit 511ec493d6
8 changed files with 111 additions and 0 deletions

10
scripts/rc.local Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh -e
# Kubeadm 1.15 needs /dev/kmsg to be there, but it's not in lxc, but we can just use /dev/console instead
# see: https://github.com/kubernetes-sigs/kind/issues/662
if [ ! -e /dev/kmsg ]; then
ln -s /dev/console /dev/kmsg
fi
# https://medium.com/@kvaps/run-kubernetes-in-lxc-container-f04aa94b6c9c
mount --make-rshared /