kubespray/docs/cloud.md

23 lines
477 B
Markdown
Raw Normal View History

2016-07-04 20:13:18 +08:00
Cloud providers
==============
#### Provisioning
2017-06-24 00:35:10 +08:00
You can use kubespray-cli to start new instances on cloud providers
2016-07-04 20:13:18 +08:00
here's an example
```
2017-06-24 00:35:10 +08:00
kubespray [aws|gce] --nodes 2 --etcd 3 --cluster-name test-smana
2016-07-04 20:13:18 +08:00
```
#### Deploy kubernetes
2017-06-24 00:35:10 +08:00
With kubespray-cli
2016-07-04 20:13:18 +08:00
```
2017-06-24 00:35:10 +08:00
kubespray deploy [--aws|--gce] -u admin
2016-07-04 20:13:18 +08:00
```
Or ansible-playbook command
```
ansible-playbook -u smana -e ansible_ssh_user=admin -e cloud_provider=[aws|gce] -b --become-user=root -i inventory/single.cfg cluster.yml
```