Permalink
Cannot retrieve contributors at this time
#cloud-config | |
package_update: true | |
package_upgrade: true | |
packages: [python-pip, python-netaddr] | |
write_files: | |
- content: | | |
localhost bootstrap_os=ubuntu ansible_connection=local ansible_user=ubuntu ansible_become_user=root | |
[kube-master] | |
localhost | |
[etcd] | |
localhost | |
[kube-node] | |
localhost | |
[k8s-cluster:children] | |
kube-node | |
kube-master | |
path: /root/hosts.ini | |
runcmd: | |
- pip install ansible | |
- git clone https://github.com/kubernetes-incubator/kubespray.git /root/kubespray | |
- cd /root/kubespray && git checkout v2.4.0 | |
- ansible-playbook -i /root/hosts.ini /root/kubespray/cluster.yml |