Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-edouard.breteche authored and tekton-robot committed Apr 10, 2020
1 parent e3a9975 commit c2bdeee
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 6 deletions.
58 changes: 56 additions & 2 deletions helm/dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ This helm chart is a lightweight way to deploy, configure and run Tekton Dashboa
* [Helm](https://helm.sh/) 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](../pipeline/README.md))

## Description

TODO
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](#chart-values) section.

Various configuration examples are document in the [Try it out](#try-it-out) section.

## Installing

Expand Down Expand Up @@ -109,7 +116,54 @@ You can look directly at the [values.yaml](./values.yaml) file to look at the op

## Try it out

TODO
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](../pipeline/README.md#installing) instructions.

### Configure pod resources

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

```yaml
dashboard:
resources:
requests:
cpu: 0.5
memory: 128m
limits:
cpu: 1
memory: 256m
```
Use the previously created file to pass the values to helm:
```bash
# This will install Tekton Dashboard in the tekton namespace (with a my-dashboard release name)

# Helm v2
helm upgrade --install my-dashboard --namespace tekton tekton/dashboard --values pod-resources.yaml
# Helm v3
helm upgrade --install my-dashboard --namespace tekton tekton/dashboard --values pod-resources.yaml --set customResourceDefinitions.create=false
```

### Deploy a read only dashboard

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

# Helm v2
helm upgrade --install my-dashboard --namespace tekton tekton/dashboard --set dashboard.readOnly=true
# Helm v3
helm upgrade --install my-dashboard --namespace tekton tekton/dashboard --set dashboard.readOnly=true --set customResourceDefinitions.create=false
```

---

Expand Down
58 changes: 56 additions & 2 deletions helm/dashboard/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@ This helm chart is a lightweight way to deploy, configure and run Tekton Dashboa
* [Helm](https://helm.sh/) 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](../pipeline/README.md))

## Description

TODO
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](#chart-values) section.

Various configuration examples are document in the [Try it out](#try-it-out) section.

## Installing

Expand Down Expand Up @@ -90,7 +97,54 @@ You can look directly at the [values.yaml](./values.yaml) file to look at the op

## Try it out

TODO
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](../pipeline/README.md#installing) instructions.

### Configure pod resources

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

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

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

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

# Helm v2
helm upgrade --install my-dashboard --namespace tekton tekton/dashboard --values pod-resources.yaml
# Helm v3
helm upgrade --install my-dashboard --namespace tekton tekton/dashboard --values pod-resources.yaml --set customResourceDefinitions.create=false
```

### Deploy a read only dashboard

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

# Helm v2
helm upgrade --install my-dashboard --namespace tekton tekton/dashboard --set dashboard.readOnly=true
# Helm v3
helm upgrade --install my-dashboard --namespace tekton tekton/dashboard --set dashboard.readOnly=true --set customResourceDefinitions.create=false
```

---

Expand Down
2 changes: 1 addition & 1 deletion helm/pipeline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Find below the list of supported config maps and their corresponding config key:

Please look in [values.yaml](./values.yaml) to find the default values for each config map.

### Configure Pod Resources
### Configure pod resources

Controller and Webhook pod resources are configured independently.

Expand Down
2 changes: 1 addition & 1 deletion helm/pipeline/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Find below the list of supported config maps and their corresponding config key:

Please look in [values.yaml](./values.yaml) to find the default values for each config map.

### Configure Pod Resources
### Configure pod resources

Controller and Webhook pod resources are configured independently.

Expand Down

0 comments on commit c2bdeee

Please sign in to comment.