This repository is an example project to show how to integrate PrimeHub Python SDK to implement the remote deploy feature.
In PrimeHub, we can only deploy the PrimeHub Deploy to current cluster.
If we want to deploy a model deployment to other remote clustes, we can use the command line tool primehub-remote-deploy
to deploy.
Please use the following container images to run the command in PrimeHub.
Image: infuseai/primehub-remote-deploy:latest
-
Add managed cluster config
primehub-remote-deploy config set-master <managed-cluster-api-token>
-
Add remote cluster config
primehub-remote-deploy config set-remote <remote-cluster-name> <remote-cluster-api-token>
-
List all the cluster configs
primehub-remote-deploy config list
primehub-remote-deploy deploy list
primehub-remote-deploy deploy sync-to-remote