Deploying a devfile registry
Deploy a devfile registry to allow access to the devfile stacks that provide templates for containerized development.
To use the devfile Operator to deploy a devfile registry, use:
-
Operator Lifecycle Manager (OLM)
-
Devfile registry Helm chart
-
A built devfile registry container image. To build your own devfile registry, see Building a custom devfile registry.
-
If you do not have publicly signed certificates for your cluster, disable TLS for the devfile registry so that you can use the devfile registry with
odo
.
Deploying a devfile registry with Operator Lifecycle Manager
When you have Operator Lifecycle Manager (OLM) installed on your cluster, use the devfile registry Operator to install and deploy a devfile registry.
-
Install the devfile registry Operator:
-
Install OLM.
-
Download and install the operator-sdk CLI.
-
Run the
operator-sdk
command to install the devfile registry Operator:$ operator-sdk run bundle quay.io/devfile/registry-operator-bundle:next
-
-
Deploy the devfile registry:
-
On an OpenShift cluster, run:
$ cat <<EOF | oc apply -f - apiVersion: registry.devfile.io/v1alpha1 kind: DevfileRegistry metadata: name: devfile-registry spec: devfileIndexImage: quay.io/devfile/devfile-index:next EOF
-
On a Kubernetes cluster, run:
$ cat <<EOF | kubectl apply -f - apiVersion: registry.devfile.io/v1alpha1 kind: DevfileRegistry metadata: name: devfile-registry spec: devfileIndexImage: quay.io/devfile/devfile-index:next tls: enabled: false k8s: ingressDomain: $INGRESS_DOMAIN EOF
-
Regardless of the cluster, if you are deploying your own devfile registry, change the |
-
For information on installing the devfile registry Operator, see devfile registry Operator.
-
For information on installing OLM on your Kubernetes cluster, see the OLM quick start guide.
Deploying a devfile registry with Helm chart
If the Operator Lifecycle Manager (OLM) is not installed on your Kubernetes cluster, use the devfile registry Helm chart in order to use the devfile registry Operator to deploy the devfile registry.
-
Clone the repository containing the Helm chart:
$ git clone https://github.com/devfile/registry-support
-
Navigate to the
deploy/chart/devfile-registry
directory. -
Open the
values.yaml
file in an editor and make the following changes:-
Set
devfileIndex.image
to the image containing your devfile stacks. -
Set
devfileIndex.tag
to the image tag for your devfile index image. -
If installing on Kubernetes, set
global.Ingress.domain
to the Ingress domain of your cluster. -
If installing on OpenShift, set
global.isOpenShift
totrue
.
-
-
Run
helm install devfile-registry ./
to install the Helm chart.
-
For information on the devfile registry Helm chart, see the registry Helm chart Git repository readme.