1.1Download packages(foo machine with internet)
This enable your prepare rpms for your dnf installation, the foo must has internet access, so download all rpm requires
1.1.1Config download repos
Before you can get all your rpm required, you need config the repo mirror on the foo which has internet access
1.1.1.1kubernetes repo
1.1.2Download rpm
After repo configed on foo, we can now download rpm locally without installation, you should NOT install them before you download
This is required by docker which is very special
1.1.3Package rpms
Tar your rpms for bar which has no internet access
1.2Config local(bar machine without internet)
remove local mirrors
For some reason, you'd better remove repo exists, since they may slow down your dnf
untar your gz
Upload tar to bar and untar
install yum-utils
This is required for docker
install container-selinux
I don't know why, but we need it, or we got error when install docker/kubeadm
install createrepo
Use sha1 avoid dnf error in runtime
config createrepo
Local repo config, you can run dnf now