Getting the operator market place in minishift/openshift Clone the official Operator Lifecycle Manager repository.
git clone https://github.com/operator-framework/operator-lifecycle-manager
|
Install Operator Lifecycle Manager v0.7.2. We will install each manifest at a time so we can see the individual components that make up OLM. Begin by creating the openshift-operator-lifecycle-manager namespace.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_00-namespace.yaml | oc create -f -
|
Create the olm-operator Service Account, ClusterRole, and ClusterRoleBinding.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_01-olm-operator.serviceaccount.yaml | oc create -f -
|
Create the kind: ClusterServiceVersion CRD.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_02-clusterserviceversion.crd.yaml | oc create -f -
|
Create the kind: InstallPlan CRD.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_03-installplan.crd.yaml | oc create -f -
|
Create the kind: Subscription CRD.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_04-subscription.crd.yaml | oc create -f -
|
Create the kind: Catalogsource CRD.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_05-catalogsource.crd.yaml | oc create -f -
|
Verify all four OLM CRDs are present. oc get crds Create the rh-operators CatalogSource ConfigMap.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_06-rh-operators.configmap.yaml | oc create -f -
|
Create the rh-operators CatalogSource.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_09-rh-operators.catalogsource.yaml | oc create -f -
|
Create the olm-operator Operator.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_10-olm-operator.deployment.yaml | oc create -f -
|
Create the catalog-operator Operator.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_11-catalog-operator.deployment.yaml | oc create -f -
|
Verify the two OLM operators are running property.
oc -n openshift-operator-lifecycle-manager get pods
|
Create the Aggregate view and edit ClusterRoles.
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_12-aggregated.clusterrole.yaml | oc create -f -
|
Create the package-server Deployment and Service
cat operator-lifecycle-manager/deploy/okd/manifests/0.7.2/0000_30_13-packageserver.yaml | oc create -f -
|
Verify the package-server is running properly.
oc -n openshift-operator-lifecycle-manager get pods
|
Verify the new openshift-operator-lifecycle-manager namespace has been created along with the three OLM operators: catalog, olm, and package.
oc get pods --all-namespaces
|
The local console proxy utilizes the system:serviceaccount:kube-system:default Service Account to access all resources. Grant this Service Account cluster-admin access and refresh the UI.
oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:kube-system:default
|
Serve up the Operator-centric OpenShift UI console locally.
./operator-lifecycle-manager/scripts/run_console_local.sh
|
You should be able to acces the UI at http://localhost:9000. |