When Kubernetes is up and running, PAI services can then be deployed to it using paictl
tool:
cd pai
# cmd should be executed under /pai directory in the environment.
python paictl.py service start \
[ -c ~/.kube/config] \
[ -n service-list ]
If the -n
parameter is specified, only the given services, e.g. rest-server
, webportal
, watchdog
, etc., will be deployed. If not, all PAI services will be deployed. In the latter case, the above command does the following things:
-
Generate Kubernetes-related configuration files based on
layout.yaml
. -
Use
kubectl
to set up config maps and create pods on Kubernetes.
After this step, the system maintainer can check the status of OpenPAI services by accessing OpenPAI kubernetes web portal:
http://<master>:9090/#!/pod?namespace=default