This project will automatically deploy LXCFS while mounted to the container
LXCFS is a small FUSE filesystem written with the intention of making Linux
containers feel more like a virtual machine. It started as a side-project of
LXC but is useable by any runtime.
LXCFS will take care that the information provided by crucial files in procfs
such as:
/proc/cpuinfo
/proc/diskstats
/proc/meminfo
/proc/stat
/proc/swaps
/proc/uptime
/proc/slabinfo
/sys/devices/system/cpu
/sys/devices/system/cpu/online
are container aware such that the values displayed (e.g. in /proc/uptime)
really reflect how long the container is running and not how long the host is
running.
Kubernetes cluster (v1.19+) is running. For local development purpose, check Kind installation.you can enable the namespace for injection.
kubectl label namespace default mount-lxcfs=enabled