kubekey
kubekey copied to clipboard
Offline installation is too troublesome
what happend
The official offline installation method is too troublesome。
see: https://kubesphere.io/docs/installing-on-linux/introduction/air-gapped-installation/
what i want
1、online
curl -Ok https://kubesphere-installer.pek3b.qingstor.com/offline/v3.1.1/kubesphere-all-v3.1.1-offline-linux-amd64.tar.gz
2、offline tar -zxvf kubesphere-all-v3.1.1-offline-linux-amd64.tar.gz cd kubesphere-all-v3.1.1-offline-linux-amd64 ./kk install docker ./kk image push http://dockerhub.kubekey.local ./kk create cluster
what should do
1、add docker-20.10.7.tgz
to kubesphere-all-v3.1.1-offline-linux-amd64.tar.gz
2、offline install docker is easy
docker_version=19.03.5
curl -Lo docker.tgz https://mirrors.aliyun.com/docker-ce/linux/static/stable/x86_64/docker-${docker_version}.tgz
tar -xvzf docker.tgz -C /usr/bin --strip=1
cat > /usr/lib/systemd/system/docker.service <<EOF
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target
[Service]
Type=notify
ExecStart=/usr/bin/dockerd
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TimeoutStartSec=0
Delegate=yes
KillMode=process
[Install]
WantedBy=multi-user.target
EOF
systemctl enable --now docker.service
@pixiake @24sama Any thoughts on this issue?
/kind help
@FeynmanZhou: The label(s) kind/help
cannot be applied, because the repository doesn't have them.
In response to this:
/kind help
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
1、about docker: you can install with binary like sealer: https://github.com/alibaba/sealer/blob/c7bb9433848b7e0c993a545e315518f24095ae1f/filesystem/rootfs/docker/scripts/docker.sh
2、about docker registry: user must give a registry url ,push image to that registry, or give a guide for user to install a registry, or let user prepare one node for harbor or registry install
3、nothing else need to do,real offline install for product environment
hi @willzhang , thanks for your detailed proposal. That's great.
Thanks for your proposal, we have received some similar demands before. At present, we are refining for offline environment.
./kk init registry -h
kk can run a registry for deploy use?
Hi all! The new KubeKey v2.0.0-alpha.3 has a new way to offline install clusters easily. Welcome to try and feel free to give us some suggestions.
/need-to-verify
Please see the new doc: https://github.com/kubesphere/kubekey/blob/master/docs/zh/manifest_and_artifact.md
it waste a lot of time to generate artifact,and install many thing and face many problems , if support a standerd package kubesphere-all-v3.2.1-offline-linux-amd64.tar.gz for user will be good.