https://rancher.com/ logo
r

red-vegetable-45199

02/06/2023, 7:59 AM
How can I extend the scheduler and add the plugin for GPU sharing to RKE Kubernetes like v1.20.15-rancher1-4 ?
a

agreeable-oil-87482

02/06/2023, 8:03 AM
r

red-vegetable-45199

02/06/2023, 8:04 AM
Yes, we have Nvidia GPUs
a

agreeable-oil-87482

02/06/2023, 8:11 AM
You'd need to modify the kubelet config to point to an external cri - I've not done it for RKE1 before
May be slightly easier with RKE2 - https://gist.github.com/bgulla/3b725f0eea54fdd49f4d7066e16b1d89 modify to point to that CRI's socket
r

red-vegetable-45199

02/06/2023, 8:21 AM
BTW, the repository https://github.com/rancher/kubernetes is very old, where is the source code for new one like v1.20.15-rancher1-4 ?
a

agreeable-oil-87482

02/06/2023, 8:23 AM
r

red-vegetable-45199

02/06/2023, 9:00 AM
in file data/data.json, the kubernetes version for "v1.20.15-rancher1-4" is "rancher/hyperkube:v1.20.15-rancher1", where is the source code?
a

agreeable-oil-87482

02/06/2023, 9:10 AM
r

red-vegetable-45199

02/06/2023, 9:56 AM
I just make a clone, it's pretty simple, and Dockerfile is mainly about "FROM rancher/hyperkube-base:v0.0.9" While repository hyperkube-base is mainly about "FROM ubuntu:22.04", where is kubernetes introduced into the image?
found it, thanks a lot
but from https://dl.k8s.io within the release tarball
finally find it from https://github.com/kubernetes/kubernetes.git with tag v1.20.15
15 Views