# Containerization

### Deploying Models Guide

Before starting to read this guide, it is recommended that you read the[ ](https://computationaldocs.zeblok.com/zeblok-computational-1/ai-api/notebooks)[Build Models Guide](https://computationaldocs.zeblok.com/zeblok-computational-1/ai-api/build-models) of the Ai-APIᵀᴹ Concept.

After a model is built, trained, and containerized, comes the deployment stage.

Now this is the part where our Ai-APIᵀᴹ Engine comes into play.&#x20;

Our Workspace has a Spawned Deployment section, and the sidebar on the left side of your screen has a menu button called Containerization, which will lead you to our Ai-APIᵀᴹ Engine, Containerized model status, and Pipeline status

<figure><img src="https://content.gitbook.com/content/LSL8CzXuA4YIVVjOwPQL/blobs/dzqkBzrvLse1uZKvupjz/Workspace_landing_page.png" alt=""><figcaption><p>Figure 1: Spawned Deplyments</p></figcaption></figure>

{% hint style="info" %}
**Note:**

If in the Building phase you have already chosen the auto-deployment feature provided by our Zeblok CLI, you will be able to see your model under the "Spawned Deployment" section, deployed as an AI-API.
{% endhint %}

### For the Manual deployment process, the steps are as follows:

* Click on the Deployment Button on the left-hand menu, and you will see the containerized model in "ready" state, which you can easily deploy as an AI-API by clicking the Deploy AI-API button under Actions.&#x20;

<figure><img src="https://content.gitbook.com/content/LSL8CzXuA4YIVVjOwPQL/blobs/oypDo5e4bWRex3YxLXlB/Deplyment_landing_page.png" alt=""><figcaption><p>Figure 2: Deplyments Tab</p></figcaption></figure>

* Then comes the selection of a namespace (only if you are a member of one).

<figure><img src="https://content.gitbook.com/content/LSL8CzXuA4YIVVjOwPQL/blobs/Sv6kx5Go0Q7n3LtvQVxa/select_namespace.png" alt=""><figcaption><p>Figure 3: Namespace Selection</p></figcaption></figure>

* The third step is to select the location where you want to deploy it.

<figure><img src="https://content.gitbook.com/content/LSL8CzXuA4YIVVjOwPQL/blobs/PcmlyGO9W94J5B0BQoXQ/slect_datacenter.png" alt=""><figcaption><p>Figure 4: Select DataCenter</p></figcaption></figure>

* If you selected an Edge Datacenter in the previous step, you have an additional step where you are given an option to choose whether you want your deployment to be created on the **HUB** or any **SATELLITE** Node.&#x20;

![Select HUB or SATELLITE NODE](https://content.gitbook.com/content/LSL8CzXuA4YIVVjOwPQL/blobs/VOukRZyURdn0KSiXMPJp/image.png)

* Name your Deployment and click on Create.

<figure><img src="https://content.gitbook.com/content/LSL8CzXuA4YIVVjOwPQL/blobs/44UoQ42uMENDYheKCrGE/Name_deploy.png" alt=""><figcaption><p>Figure 5: Name of Deployment</p></figcaption></figure>

You will be redirected to the Workspace while the deployment is being done in the background. On successful deployment, the status of the deployment will change to **DEPLOYED.**&#x20;

<figure><img src="https://content.gitbook.com/content/LSL8CzXuA4YIVVjOwPQL/blobs/Ho5OYxaviHeoYWf7H4SO/Deplyed_AI-API.png" alt=""><figcaption><p>Figure 7: Deployment Successful</p></figcaption></figure>

{% hint style="info" %}
**Note:** On successful deployment, when the status is deployed, you are now given an option to monitor various performance metrics, as highlighted in the images below.
{% endhint %}

![Performance Monitoring](https://content.gitbook.com/content/LSL8CzXuA4YIVVjOwPQL/blobs/aSSG01HEZUaTRgCNm2fR/image.png)
