kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

Offline installation is too troublesome

Open willzhang opened this issue 2 years ago • 10 comments

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

willzhang avatar Jul 29 '21 14:07 willzhang

@pixiake @24sama Any thoughts on this issue?

FeynmanZhou avatar Jul 30 '21 06:07 FeynmanZhou

/kind help

FeynmanZhou avatar Jul 30 '21 06:07 FeynmanZhou

@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.

ks-ci-bot avatar Jul 30 '21 06:07 ks-ci-bot

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

willzhang avatar Jul 30 '21 07:07 willzhang

hi @willzhang , thanks for your detailed proposal. That's great.

LinuxSuRen avatar Jul 30 '21 08:07 LinuxSuRen

Thanks for your proposal, we have received some similar demands before. At present, we are refining for offline environment.

pixiake avatar Jul 30 '21 08:07 pixiake

./kk init registry -h

kk can run a registry for deploy use?

shake avatar Aug 05 '21 06:08 shake

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

24sama avatar Dec 25 '21 08:12 24sama

Please see the new doc: https://github.com/kubesphere/kubekey/blob/master/docs/zh/manifest_and_artifact.md

24sama avatar Feb 18 '22 08:02 24sama

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.

willzhang avatar Mar 06 '22 09:03 willzhang