Deis installation of the Rackspace

Note: This article translated from Deis official documents, without any commercial purposes, reproduced please indicate the source.

We will primarily follow the CoreOS guidelines on Rackspace . You need to have a complete installed python environment (sudo easy_install pip).
Please read this article and get the source code and refer to the script in contrib / rackspace .

Install supernova

shell
$ sudo pip install keyring
$ sudo pip install rackspace-novaclient
$ sudo pip install supernova

Configure supernova

Edit ~ / .supernova to meet the following settings:
ini
[production]
OS_AUTH_URL = https://identity.api.rackspacecloud.com/v2.0/
OS_USERNAME = {rackspace用户名}
OS_PASSWORD = {rackspace API密钥}
OS_TENANT_NAME = {rackspace账号ID}
OS_REGION_NAME = DFW (或ORD或其他区域)
OS_AUTH_SYSTEM = rackspace

Your account ID is displayed in the upper right corner of the cloud control panel interface, and your API key can be found on the Account Settings page.

Generate an SSH key

The deisctl tool uses the SSH tunnel to communicate with the remote host. If you do not have an SSH key, the following command will generate a key pair named deis:
shell
$ ssh-keygen -q -t rsa -f ~/.ssh/deis -N '' -C deis

Set your key

Send the key pair information to supernova and give a recognizable name:
shell
$ supernova production keypair-add --pub-key ~/.ssh/deis.pub deis-key

Generate a new discovery URL

Find the URL of the node's address and metadata stored in a unique identity, in order to help the etcd instance connected together. Run the following command in the root directory of the repository to generate a contrib / coreos / user-data file with a new discovery URL:
shell
$ make discovery-url

User-data contains the necessary scripts, so do not open the Deis cluster before the make discovery-url is run.

Select the number of instances

By default, the script will open three servers. You can override this value by setting DEIS_NUM_INSTANCES:
shell
$ DEIS_NUM_INSTANCES=5 ./provision-rackspace-cluster.sh deis-key

Note that in order to ensure that the schedule is working properly, the cluster must consist of at least three nodes, and the number of members is always odd. For more information, see " Best Bundle Cluster Size ".
Do not support Deis clusters with fewer than three nodes.

Run the script

Run Rackspace to open a script to generate a new CoreOS cluster. You need to provide the name of the key pair you just added. In addition, you can also specify a configuration name and the supernova environment to use. By default, the environment value is production, and the configuration is named performance1-2.
shell
$ cd contrib/rackspace
$ ./provision-rackspace-cluster.sh
Usage: provision-rackspace-cluster.sh <key pair name> [flavor] [environment]
$ ./provision-rackspace-cluster.sh deis-key

<Dl>
<Dt> attention </ dt>
<Dd> The script opens the performance1-2 server by default. It is not recommended to choose a smaller server specification. Please refer to the resource requirements in "<a href=" http://docs.deis.io/en/latest/ … 6" and "System Requirements </a>" when choosing to run Deis's server specifications. </ Dd>
</ Dl>

Configure DNS

Refer to " Configuring DNS " for more information on setting up Deis related DNS records correctly.

Configure the load balancer

You need to create two load balancers on Rackspace to handle your cluster:
“ `Ini '
Load Balancer 1
Port 80
Protocol HTTP
Health Monitoring –
Monitor Type HTTP
HTTP Path / health-check

Load Balancer 2
Virtual IP Shared VIP on Another Load Balancer (select Load Balancer 1)
Port 2222
Protocol TCP
“ “

Install the Deis platform

Now that you have completed the cluster, please refer to " Installing the Deis Platform " to start the platform installation.

Heads up! This alert needs your attention, but it's not super important.