How do I install OLM?

The OLM is installable on Kubernetes clusters. For the following instructions to work, you must have a Kubernetes cluster running and the kubectl is able to communicate with the API server of that cluster. For more information about configuring kubectl, please visit here.

Note: The OLM can be tested locally with a minikube cluster, currently supporting version 1.16.0. For more information see Makefile.

Install Released OLM

For installing release versions of OLM, for example version 0.12.0, you can use the following command:

export olm_release=0.12.0
kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/${olm_release}/crds.yaml
kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/${olm_release}/olm.yaml

Learn more about available releases here.

Install From Git Repository Master Branch

You can install OLM from the master branch of the operator-framework/operator-lifecycle-manager repository with the following:

kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/crds.yaml
kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/olm.yaml

You can also clone the entire git repository and use the Makefile for deploying OLM locally on minikube for development purposes.

git clone https://github.com/operator-framework/operator-lifecycle-manager.git
cd operator-lifecycle-manager
make run-local

Verify OLM Install

You can verify the necessary CustomResourceDefinitions are created from applying the crds.yaml file with the following:

$ kubectl get crd
NAME                                          CREATED AT
catalogsources.operators.coreos.com           2019-10-21T18:15:27Z
clusterserviceversions.operators.coreos.com   2019-10-21T18:15:27Z
installplans.operators.coreos.com             2019-10-21T18:15:27Z
operatorgroups.operators.coreos.com           2019-10-21T18:15:27Z
subscriptions.operators.coreos.com            2019-10-21T18:15:27Z

You can also visualize OLM deployments from applying olm.yaml file with the following:

$ kubectl get deploy -n olm
catalog-operator   1/1     1            1           5m52s
olm-operator       1/1     1            1           5m52s
packageserver      2/2     2            2           5m43s