Skip to content
Snippets Groups Projects
cloud.md 477 B
Newer Older
  • Learn to ignore specific revisions
  • Smaine Kahlouch's avatar
    Smaine Kahlouch committed
    Cloud providers
    ==============
    
    #### Provisioning
    
    
    You can use kubespray-cli to start new instances on cloud providers
    
    Smaine Kahlouch's avatar
    Smaine Kahlouch committed
    here's an example
    ```
    
    kubespray [aws|gce] --nodes 2 --etcd 3 --cluster-name test-smana
    
    Smaine Kahlouch's avatar
    Smaine Kahlouch committed
    ```
    
    #### Deploy kubernetes
    
    
    With kubespray-cli
    
    Smaine Kahlouch's avatar
    Smaine Kahlouch committed
    ```
    
    kubespray deploy [--aws|--gce] -u admin
    
    Smaine Kahlouch's avatar
    Smaine Kahlouch committed
    ```
    
    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
    ```