Skip to content

liumiaocn/kubeadm-offline-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubeadm-offline-installer

  • Upgraded to v1.7.0

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. Download and extract bin package from Releases tab
  2. Write down ip in the hosts file, here is a sample in hosts/hosts.sample.
  3. Change the variables in group_vars/all.
  4. Run the playbook.
  5. You can find init/join script in /usr/local/bin.
  6. Configuration files are stored in Master node's /etc/kubernetes
  7. 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