Go to file
2019-11-01 05:24:27 -05:00
.github Add a few docs that were missing 📝 2019-04-30 15:28:52 -05:00
.storybook Fix storybook for connected dropdowns 2019-10-04 09:18:23 -05:00
cmd/dashboard add endpoints api 2019-08-09 04:50:54 -05:00
config Add conditions to ClusterRole 2019-10-22 10:05:23 -05:00
config_frontend Add script to extract messages for translation 2019-09-03 06:11:05 -05:00
docs Update sample extension docs to use v1 endpoint, Node.js 10 image, readme improvements 2019-09-04 05:15:06 -05:00
ingress HTTPS support - via Ingress 2019-08-13 09:04:56 -05:00
packages Increase log / details font size to improve legibility of ideographic languages 2019-10-29 07:30:26 -05:00
pkg Fix rebuild of cancelled PipelineRuns 2019-10-18 09:22:21 -05:00
scripts/i18n Add script to extract messages for translation 2019-09-03 06:11:05 -05:00
src Populate Secret Annotation Fields with Default Value 2019-11-01 05:24:27 -05:00
tekton Add openshift yaml to release pipeline 2019-10-14 11:23:19 -05:00
test second attempt 2019-10-31 10:47:27 -05:00
testdata/web serve static resources, allow building of combined front and back end projects 2019-04-25 11:49:50 -05:00
.browserslistrc Adding initial commit for front-end 2019-04-08 17:17:52 -04:00
.dockerignore serve static resources, allow building of combined front and back end projects 2019-04-25 11:49:50 -05:00
.editorconfig fix indentation, update editor config rules 2019-05-01 09:59:53 -05:00
.eslintrc.js Add eslint plugin to detect / fix missing copyright headers 2019-09-03 05:09:05 -05:00
.gitignore Add structure and base config to enable converting front end to monorepo 2019-08-13 10:59:56 -05:00
.prettierrc Adding initial commit for front-end 2019-04-08 17:17:52 -04:00
babel.config.js Add log fetching parameter to log component. Remove log container 2019-08-29 10:32:04 -05:00
code-of-conduct.md Add a few docs that were missing 📝 2019-04-30 15:28:52 -05:00
CONTRIBUTING.md Add a few docs that were missing 📝 2019-04-30 15:28:52 -05:00
DEVELOPMENT.md Base64 encode input data for secrets, update dev docs, correctly handle access token vs user pass 2019-10-15 08:47:23 -05:00
Dockerfile Add structure and base config to enable converting front end to monorepo 2019-08-13 10:59:56 -05:00
Dockerfile_race_test Add informer controller, restructure packages and refactor tests 2019-07-03 11:11:47 -05:00
Dockerfile_test Add informer controller, restructure packages and refactor tests 2019-07-03 11:11:47 -05:00
Gopkg.lock Bump tektoncd/plumbing dependency 2019-10-11 06:10:18 -05:00
Gopkg.toml add endpoints api 2019-08-09 04:50:54 -05:00
install-dev.sh Add dev install script, modify readme to use, pipeline definitions in release yaml 2019-06-11 03:58:09 -05:00
jest.config.js Fix multiple service account unpatching issue for secrets 2019-10-31 11:29:27 -05:00
lerna.json Publish @tektoncd/dashboard-components@0.0.1-alpha.25 2019-10-29 07:51:26 -05:00
LICENSE Initial commit 2019-04-04 08:47:04 -07:00
minishift-delete-dashboard.sh Minishift install and delete for different namespace 2019-07-15 05:51:51 -05:00
minishift-install-dashboard.sh Minishift install and delete for different namespace 2019-07-15 05:51:51 -05:00
OWNERS Add Steve as an approver 2019-10-04 08:32:15 -05:00
package-lock.json Fix multiple service account unpatching issue for secrets 2019-10-31 11:29:27 -05:00
package.json Kube API for frontend 2019-10-10 09:42:18 -05:00
README.md Mention can filter TaskRuns by label too 2019-10-24 04:07:23 -05:00
webpack.common.js Add eslint plugin to detect / fix missing copyright headers 2019-09-03 05:09:05 -05:00
webpack.dev.js Add eslint plugin to detect / fix missing copyright headers 2019-09-03 05:09:05 -05:00
webpack.prod.js Add eslint plugin to detect / fix missing copyright headers 2019-09-03 05:09:05 -05:00

Tekton Dashboard

License

Tekton Dashboard is a general purpose, web-based UI for Tekton Pipelines. It allows users to manage and view Tekton PipelineRuns and TaskRuns and the resources involved in their creation, execution, and completion. It also allows filtering of PipelineRuns and TaskRuns by label.

Dashboard UI workloads page

Pre-requisites

Tekton Pipelines must be installed in order to use the Tekton Dashboard. Instructions to install Tekton Pipelines can be found here. For 0.7.0 of Tekton Pipelines, use the 0.2.0 release. To continue using Tekton Pipelines 0.5.2, you should use the published 0.1.1 release here.

Install Dashboard

Installing the latest release

  1. Run the kubectl apply command to install the Tekton Dashboard and its dependencies:

    kubectl apply --filename https://github.com/tektoncd/dashboard/releases/download/v0.2.0/release.yaml
    

    (Previous versions will be available at previous/$VERSION_NUMBER, e.g. https://storage.googleapis.com/tekton-releases/previous/v0.1.1/release.yaml.)

  2. Run the kubectl get command to monitor the Tekton Dashboard component until all of the components show a STATUS of Running:

    kubectl get pods --namespace tekton-pipelines
    

    Tip: Instead of running the kubectl get command multiple times, you can append the --watch flag to view the component's status updates in real time. Use CTRL + C to exit watch mode.

You are now ready to use the Tekton Dashboard, optionally with the Tekton Webhooks Extension (see our Getting Started guide).

Nightly builds

The Tekton Dashboard has a hosted image of the latest builds located at gcr.io/tekton-nightly/dashboard:latest To install the Dashboard using this image:

kubectl apply -f config/release/gcr-tekton-dashboard.yaml

Alternatively, the dashboard can be installed through the same GitHub release asset:

curl -L https://github.com/tektoncd/dashboard/releases/download/v0/gcr-tekton-dashboard.yaml | kubectl apply -f -

Development installation of the Dashboard uses ko:

$ docker login
$ export KO_DOCKER_REPO=docker.io/<mydockername>
$ ./install-dev.sh

The install-dev.sh script will build and push an image of the Tekton Dashboard to the Docker registry which you are logged into. Any Docker registry will do, but in this case it will push to Dockerhub. It will also apply the Pipeline0 definition and task: this allows you to import Tekton resources from Git repositories. It will also build the static web content using npm scripts.

Optionally set up the Ingress endpoint

An Ingress definition is provided in the ingress directory, and this can optionally be installed and configured. If you wish to access the Tekton Dashboard, for example on your laptop that has a visible IP address, you can use the freely available nip.io service. A worked example follows.

Create the Ingress:

kubectl apply ingress/basic-dashboard-ingress.yaml

Retrieve a publicly available IP address (in this case running on a laptop connected to a public network):

ip=$(ifconfig | grep netmask | sed -n 2p | cut -d ' ' -f2)

Now modify the host property for our Ingress to use the IP obtained above, with the tekton-dashboard prefix and the .nip.io suffix:

kubectl patch ing/tekton-dashboard -n tekton-pipelines --type=json -p='[{"op": "replace", "path": "/spec/rules/0/host", "value": '""tekton-dashboard.${ip}.nip.io""}]

You can then access the Tekton Dashboard at tekton-dashboard.${ip}.nip.io. This endpoint is also returned via the "get Tekton Dashboard Ingress" API.

Install on OpenShift

  1. Assuming you want to install the Dashboard into the tekton-pipelines namespace:

    kubectl apply --filename https://github.com/tektoncd/dashboard/releases/download/v0.2.0/openshift-tekton-dashboard.yaml --validate=false
    
  2. Access the dashboard by determining its route with kubectl get route tekton-dashboard -n tekton-pipelines This has been tested with the following OpenShift security settings (from oc get scc):

    NAME               PRIV      CAPS      SELINUX     RUNASUSER          FSGROUP     SUPGROUP    PRIORITY   READONLYROOTFS   VOLUMES
    anyuid             false     []        MustRunAs   RunAsAny           RunAsAny    RunAsAny    10         false            [configMap downwardAPI emptyDir persistentVolumeClaim projected secret]
    hostaccess         false     []        MustRunAs   MustRunAsRange     MustRunAs   RunAsAny    <none>     false            [configMap downwardAPI emptyDir hostPath persistentVolumeClaim projected secret]
    hostmount-anyuid   false     []        MustRunAs   RunAsAny           RunAsAny    RunAsAny    <none>     false            [configMap downwardAPI emptyDir hostPath nfs persistentVolumeClaim projected secret]
    hostnetwork        false     []        MustRunAs   MustRunAsRange     MustRunAs   MustRunAs   <none>     false            [configMap downwardAPI emptyDir persistentVolumeClaim projected secret]
    node-exporter      false     []        RunAsAny    RunAsAny           RunAsAny    RunAsAny    <none>     false            [*]
    nonroot            false     []        MustRunAs   MustRunAsNonRoot   RunAsAny    RunAsAny    <none>     false            [configMap downwardAPI emptyDir persistentVolumeClaim projected secret]
    privileged         true      [*]       RunAsAny    RunAsAny           RunAsAny    RunAsAny    <none>     false            [*]
    restricted         false     []        MustRunAs   MustRunAsRange     MustRunAs   RunAsAny    <none>     false            [configMap downwardAPI emptyDir persistentVolumeClaim projected secret]
    

Enable TLS for dashboard access via Ingress

Will only work in the cluster node

Pre-requisites:

  1. Tekton pipelines & dashboard installed
  2. dashboard repo cloned

Steps:

  1. Edit ingress/ingress-https-setup.sh with all the necessary info
  2. Run the script from within the dashboard repo
  3. Access dashboard via https://tekton-dashboard.<IP_ADDRESS>.nip.io

Install on Minishift

Either follow the instructions for OpenShift above or use the operator install as per the instructions below.

  1. Install tektoncd-pipeline-operator
  2. Checkout the repository

If you want to install the Dashboard into the tekton-pipelines namespace:

  • Install the Dashboard ./minishift-install-dashboard.sh

If you want to install the Dashboard into any other namespace:

  • Install the Dashboard ./minishift-install-dashboard.sh -n {NAMESPACE}
  1. Wait until the pod tekton-dashboard-1 is running in the namespace the Dashboard is installed into

Accessing the Dashboard on Minishift

The Dashboard can be accessed by running kubectl --namespace tekton-pipelines port-forward svc/tekton-dashboard 9097:9097 If installed into a namespace other than tekton-pipelines then the Dashboard can be accessed by running kubectl --namespace $NAMESPACE port-forward svc/tekton-dashboard 9097:9097 You can access the web UI at http://localhost:9097/

Uninstalling the Dashboard on Minishift

The Dashboard can be uninstalled on Minishift by running the command ./minishift-delete-dashboard.sh Use -n {NAMESPACE} on the end of the command if installed into a namespace other than tekton-pipelines

Accessing the Dashboard

The Dashboard can be accessed through its ClusterIP Service by running kubectl proxy. Assuming tekton-pipelines is the install namespace for the Dashboard, you can access the web UI at localhost:8001/api/v1/namespaces/tekton-pipelines/services/tekton-dashboard:http/proxy/.

An alternative way to access the Dashboard is using kubectl port-forward e.g. if you installed the Tekton Dashboard into the tekton-pipelines namespace (which is the default) you can access the Dashboard with kubectl --namespace tekton-pipelines port-forward svc/tekton-dashboard 9097:9097 and then just open localhost:9097.

Troubleshooting

Keep in mind that When running your Tekton Pipelines, if you see a fatal: could not read Username for *GitHub repository*: No such device or address message in your failing Task logs, this indicates there is no tekton.dev/git annotated GitHub secret in use by the ServiceAccount that launched this PipelineRun. It is advised to create one through the Tekton Dashboard. The annotation will be added and the specified ServiceAccount will be patched.

Want to contribute

We are so excited to have you!