ucloud-host can not be started by using hostname
This commit is contained in:
parent
da5a600ccb
commit
e37222c1c7
4 changed files with 40 additions and 18 deletions
|
|
@ -12,6 +12,7 @@ Welcome to ucloud's documentation!
|
|||
|
||||
introduction/introduction
|
||||
introduction/installation
|
||||
introduction/usage
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
|
|
|||
|
|
@ -184,17 +184,3 @@ profile e.g *~/.profile*
|
|||
alias uotp='cd /root/uotp/ && pipenv run python app.py'
|
||||
|
||||
and run :code:`source ~/.profile`
|
||||
|
||||
|
||||
Running ucloud
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
ucloud api
|
||||
|
||||
We need to create a host by executing the following command
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
|
||||
35
docs/source/introduction/usage.rst
Normal file
35
docs/source/introduction/usage.rst
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
Usage
|
||||
=====
|
||||
|
||||
Start API
|
||||
----------
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
ucloud api
|
||||
|
||||
Host Creation
|
||||
-------------
|
||||
|
||||
Currently, we don't have any host (that runs virtual machines).
|
||||
So, we need to create it by executing the following command
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
ucloud-cli host create --hostname ungleich.ch --cpu 32 --ram '32GB' --os-ssd '32GB'
|
||||
|
||||
You should see something like the following
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"message": "Host Created"
|
||||
}
|
||||
|
||||
Start Scheduler
|
||||
---------------
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
ucloud scheduler
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue