Allow configuration of alternative kubelet directoriesΒ #5913
Description
Is this a BUG REPORT or FEATURE REQUEST?: Feature Request
/kind enhancement
What happened:
I attempted to install KubeVirt and I couldn't because the distribution of Kubernetes I am using (k0s) uses a non-standard kubelet
directory (/var/lib/k0s/kubelet
versus /var/lib/kubelet
).
What you expected to happen:
KubeVirt to offer a way to change the expected kubelet
directory
How to reproduce it (as minimally and precisely as possible):
Attempt to install KubeVirt on a distribution of kubernetes like k3s
or k0s
Anything else we need to know?:
This is related to #5069. This seems to also be a problem with k3s
(and a previous version of microk8s
which has since changed back, I assume), and probably any distribution that uses a non-standard kubelet path.
I worked around this by symlinking /var/lib/kubelet
to /var/lib/k0s/kubelet
. Not a great solution (discussed @ k0sproject/k0s#428)
Environment:
- KubeVirt version (use
virtctl version
):
Client Version: version.Info{GitVersion:"v0.41.0", GitCommit:"b7f322409e310ebaf7edb9f657d9864ad5730ab0", GitTreeState:"clean", BuildDate:"2021-05-12T14:43:31Z", GoVersion:"go1.13.14", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.42.1-dirty", GitCommit:"3e4ea2d9b8d4405dc307e885bc49f10c8ce5372c", GitTreeState:"dirty", BuildDate:"2021-06-10T02:06:01Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"}
NOTE: technically I couldn't get this version before KubeVirt succesfully installed.
- Kubernetes version (use
kubectl version
):
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38", GitTreeState:"clean", BuildDate:"2020-12-08T17:59:43Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.1-k0s1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-20T14:08:24Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
-
VM or VMI specifications:
N/A the problem happens before installed -
Cloud provider or hardware configuration:
Hetzner, Dedicated Server (AX41)
- OS (e.g. from /etc/os-release):
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
- Kernel (e.g.
uname -a
):
Linux <hostname> 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
- Install tools:
- Others: