Overview

Skill Level: Any Skill Level

TA generates migration artifacts to deploy an app in Kubernetes.

Using Tekton Pipeline, we build docker image and deploy app in Openshift. A resource called `Task` contains steps to do the same.

Lets install the pipeline and understand its resources.

Ingredients

* Cloud Pak for Applications v4.x installed on Openshift v4.2 (make sure that Tekton is installed and available)
* oc CLI

Step-by-step

  1. Objective

    TA generates migration artifacts (`liberty operator manifest files`, `Dockerfile`, pom.xml and etc) to deploy the assessed app in Kubernetes platform.

    Using Tekton Pipeline, we build docker image with the TA generated Liberty App artifacts and deploy the app in RedHat Openshift Container Platform. To do that the below resources are created and available in this repo.
    1. Pipeline
    2. Task
    3. Secret
    4. ServiceAccount
    5. ClusterRole

    Here `Task` contains steps to create docker image, push it to Docker Registry and deploy in Openshift. These resources are fully customized for TA generated Liberty app artifacts.

    These resources are installed in Openshift as a Tekton pipeline.

    Then this Tekton pipeline can be used in every webhook that we create in Tekton for TA generated apps.

    Lets install the pipeline and understand its resources.

  2. Installation steps and Detailed descriptions

    Steps to Install the pipeline and Detailed descriptions are available in the below Git Hub link.

    https://github.com/GandhiCloudLab/tekton/tree/master/001-tekton-tranformationadvisor-liberty/ta-liberty-pipeline

     

     

Join The Discussion