kubernetes-ansible is used to deploy k8s, etcd, docker and flannel.
This is forked from kubernetes-ansible. According to the enviroment we used, I do some cut and modification.
This script can be used only in centos7 and the hosts should connect to the internet. And ansible1.9 is also required.
This script deploy three parts of cluster, etcd, master and one or more nodes.
parts | services |
---|---|
etcd | etcd |
master | kube-apiserver/kube-scheduler/kube-controller |
node | kube-proxy/flannl/kubelet/docker |
You can modify inventory and then execute
$ cd pre-setup
$ ansible-playbook -i ../inventory ping.yml # This will look like it fails, that's ok
$ ansible-playbook -i ../inventory keys.yml
You already did the config! Just run the setup::
$ ansible-playbook -i inventory setup.yml
- first version
- add skydns
- add iptables for flannel