Skip to content

yak2048/kubeadm-offline-installer

 
 

Repository files navigation

kubeadm-offline-installer

  • Upgraded to v1.8.0

没有好的完整的网络连接,Kubernetes 是很难搞的。

这里给出一个离线安装的 Release,尽量跟踪更新最新版本,给网络没那么方便的朋友们拿来玩。

Setup a cluster with kubeadm, without internet connections.

Kubeadm is a great way to set up a kubernetes cluster.

But every time I'm setting up a new cluster with it, I have to keep the internet connection, and do something like cat xxx EOF , yum install xxx, when kubeadm finished, I still have to copy config file, ca certs and save the tokens. this is boring, so I composed this playbook, working for minimal CentOS 7, can install a cluster without internet.

Usage

ansible-playbook -i hosts/hosts.sample -u root cluster.yml

  1. install ansible version >= 2.4.0
  2. Download and extract bin package from Releases tab
  3. Write down ip in the hosts file, here is a sample in hosts/hosts.sample.
  4. Change the variables in group_vars/all.
  5. Run the playbook.
  6. You can find init/join script in /usr/local/bin.
  7. Configuration files are stored in Master node's /etc/kubernetes
  8. Enjoy it.

Features

  1. Offline.
  2. Support for different lvm configuration in CentOS.
  3. Calico plugins included.

About

Setup a cluster with kubeadm, without internet connections.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%