dashboard

by eddycharly

Helm chartv0.6.4App v0.6.1.3

This chart bootstraps installation of [tekton dashboard](https://github.com/tektoncd/dashboard).

About this chart

Tekton Dashboard Helm Chart

The Tekton Dashboard is a general purpose, web-based UI for Tekton Pipelines.

This helm chart is a lightweight way to deploy, configure and run Tekton Dashboard on a k8s cluster.

Requirements

  • Helm v2 or v3
  • Kubernetes >= 1.15 (it's driven by the version of Tekton Pipelines installed)
  • Depending on the configuration you will need admin access to be able to install the CRDs
  • Tekton Pipelines deployed in the target cluster (see Tekton Pipelines Helm Chart)

Description

This chart deploys the Tekton Dashboard. It should run on k8s as well as OpenShift.

It includes various options to create rbac resources, control pods placement and resources, etc...

All options are documented in the Chart Values section.

Various configuration examples are document in the Try it out section.

Installing

  • Add the Tekton helm charts repo
helm repo add eddycharly https://eddycharly.github.io/tekton-helm
  • Install (or upgrade)
# This will install Tekton Dashboard in the tekton namespace (with a my-dashboard release name)

# Helm v2
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard
# Helm v3
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard
  • Install (or upgrade) without CRDs (assuming CRDs have already been deployed by an admin)
# This will install Tekton Dashboard in the tekton namespace (with a my-dashboard release name)

# Helm v2
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard --no-crd-hook
# Helm v3
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard --skip-crds
  • Install (or upgrade) without creating RBAC resources (assuming RBAC resources have been created by an admin)
# This will install Tekton Dashboard in the tekton namespace (with a my-dashboard release name)

# Helm v2
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard --set rbac.create=false --set rbac.serviceAccountName=svcAccountName
# Helm v3
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard --set rbac.create=false --set rbac.serviceAccountName=svcAccountName

Look below for the list of all available options and their corresponding description.

Uninstalling

To uninstall the chart, simply delete the release.

# This will uninstall Tekton Dashboard in the tekton namespace (assuming a my-dashboard release name)

# Helm v2
helm delete --purge my-dashboard
# Helm v3
helm uninstall my-dashboard --namespace tekton

Version

Current chart version is 0.6.4

Chart Values

KeyTypeDescriptionDefault
dashboard.affinityobjectDashboard affinity rules{}
dashboard.annotationsobjectDashboard pod annotationsSee values.yaml
dashboard.image.pullPolicystringDashboard docker image pull policy"IfNotPresent"
dashboard.image.repositorystringDashboard docker image repository"gcr.io/tekton-releases/github.com/tektoncd/dashboard/cmd/dashboard"
dashboard.image.tagstringDashboard docker image tagnil
dashboard.ingress.annotationsobjectDashboard ingress annotations{}
dashboard.ingress.enabledboolEnable dashboard ingressfalse
dashboard.ingress.hostslistDashboard ingress host names[]
dashboard.nodeSelectorobjectDashboard node selector{}
dashboard.readOnlyboolDrives running the dashboard in read only modefalse
dashboard.resourcesobjectDashboard resource limits and requests{}
dashboard.securityContextobjectDashboard pods security context{}
dashboard.service.annotationsobjectDashboard service annotations{}
dashboard.service.portintDashboard service port9097
dashboard.service.portNamestring"http"
dashboard.service.typestringDashboard service type"ClusterIP"
dashboard.tolerationslistDashboard tolerations[]
extensionslistKubernetes resources extensions listSee values.yaml
fullnameOverridestringFully override resource generated names""
nameOverridestringPartially override resource generated names""
rbac.createboolCreate RBAC resourcestrue
rbac.serviceAccountNamestringName of the service account to use when rbac.create is falsenil
versionstringTekton dashboard version used to add labels on deployments, pods and servicesnil

You can look directly at the values.yaml file to look at the options and their default values.

Try it out

This chart should deploy correctly with default values.

You will find examples below of how to customize the deployment of a release with various options. The list of examples is by no means exhaustive, it tries to cover the most used cases.

If you feel something is incomplete, missing or incorrect please open an issue and we'll do our best to improve this documentation.

Deploy Tekton Pipelines

Before deploying Tekton Dashboard you should have Tekton Pipelines deployed.

You can use Helm to deploy Tekton Pipelines on you cluster, see Installing instructions.

Configure pod resources

Create a yaml file called pod-resources.yaml looking like this (the name doesn't really matters):

dashboard:
  resources:
    requests:
      cpu: 0.5
      memory: 128m
    limits:
      cpu: 1
      memory: 256m

Use the previously created file to pass the values to helm:

# This will install Tekton Dashboard in the tekton namespace (with a my-dashboard release name)

# Helm v2
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard --values pod-resources.yaml
# Helm v3
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard --values pod-resources.yaml

Deploy a read only dashboard

# This will install Tekton Dashboard in the tekton namespace (with a my-dashboard release name)

# Helm v2
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard --set dashboard.readOnly=true
# Helm v3
helm upgrade --install my-dashboard --namespace tekton eddycharly/dashboard --set dashboard.readOnly=true

Deploy dashboard with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dashboard on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdashboard is pinned at v0.6.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply