Deploying a service works the same way as deploying a job or a cronjob

Building a service

Write the appropriated manifest.json file

Deploy a service (UI)

In the DataTask portal, select New Task

cookbook6 1

And arrive in this new task page

cookbook7 2

The procedure consists of 3 steps:

Step 1 : The loading of a manifest.

In this window you have two choices :

  1. Deploy your own service from the "From the git" section

    1. Enter the name of the git repository.

    2. Enter the name of the directory containing the manifest.json file.

    3. Enter the name of the branch from which the manifest.json should be retrieved.

    4. Click on the button to start loading the manifest.json from the git.

    5. Follow the status of the loading.

  2. Deploying a task from a template using the "From a template" section

    1. Select a service template.

    2. Click on the button to load it.

Step 2 : The editing of the manifest (optional).

On this window you have the possibility to modify the manifest before deploying it (this is an optional step).

  1. Click the edit button to unlock the window and make changes to the manifest.

  2. Edit it. To validate it press the "Apply" button. In case of an error you can cancel your modifications by using the "Restore" button.

Step 3 : Deployment of the service.

This step consists in deploying the task defined by the manifest visible on the screen on the Kubernetes cluster.

  1. Select the namespace in which to deploy the service.

  2. Click the button to deploy it. You can view the deployment logs by clicking on the "Deployment logs" button.

  3. Follow the deployment status. You can find your service in the list by clicking on the link "find my task".

Display a service

After deploying a service. If you are included in the group for which it was deployed, a refresh of the access rights is necessary. To do this, you must disconnect and reconnect to the platform. The deployed services to which you have access are visible on the portal

cookbook7 3

As you can see the "helloword2" service is available.

List services

The services are displayed in the same place as the tasks. Go to Task list

cookbook6 1

Then select your namespace to see all the tasks and your service.

If you click on your service, a menu appear, you can see the status.

cookbook7 5

On the dialog of a task you can delete it at any time or view and access the resources that correspond to it through the link : "Show on Google Kubernetes Engine"