Help us make these docs great!

All rapyuta.io docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Deploying Packages

Deploying a Package

To deploy a package in rapyuta.io, follow the steps:

  1. In the rapyuta.io console, on the left navigation bar, select Development > Catalog.

  2. Select the package you want to deploy.

  3. Click Deploy package and enter:

    Field Description
    Name of deployment Specify the deployment name.
    Labels A set of key value pairs used to filter out resources. To add a label, click Add label.
  4. Adding Configurations
    At an executable level you can auto sync the configuration parameters present on rapyuta.io with cloud deployment configs.

    • The deployment labels are used for filtering the correct configuration files inside the configuration tree.
    • The executables for which the syncing has to be enabled has to have either ‘wget’ or ‘curl’ baked in the image/build.
    Click Add Configuration and enter:

    Field Description
    Apply to all executables Enable this toggle button to select all the executables.
    Executables Select the list of executables that need to be synced.
    Configuration trees Specify the list of configuration trees to be synced from.
    Set a custom param directory An optional directory where the synced configuration parameter files are present. This folder is created inside the executable. /tmp/paramsync directory is created for the same purpose.

    This step may silently fail if the executable does not have the required permissions to create the folder.


    Disable param sync Enable this toggle button to disable the sync for the selected executable.
  5. Adding Volumes

  • Ensure that a running volume deployment is available before you add one.
  • Add device volume if the package has device runtime. To add Device Volumes, enter:
    Field Description
    Applicable Component Select the package component to attach the volume package from the dropdown list.
    Applicable executable Select the executable from the dropdown list.
    MountPath Specify the path in the container where the referenced volume should be mounted.
    SubPath Specify the SubPath to mount only specific directory instead of the whole volume as root. SubPath allows you to share one volume for multiple uses.
  • Add volume if the package has cloud runtime. To add Volume, enter:
    Field Description
    Disk Select the disk to be mounted from the dropdown list.
    Applicable Component Select the package component to attach the volume package from the dropdown list.
  1. Adding Dependency
    To add a dependent deployment:

    1. Click Add dependency.
    2. Select a deployment ID from the dropdown list to add as a dependency.
  2. ROS Bag Jobs
    To add a ROS Bag Jobs:

    1. Click Add ROS Bag Job.
    2. Specify the required details. For more information, see Working with ROS Bag Jobs
  3. Routed or Native Network
    To add a Routed or Native Network:

    1. Click Add
    2. Select a routed/native network from the Network dropdown list.
    3. Select the topics to be configured with each network from the Topics dropdown list.

For information on how to create a routed or native network, see Routed Network or Native Network.
If you have a cloud component in your package, you can select only cloud routed networks.
You cannot add a native network for a package with hybrid runtime.

You can also view the details related to topic configuration in the dependency composition graph on the Deployment Details page. For more information, see Dependency Composition.

  1. Restart Policies If you want to modify the initial setting of the restart policy of components with device runtime, click Modify.

  2. Click CREATE DEPLOYMENT and Confirm. You will be redirected to the Details page of the newly created deployment. On successful deployment, the Status changes to Running and the Deployment Phase changes to Succeeded. Additionally, if dependent deployments are added, the status of each should be Running. You may analyze the corresponding deployment logs generated while deploying a package.

If a deployment fails, the DEPLOYMENT PHASE will read Failed to start. You may have to click Deprovision Deployment, delete the package, create the package all over again, and try deploying it.

Update/Re-Deploy In-Place

This feature allows users to re-deploy a running deployment without stopping and while retaining its ID, dependencies, configuration, and endpoints. The advantages f this feature are as follows:

  • During the development phase, it enables the developers to switch between a newer or an older build version in a package without having to recreate a new package resource.
  • When a developer fixes and pushes a new image of the software to the docker repository with an identical tag and wants to pull the same into running deployment.
  • It is useful in the case of a dependent deployment, as you needn’t deprovision all the deployments when a single deployment needs an update and thus saves time.

The “in-place” Update/Redeploy feature is currently supported only on containers leveraging a containerized device runtime and in the cloud. This feature is unavailable for Device components powered by the pre-installed.

To update/re-deploy a deployment:

  1. In the rapyuta.io console, on the left navigation bar, click Developments > Deployments.
  2. Select the deployment that you want to update, and click Update Deployment. The Update Deployment page appears.
  3. The Update Deployment page lists all the components added to the package. Click the Update field next to the component that you want to update. You can select at least one or more than one component to update.
  4. Click Update.

It takes a few minutes and the deployment is updated. You can view the details of updated deployment in the Details tab.

Update Deployment can be done when the DEPLOYMENT PHASE is either Succeeded or Failed To Update. The Update Deployment button will be disabled for other deployment phases. In case of Failed To Update, you can check the historical logs for debugging.

  • When in failed to update state, the other tabs will be disabled.
  • In case your deployment goes to Failed To Update, it will show an appropriate error code like [DEP_E151] (/6_troubleshoot/611_deployment-error-codes/) which means device is either offline or not reachable. If you are not sure about the Error, please contact support.

You can view the Deployment Generation in the Details tab of the deployment. The generation increments by 1 for each update deployment. Suppose the current deployment generation is i and if the user does Update Deployment then the new deployment generation will be (i+1).

You can view the updated deployment history in the History tab. For a successful update, it shows a green success icon under Deployment Status. In case of a failure (due to network issue or device being offline), it shows a red failure icon under Deployment Status.

When Update Deployment is triggered, all the replicas are deleted gracefully and the rapyuta.io platform automatically re-creates new replicas for the component.