Deploy OpenPAI on the k8s with RBAC
cd dashboard/
cp dashboard.yaml dashboard.fin.yaml
sed -i "s/{nodename}/${YOUR_NODE_NAME}/g" dashboard.fin.yaml
kubectl create -f dashboard.fin.yaml
cd paictl
sudo docker build -t openpai-batch .
sudo docker tag openpai-batch ${your_registry_url}/openpai-batch
sudo docker push ${your_registry_url}/openpai-batch
cd paictl
kubectl create -f paictl-sa.yaml
kubectl create -f paictl.yaml