Introduction to Deployments¶
Deployments are objects within UbiOps that serve a user's code. From the uploaded code, the platform will build a container, running as a microservice inside UbiOps, that can receive requests to transform input data into output data. Examples of typical deployments are algorithms, data aggregation scripts and trained machine learning models.
You define a deployment by setting its expected input/output variables and data types. UbiOps will enforce this when processing requests. You can also configure its memory allocation and scaling settings.
The code that will run, as well as its requirements and artifacts are uploaded to UbiOps in the form of a zipped deployment package (see: Deployment structure). UbiOps will take care of containerizing your code and installing all its dependencies. Each deployment shall contain at least one version.
After the deployment is built in the background, it is ready to receive requests through its API endpoint. A deployment can also be connected to other deployments in a Pipeline.
For a tutorial on deployments, see: Deployment quickstart.
Creating a new deployment with the WebApp¶
A deployment can be created in the UbiOps User Interface by visiting Deployments in the left navigation bar and clicking on the Create button.
A deployment requires a name, an input type and an output type. The input type and output type can be structured or plain. See Deployment structure for more information.
Adding labels/tags to deployments
You can assign labels to deployments to filter them easily later on. Provide a name and a value, such as "type" - "image_recognition" and click on Add.
After confirming the deployment, you can create Environment Variables for your deployment. Environment variables allow you to externally set variables, managed by UbiOps, that can be used inside your deployment code.
The first version of your deployment can be created in the next step of the deployment creation form. A default name
v1 will be filled in, though feel free to name them as your team finds most convenient. For more information about deployment versions, see Deployment versions
Fill in the programming language of your code. Click on the Upload code button to upload the ZIP file. The required structure of the ZIP file can be found here. For a concrete example of a deployment ready to be deployed, follow the steps in our quickstart.
More deployment options are optional, such as for example the memory allocation. These can be set in the Advanced parameters.
Finally, click on the Create button.