Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 667 Bytes
#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