Machine CLI
dx machine allows automated creation and management of kubes in cloud hosting.
Commands
dx machine list
$ wire machine list
{
"machines": [
{
"name": "kubec18e28d7",
"created_at": "2020-05-26T21:25:20Z"
},
{
"name": "kubef1145cc7",
"created_at": "2020-05-26T21:25:23Z"
},
{
"name": "kube087f310c",
"created_at": "2020-05-28T14:51:55Z"
}
]
}
wire machine create --name <optionalkubename> --memory <optionalmemorysize>
$ wire machine create
{
"machine": {
"name": "kube087f310c"
}
}
Memory sizes supported: 1,2,4,8,16,32G. Note that sizes smaller than 4G may not allow base Kube services to operate.
wire machine publish --name <kubename>
$ /home/david/projects/dxos/incubator/node_modules/.bin/wire machine publish --name kube087f310c
{
"machine_data": {
"name": "kube087f310c",
"dns_name": "kube087f310c.boxes.dxos.network",
"wrn": "kube.dxos.network/box087f310c"
}
}
Configuration
Obtain an API access token for Digital Ocean
and a GitHub Personal Access Token:
In wire profile:
services:
machine:
doAccessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
githubAccessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
npmAccessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
dnsDomain: 'kube.dxos.network'