Microk8s GPU issues
This error occurs with specific GPU drivers in Almalinux,
when the microk8s GPU is enabled. If pods in gpu-operator-resource namespace
have error (kubectl describe -n <namespace> <pod>):
/sbin/ldconfig.real was not found,
then follow these steps to fix this issue:
Run
nvidia-smiand assure that GPU drivers are correctly installed.Check if
/sbin/ldconfigfile has been created. (drivers are correctly installed)Create a symbolic link:
sudo ln -s /sbin/ldconfig /sbin/ldconfig.realRestart system:
microk8s disable gpuand afterwards:microk8s enable gpu