-
Notifications
You must be signed in to change notification settings - Fork 27
/
README.md
86 lines (66 loc) · 5.42 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Devfile Registry
## Chart details
Installing this chart will deploy an OCI-based devfile registry on to your Kubernetes cluster, exposed over a single ingress endpoint.
## Prerequisites
- A Kubernetes or OpenShift cluster.
- Helm CLI, version 3 or higher
- Knowledge of your cluster's ingress domain
## Installing the Devfile Registry on Kubernetes
Run the following command to install the devfile registry on to your Kubernetes Cluster:
```
helm install <release-name> <path-to-chart> --set global.ingress.domain=<ingress-domain>
```
E.g. if your cluster's ingress domain is 192.168.1.0.nip.io, you would run:
```
helm install devfile-registry deploy/chart/devfile-registry --set global.ingress.domain=192.168.1.0.nip.io
```
## Installing the Devfile Registry on OpenShift
If you're installing on OpenShift, you need to set `global.isOpenShift` to true, for example:
```
helm install devfile-registry deploy/chart/devfile-registry --set global.isOpenShift=true
```
or, if you want to install a specific devfile index image, you can run:
```
helm install devfile-registry deploy/chart/devfile-registry --set global.isOpenShift=true --set devfileIndex.image=quay.io/myuser/devfile-index --set devfileIndex.tag=latest
```
## Updating the Devfile Registry
If you wish to update the devfile registry (such as to add change the devfile index image or change some configurations), you can run the following command:
```bash
helm upgrade <release-name> <path-to-chart> [--set options]
```
For example, updating the devfile index image of the devfile registry `my-registry` might look like:
```bash
helm upgrade my-registry deploy/chart/devfile-registry --set devfileIndex.image=docker.io/myuser/devfile-index --set devfileIndex.tag=2.0
```
Alternatively to using `--set`, you can change the fields in `values.yaml` and then run the `helm upgrade` command.
## Uninstalling the Devfile Registry
To uninstall or delete the devfile registry Helm release, run:
```bash
helm uninstall <release-name>
```
## Configuration
The following fields can be configured in the Helm chart, either via the `values.yaml` file or with the `--values` flag in the `helm` CLI.
| Parameter | Description | Default |
| ----------------------- | --------------------------------------------- | ---------------------------------------------------------- |
| `global.ingress.domain` | Ingress domain for the devfile registry | **MUST BE SET BY USER** |
| `global.ingress.class` | Ingress class for the devfile registry | `nginx` |
| `global.ingress.secretName` | Name of an existing tls secret if using TLS | ` '' ` |
| `global.isOpenShift ` | Set to true to use OpenShift routes instead of ingress | `false` |
| `global.tlsEnabled` | Set to true to use the devfile registry with TLS | `false` |
| `global.headless` | Set to true to run in headless mode (does not expect attached registry viewer) | `false` |
| `devfileIndex.image` | Image used for the devfile index image | `quay.io/devfile/devfile-index` |
| `devfileIndex.tag` | Tag for devfile index image | `next` |
| `devfileIndex.imagePullpolicy` | Image pull policy for devfile index image | `Always` |
| `devfileIndex.memoryLimit` | Memory for devfile index container | `256Mi` |
| `registryViewer.image` | Image used for the registry viewer image | `quay.io/devfile/registry-viewer` |
| `registryViewer.tag` | Tag for registry viewer image | `next` |
| `registryViewer.imagePullpolicy` | Image pull policy for registry viewer image | `Always` |
| `registryViewer.memoryLimit` | Memory for registry viewer container | `256Mi` |
| `ociRegistry.image` | Image used for the oci registry image | `quay.io/devfile/oci-registry` |
| `ociRegistry.tag` | Tag for oci registry image | `next` |
| `ociRegistry.imagePullpolicy` | Image pull policy for oci registry image | `Always` |
| `ociRegistry.memoryLimit` | Memory for oci registry container | `256Mi` |
| `persistence.enabled` | Enable persistent storage for the registry | `true` |
| `persistence.size` | The size of the persistent volume (if-enabled) | `1Gi` |
| `telemetry.key` | The write key for the Segment instance | **MUST BE SET BY USER** |
| `telemetry.registryViewerWriteKey` | The write key for the registry viewer | **MUST BE SET BY USER** |