Skip to content

Alicloud utilities

Brian Wandell edited this page Oct 23, 2017 · 6 revisions

Alibaba compute resources are managed by the Resource Orchestration Services (ROS) and ossutil commands. Please see Alicloud setup for installation instructions.

Starting a k8s cluster

The Matlab commands to start up a cluster on the Alicloud are

% Create a Kubernetes cluster using a template. 
alicloud = acloud;
StackName = 'ros-name';           % Name of the cluster you are creating
MasterType = 'ecs.n1.medium';     % The options can be found in the kube_3master.json template
WorkerType = MasterType;          % Match the workers to the master or use another type
NumberWorkerNodes = '2';          % A string, though we are planning to make it a number
Password   = 'yourPassword';      % Creating a password for this cluster
[result, status, masterIp, cmd] = alicloud.k8sCreate(StackName, MasterType, ... 
                                            WorkerType,NumberWorkerNodes,Password);

% Copy kube config file from the alicloud master machine to local machine.
cmd = sprintf('scp root@%s:/etc/kubernetes/kube.conf $HOME/.kube/config',masterIp);
system(cmd);

Note. The password must have at least one capital letter and one number.

Running a docker image (PBRT-V2-Spectral)

Clone this wiki locally