2019-12-04 23:22:57 +08:00
|
|
|
# Cloud providers
|
2016-07-04 20:13:18 +08:00
|
|
|
|
2024-10-15 01:01:00 +08:00
|
|
|
> **Removed**: Since v1.31 (the Kubespray counterpart is v2.27), Kubernetes no longer supports `cloud_provider`. (except external cloud provider)
|
|
|
|
|
2019-12-04 23:22:57 +08:00
|
|
|
## Provisioning
|
2016-07-04 20:13:18 +08:00
|
|
|
|
2023-02-01 16:01:06 +08:00
|
|
|
You can deploy instances in your cloud environment in several ways. Examples include Terraform, Ansible (ec2 and gce modules), and manual creation.
|
2016-07-04 20:13:18 +08:00
|
|
|
|
2019-12-04 23:22:57 +08:00
|
|
|
## Deploy kubernetes
|
2016-07-04 20:13:18 +08:00
|
|
|
|
2018-02-05 23:00:21 +08:00
|
|
|
With ansible-playbook command
|
2019-12-04 23:22:57 +08:00
|
|
|
|
|
|
|
```ShellSession
|
2016-07-04 20:13:18 +08:00
|
|
|
ansible-playbook -u smana -e ansible_ssh_user=admin -e cloud_provider=[aws|gce] -b --become-user=root -i inventory/single.cfg cluster.yml
|
|
|
|
```
|