Skip to content
Samples to show how to monitor Tekton Pipelines deployments with the Elastic Stack (Elasticsearch / Beats / Kibana)
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Upgrade to Tekton 0.5 and Elastic Stack 7.2.0 Jul 9, 2019
doc Refactor folders/files May 31, 2019
images Add kaniko example (#4) Feb 7, 2019
samples Refactor folders/files May 31, 2019
scripts Upgrade to Tekton 0.5 and Elastic Stack 7.2.0 Jul 9, 2019
.gitignore Add kaniko example (#4) Feb 7, 2019
LICENSE Create LICENSE Feb 7, 2019
README.adoc Refactor folders/files May 31, 2019

README.adoc

Tekton Pipelines and the Elastic Stack

See it in action:

kaniko stream logs
Figure 1. tekton example with Kaniko (Dockerfile in git → Docker image pushed to Dockerhub)

Prerequisite

For now, these tutorials have only been tested on a laptop with Docker Desktop 2.0.0 with kubernetes enabled on Mac OS.

docker desktop mac

Tekton Pipelines Tutorials

The samples folder contains several examples using tekton Tasks and Pipelines.
The Elastic components (Elasticsearch, Beats and Kibana) are deployed to the Kubernetes cluster to collect the logs and metrics from the pods deployed by tekton.
The tekton components deployed are the official ones. There is no need to update those components to monitor them using the Elastic Stack.

Set up

# make sure you are using the right k8s context
$ kubectl config current-context
docker-for-desktop

# install all the components
$ ./scripts/set-up-env.sh init

Then wait until the pods are running before starting the tutorials

# Check Elastic pods
$ kubectl get pods -w -n elastic-stack

# Check tekton Build Pipeline pods
$ kubectl get pods -w -n tekton-pipelines
NAME                                           READY   STATUS    RESTARTS   AGE
tekton-pipelines-controller-77f74f5bcf-rbj8s   1/1     Running   0          1m
tekton-pipelines-webhook-f76c97965-5xkxq       1/1     Running   0          1m

Get Access to Kibana

When the set-up is done, you should have a Kibana pod up and running:

# Check Elastic pods
$ kubectl get pods -n elastic-stack
NAME                                 READY     STATUS    RESTARTS   AGE
elasticsearch-7bf6cd96cd-r6llt       1/1       Running   0          4m
filebeat-5lrwg                       1/1       Running   0          4m
kibana-694998774-dxwgm               1/1       Running   0          4m
kube-state-metrics-b8845b4d7-ch9v7   1/1       Running   0          4m
metricbeat-zctb6                     1/1       Running   0          4m

Then you can access to the Kibana Infrastructure app:

kibana infrastructure app

Check the Tekton Pipeline Controller logs to make sure everything is OK

kibana k8s logs

Ready to start!

CONGRATS you are now ready to start the tutorials!

You can’t perform that action at this time.