Skip to content

The example of primehub-python-sdk, deploy the PrimeHub deployment to remote cluster

License

Notifications You must be signed in to change notification settings

InfuseAI/primehub-remote-deploy

Repository files navigation

PrimeHub Remote Deploy

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.

How to use

Please use the following container images to run the command in PrimeHub.

Image: infuseai/primehub-remote-deploy:latest

Setup Cluster configs

  • 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

List the current deployments

primehub-remote-deploy deploy list

Deploy the PrimeHub Deployment to remote clusters

primehub-remote-deploy deploy sync-to-remote

About

The example of primehub-python-sdk, deploy the PrimeHub deployment to remote cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published