- 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.
ansible-playbook -i hosts/hosts.sample -u root cluster.yml
- Download and extract bin package from Releases tab
- Write down ip in the hosts file, here is a sample in
hosts/hosts.sample
. - Change the variables in
group_vars/all
. - Run the playbook.
- You can find init/join script in
/usr/local/bin
. - Configuration files are stored in Master node's
/etc/kubernetes
- Enjoy it.
- Offline.
- Support for different lvm configuration in CentOS.
- Calico plugins included.