Correct links to correct repository (#3430)
* Correct links to correct repository Update prerequesites list * Update url to Apache Cloudstack repo
This commit is contained in:
committed by
Andrew Chen
parent
daecd7213d
commit
507c29afeb
@@ -4,14 +4,13 @@ assignees:
|
||||
title: Cloudstack
|
||||
---
|
||||
|
||||
CloudStack is a software to build public and private clouds based on hardware virtualization principles (traditional IaaS). To deploy Kubernetes on CloudStack there are several possibilities depending on the Cloud being used and what images are made available. [Exoscale](http://exoscale.ch) for instance makes a [CoreOS](http://coreos.com) template available, therefore instructions to deploy Kubernetes on coreOS can be used. CloudStack also has a vagrant plugin available, hence Vagrant could be used to deploy Kubernetes either using the existing shell provisioner or using new Salt based recipes.
|
||||
[CloudStack](https://cloudstack.apache.org/) is a software to build public and private clouds based on hardware virtualization principles (traditional IaaS). To deploy Kubernetes on CloudStack there are several possibilities depending on the Cloud being used and what images are made available. CloudStack also has a vagrant plugin available, hence Vagrant could be used to deploy Kubernetes either using the existing shell provisioner or using new Salt based recipes.
|
||||
|
||||
[CoreOS](http://coreos.com) templates for CloudStack are built [nightly](http://stable.release.core-os.net/amd64-usr/current/). CloudStack operators need to [register](http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/latest/templates.html) this template in their cloud before proceeding with these Kubernetes deployment instructions.
|
||||
|
||||
This guide uses an [Ansible playbook](https://github.com/runseb/ansible-kubernetes).
|
||||
This guide uses an [Ansible playbook](https://github.com/apachecloudstack/k8s).
|
||||
This is completely automated, a single playbook deploys Kubernetes.
|
||||
|
||||
|
||||
This [Ansible](http://ansibleworks.com) playbook deploys Kubernetes on a CloudStack based Cloud using CoreOS images. The playbook, creates an ssh key pair, creates a security group and associated rules and finally starts coreOS instances configured via cloud-init.
|
||||
|
||||
|
||||
@@ -21,9 +20,17 @@ This [Ansible](http://ansibleworks.com) playbook deploys Kubernetes on a CloudSt
|
||||
|
||||
## Prerequisites
|
||||
|
||||
$ sudo apt-get install -y python-pip
|
||||
$ sudo pip install ansible
|
||||
$ sudo apt-get install -y python-pip libssl-dev
|
||||
$ sudo pip install cs
|
||||
$ sudo pip install sshpubkeys
|
||||
$ sudo apt-get install software-properties-common
|
||||
$ sudo apt-add-repository ppa:ansible/ansible
|
||||
$ sudo apt-get update
|
||||
$ sudo apt-get install ansible
|
||||
|
||||
On CloudStack server you also have to install libselinux-python :
|
||||
|
||||
yum install libselinux-python
|
||||
|
||||
[_cs_](https://github.com/exoscale/cs) is a python module for the CloudStack API.
|
||||
|
||||
@@ -43,10 +50,8 @@ We need to use the http POST method to pass the _large_ userdata to the coreOS i
|
||||
|
||||
### Clone the playbook
|
||||
|
||||
$ git clone --recursive https://github.com/runseb/ansible-kubernetes.git
|
||||
$ cd ansible-kubernetes
|
||||
|
||||
The [ansible-cloudstack](https://github.com/resmo/ansible-cloudstack) module is setup in this repository as a submodule, hence the `--recursive`.
|
||||
$ git clone https://github.com/apachecloudstack/k8s
|
||||
$ cd kubernetes-cloudstack
|
||||
|
||||
### Create a Kubernetes cluster
|
||||
|
||||
@@ -61,11 +66,11 @@ Some variables can be edited in the `k8s.yml` file.
|
||||
k8s_num_nodes: 2
|
||||
k8s_security_group_name: k8s
|
||||
k8s_node_prefix: k8s2
|
||||
k8s_template: Linux CoreOS alpha 435 64-bit 10GB Disk
|
||||
k8s_instance_type: Tiny
|
||||
k8s_template: <templatename>
|
||||
k8s_instance_type: <serviceofferingname>
|
||||
|
||||
This will start a Kubernetes master node and a number of compute nodes (by default 2).
|
||||
The `instance_type` and `template` by default are specific to [exoscale](http://exoscale.ch), edit them to specify your CloudStack cloud specific template and instance type (i.e. service offering).
|
||||
The `instance_type` and `template` are specific, edit them to specify your CloudStack cloud specific template and instance type (i.e. service offering).
|
||||
|
||||
Check the tasks and templates in `roles/k8s` if you want to modify anything.
|
||||
|
||||
@@ -87,6 +92,6 @@ SSH to it using the key that was created and using the _core_ user and you can l
|
||||
|
||||
IaaS Provider | Config. Mgmt | OS | Networking | Docs | Conforms | Support Level
|
||||
-------------------- | ------------ | ------ | ---------- | --------------------------------------------- | ---------| ----------------------------
|
||||
CloudStack | Ansible | CoreOS | flannel | [docs](/docs/getting-started-guides/cloudstack) | | Community ([@runseb](https://github.com/runseb))
|
||||
CloudStack | Ansible | CoreOS | flannel | [docs](/docs/getting-started-guides/cloudstack) | | Community ([@Guiques](https://github.com/ltupin/))
|
||||
|
||||
For support level information on all solutions, see the [Table of solutions](/docs/getting-started-guides/#table-of-solutions) chart.
|
||||
|
||||
Reference in New Issue
Block a user