$ oc edit servicecatalogapiservers
The service catalog is deprecated in OpenShift Container Platform 4. Equivalent and better functionality is present in the Operator Framework and Operator Lifecycle Manager (OLM). |
When developing microservices-based applications to run on cloud native platforms, there are many ways to provision different resources and share their coordinates, credentials, and configuration, depending on the service provider and the platform.
To give developers a more seamless experience, OpenShift Container Platform includes a service catalog, an implementation of the Open Service Broker API (OSB API) for Kubernetes. This allows users to connect any of their applications deployed in OpenShift Container Platform to a wide variety of service brokers.
The service catalog allows cluster administrators to integrate multiple platforms using a single API specification. The OpenShift Container Platform web console displays the cluster service classes offered by service brokers in the service catalog, allowing users to discover and instantiate those services for use with their applications.
As a result, service users benefit from ease and consistency of use across different types of services from different providers, while service providers benefit from having one integration point that gives them access to multiple platforms.
The service catalog is not installed by default in OpenShift Container Platform 4.
If you plan on using any of the services from the OpenShift Ansible Broker or Template Service Broker, you must install the service catalog by completing the following steps.
The custom resources for the service catalog’s API server and controller manager
are created by default in OpenShift Container Platform, but initially have a
managementState
of Removed
. To install the service catalog, you must change
the managementState
for these resources to Managed
.
Enable the service catalog API server.
Use the following command to edit the service catalog API server resource.
$ oc edit servicecatalogapiservers
Under spec
, set the managementState
field to Managed
:
spec:
logLevel: Normal
managementState: Managed
Save the file to apply the changes.
The Operator installs the service catalog API server component. As of
OpenShift Container Platform 4, this component is installed into the
openshift-service-catalog-apiserver
namespace.
Enable the service catalog controller manager.
Use the following command to edit the service catalog controller manager resource.
$ oc edit servicecatalogcontrollermanagers
Under spec
, set the managementState
field to Managed
:
spec:
logLevel: Normal
managementState: Managed
Save the file to apply the changes.
The Operator installs the service catalog controller manager component. As of
OpenShift Container Platform 4, this component is installed into the
openshift-service-catalog-controller-manager
namespace.