Hands on Workshop Cloud Native Pipelines with Tekton
This repository contains all the necessary scripts and yaml files to complete the workshop. In this documentation you will find instructions you need to take to complete this lab. The lab entails of provisioning a Redhat Openshift v3.11 Cluster with CloudPak for MultilCloud Manager v1.3, installing Kabanero 0.2 and using the custom pipelines from the bluecompute project to deploy a microservice to Redhat Openshift.
Table of Contents
Overview
Pre-requisites
- Redhat Openshift Cluster v3.11
- Kabanero v0.2
- Tekton Triggers v0.2
Getting Started
Go ahead and provision an Openshift Cluster 3.11, use the dropdown and select 4 hours or 1 day as the duration of the demo.
Run through steps until you reach "Add a Managed Cluster"
-
Clone this repository on your cluster
git clone https://username@github.ibm.com/Oscar-Ricaud/prevail-scripter
-
Install the necessary resources i.e Kabanero, Tekton Triggers etc.
./scripts/installer_helper
-
Generate your base64 encoding.
- Obtain your github token
- Obtain your public/private image registry token
- Update the
scripts/generate_base64_encoding.py
with your credentialspython ./scripts/generate_base64_encoding.py
- Create your secrets
oc project kabanero oc apply --recursive --filename ./yaml/secrets
-
Fork this repository and update key URL for the
./yaml/pipeline-resources/pipeline-git-resource.yaml
cd ./yaml/pipeline-resources vim pipeline-git-resource.yaml
-
Update the
./yaml/pipeline-resources-pipeline-image-resource.yaml
and include your image registry urlcd ./yaml/pipeline-resources vim pipeline-image-resource.yaml
-
Create your pipeline resources and persistent volume
cd ./yaml/pipeline-resources oc project kabanero oc apply -f pipeline-image-resource.yaml oc apply -f pipelien-git-resource.yaml cd ../persistent-volume oc apply --recursive --filename ./pipeline-resources/
-
Create a pipeline run
oc apply --recursive --filename ./yaml/pipeline-run/
-
Install bluecompute microservices
./scripts/install_bluecompute_ms.sh