Use Tekton to automate the deployment of applications
Learn how to speed up your deployment process
Tekton is an open source project that provides a Knative way to declare continuous integration/continuous deployment-style pipelines. In this code pattern, we show you how we used Tekton to reduce our deployment time for an application from 45 minutes of clicking around and configuring down to 15 minutes and a few commands.
To demonstrate the functionality of Tekton, we need an example application to deploy. Example Health is a demo app we created to demonstrate application modernization. As often is the case in production applications, Example Health started out as two separate applications. When our business needs grew faster than we anticipated, we quickly needed to add analytic capabilities to our application.
In the vein of 12-factor application best practices, we split our workload into five microservices. This translates into the Example Health application consisting of five different images. Currently, we have all five of these services deployed into one Red Hat® OpenShift® on an IBM Cloud™ cluster.
- User creates an OpenShift cluster and installs Tekton.
- Add Example Health deployment pipeline and resource files.
- Execute pipeline and build, deploy, and expose Example Health images.
- Confirm functionality of resources.
Ready to get started? Check out the README for detailed instructions on how to:
- Target your cluster.
- Install Tekton, its dashboard, and extensions.
- Create a service account.
- Install tasks.
- Apply resources, pipeline, and run.
- Create a unit test (optionally).