k8sp / sextant

Fully automatic installation of CoreOS+Kubernetes clusters
Apache License 2.0
91 stars 29 forks source link

Pack etcd3 flannel cloud-init tools to bsroot #559

Closed typhoonzero closed 7 years ago

typhoonzero commented 7 years ago

Suppose we only have a cluster installed CentOS7, the installation ISO mounted on each server, there's no internet access for all of the cluster servers.

So we need to pack etcd3 flannel cloud-init tools to bsroot. When doing an offline installation, The steps are:

  1. Use reposync --repoid=xxx --download_path=xxxto download repos(like extras which contains cloud-init and docker), and pack them into bsroot.
  2. Upload bsroot.tar.gz to bootstrapper server(one server in the cluster);
  3. Setup yum to use local extras repo and install Docker on bootstrapper server;
  4. Start bootstrapper.
  5. Run installation script on each server using yum install;
  6. Run bootstrap scripts like post_cloudinit_provision.sh.

Repos needed:

Maybe we can also pack anything else and provide users an interface to deal with these tools.

pineking commented 7 years ago

现在的方式不满足需求吗?现在的方式是 bootstrapper 建了一个 local repo, 每台机器通过 yum安装 etcd cloud-init 等。

typhoonzero commented 7 years ago

Everything ISO中看起来并没有cloud-init这个包。cloud-init, docker都在extras里

pineking commented 7 years ago

cloud-init etcd 这些是在准备 bsroot 目录的时候下载的,准备 bsroot 目录的那台机器是有外网 internet 的权限

typhoonzero commented 7 years ago

是最近增加的功能么?我去看下代码先~