Skip to content

Commit 8f58475

Browse files
authored
Merge pull request #14067 from bergerhoffer/OSDOCS-176-update-installing-sb
OSDOCS-176: Updates to service catalog install
2 parents e706077 + a92d025 commit 8f58475

9 files changed

+156
-48
lines changed

applications/service_brokers/installing-ansible-service-broker.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ Operator Life Cycle Manager (OLM).
1313

1414
.Prerequisites
1515

16-
* xref:../../applications/service_brokers/installing-service-catalog.adoc#sb-enable-service-catalog-sb-installing-service-catalog[Install the service catalog]
16+
* xref:../../applications/service_brokers/installing-service-catalog.adoc#sb-install-service-catalog-sb-installing-service-catalog[Install the service catalog]
17+
18+
// About the {asb-name}
19+
include::modules/modules/sb-about-ansible-service-broker.adoc[leveloffset=+1]
1720

1821
// Installing the {asb-name} Operator
1922
include::modules/sb-install-asb-operator.adoc[leveloffset=+1]

applications/service_brokers/installing-service-catalog.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ toc::[]
88
IMPORTANT: The service catalog is deprecated in this release. Equivalent and better functionality is present in the Operator Framework and
99
Operator Life Cycle Manager (OLM).
1010

11-
// Enabling service catalog
11+
// About the service catalog
12+
include::modules/modules/sb-about-service-catalog.adoc[leveloffset=+1]
13+
14+
// Installing service catalog
1215
include::modules/modules/sb-install-service-catalog.adoc[leveloffset=+1]

applications/service_brokers/installing-template-service-broker.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ Operator Life Cycle Manager (OLM).
1313

1414
.Prerequisites
1515

16-
* xref:../../applications/service_brokers/installing-service-catalog.adoc#sb-enable-service-catalog-sb-installing-service-catalog[Install the service catalog]
16+
* xref:../../applications/service_brokers/installing-service-catalog.adoc#sb-install-service-catalog-sb-installing-service-catalog[Install the service catalog]
17+
18+
// About the service template service broker
19+
include::modules/modules/sb-about-template-service-broker.adoc[leveloffset=+1]
1720

1821
// Installing the template service broker Operator
1922
include::modules/sb-install-tsb-operator.adoc[leveloffset=+1]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * applications/service_brokers/installing-ansible-service-broker.adoc
4+
5+
[id='sb-about-ansible-service-broker-{context}']
6+
= About the {asb-name}
7+
8+
The _{asb-name}_ is an implementation of the Open Service Broker (OSB) API that
9+
manages applications defined by _Ansible playbook bundles_ (APBs). APBs provide
10+
a method for defining and distributing container applications in
11+
{product-title}, consisting of a bundle of Ansible playbooks built into a
12+
container image with an Ansible runtime. APBs leverage Ansible to create a
13+
standard mechanism for automating complex deployments.
14+
15+
The {asb-name} follows this basic workflow:
16+
17+
. A user requests the list of available applications from the service catalog
18+
using the {product-title} web console.
19+
. The service catalog requests the {asb-name} for available applications.
20+
. The {asb-name} communicates with a defined container image registry to learn
21+
which APBs are available.
22+
. The user issues a request to provision a specific APB.
23+
. The {asb-name} fulfills the user's provision request by invoking the provision
24+
method on the APB.
25+
26+
The {asb-name} is not installed by default in {product-title} 4.
27+
28+
[id='sb-ansible-playbook-bundles-{context}']
29+
== Ansible playbook bundles
30+
31+
An Ansible playbook bundle (APB) is a lightweight application definition that
32+
allows you to leverage existing investment in Ansible roles and playbooks.
33+
34+
APBs use a simple directory with named playbooks to perform OSB API actions,
35+
such as provision and bind. Metadata defined in the `apb.yml` file contains a
36+
list of required and optional parameters for use during deployment.
37+
38+
.Additional resources
39+
40+
* link:https://github.com/automationbroker/apb[Ansible playbook bundle repository]

modules/sb-about-service-catalog.adoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * applications/service_brokers/installing-service-catalog.adoc
4+
5+
[id='sb-about-service-catalog-{context}']
6+
= About the service catalog
7+
8+
When developing microservices-based applications to run on cloud native
9+
platforms, there are many ways to provision different resources and share their
10+
coordinates, credentials, and configuration, depending on the service
11+
provider and the platform.
12+
13+
To give developers a more seamless experience, {product-title} includes a
14+
_service catalog_, an implementation of the
15+
link:https://openservicebrokerapi.org/[Open Service Broker API] (OSB API) for
16+
Kubernetes. This allows users to connect any of their applications deployed in
17+
{product-title} to a wide variety of service brokers.
18+
19+
The service catalog allows cluster administrators to integrate multiple
20+
platforms using a single API specification. The {product-title} web console
21+
displays the cluster service classes offered by service brokers in the service
22+
catalog, allowing users to discover and instantiate those services for use with
23+
their applications.
24+
25+
As a result, service users benefit from ease and consistency of use across
26+
different types of services from different providers, while service providers
27+
benefit from having one integration point that gives them access to multiple
28+
platforms.
29+
30+
The service catalog is not installed by default in {product-title} 4.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * applications/service_brokers/installing-template-service-broker.adoc
4+
5+
[id='sb-about-template-service-broker-{context}']
6+
= About the template service broker
7+
8+
The _template service broker_ gives the service catalog visibility into the
9+
default Instant App and Quickstart templates that have shipped with
10+
{product-title} since its initial release. The template service broker can also
11+
make available as a service anything for which an {product-title} template has
12+
been written, whether provided by Red Hat, a cluster administrator or user, or a
13+
third party vendor.
14+
15+
By default, the template service broker shows the objects that are globally
16+
available from the `openshift` project. It can also be configured to watch any
17+
other project that a cluster administrator chooses.
18+
19+
The template service broker is not installed by default in {product-title} 4.

modules/sb-install-service-catalog.adoc

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,47 @@
22
//
33
// * applications/service_brokers/installing-service-catalog.adoc
44

5-
[id='sb-enable-service-catalog-{context}']
6-
= Enabling service catalog
5+
[id='sb-install-service-catalog-{context}']
6+
= Installing service catalog
77

8-
Service catalog is included by default in {product-title}, but you must you must
9-
enable it using the procedure below.
8+
You must install service catalog by completing the following steps if you plan on using any of the services from the {asb-name} or template service broker.
109

1110
.Procedure
1211

13-
. Create the service catalog API server.
14-
.. Create a file named `svcat-api-server.yaml` with the following contents.
12+
. Enable the service catalog API server.
13+
.. Use the following command to edit the service catalog API server resource.
1514
+
16-
[source,yaml]
1715
----
18-
apiVersion: operator.openshift.io/v1
19-
kind: ServiceCatalogAPIServer
20-
metadata:
21-
name: cluster
22-
spec:
23-
logLevel: "Normal"
24-
managementState: Managed
16+
$ oc edit servicecatalogapiservers
2517
----
26-
.. Use the following command to create the service catalog API server.
18+
.. Under `spec`, set the `managementState` field to `Managed`:
2719
+
2820
----
29-
$ oc create -f svcat-api-server.yaml
21+
spec:
22+
logLevel: Normal
23+
managementState: Managed
3024
----
25+
.. Save the file to apply the changes.
3126
+
32-
The service catalog API server is now installed into the `kube-service-catalog`
33-
namespace.
27+
The Operator installs the service catalog API server component. As of
28+
{product-title} 4, this component is installed into the
29+
`openshift-service-catalog-apiserver` namespace.
3430

35-
. Create the service catalog controller manager.
36-
.. Create a file named `svcat-controller-manager.yaml` with the following
37-
contents.
31+
. Enable the service catalog controller manager.
32+
.. Use the following command to edit the service catalog controller manager resource.
3833
+
39-
[source,yaml]
4034
----
41-
apiVersion: operator.openshift.io/v1
42-
kind: ServiceCatalogControllerManager
43-
metadata:
44-
name: cluster
45-
spec:
46-
logLevel: "Normal"
47-
managementState: Managed
35+
$ oc edit servicecatalogcontrollermanagers
4836
----
49-
.. Use the following command to create the service catalog controller manager.
37+
.. Under `spec`, set the `managementState` field to `Managed`:
5038
+
5139
----
52-
$ oc create -f svcat-controller-manager.yaml
40+
spec:
41+
logLevel: Normal
42+
managementState: Managed
5343
----
44+
.. Save the file to apply the changes.
5445
+
55-
The service catalog controller manager is now installed into the
56-
`kube-service-catalog-controller-manager` namespace.
46+
The Operator installs the service catalog controller manager component. As of
47+
{product-title} 4, this component is installed into the
48+
`openshift-service-catalog-controller-manager` namespace.

modules/sb-start-asb.adoc

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
[id='sb-start-asb-{context}']
66
= Starting the {asb-name}
77

8-
Once you have installed the {asb-name} Operator, you can start the {asb-name} using the following procedure.
8+
After you have installed the {asb-name} Operator, you can start the {asb-name}
9+
using the following procedure.
910

1011
.Prerequisites
1112

@@ -18,12 +19,21 @@ Once you have installed the {asb-name} Operator, you can start the {asb-name} us
1819
. Select the *OpenShift Ansible Service Broker Operator*.
1920
. Under *Provided APIs*, click *Create New* for *Automation Broker*.
2021
. Review the default YAML and click *Create*.
21-
22-
Once the {asb-name} has started, you can view the available service bundles by navigating to *Catalog* -> *Developer Catalog* and selecting the *Service Class* checkbox. Note that it may take a few minutes for the {asb-name} to start and the service bundles to be available.
23-
22+
. Verify that the {asb-name} has started.
23+
+
24+
After the {asb-name} has started, you can view the available service bundles by navigating to *Catalog* -> *Developer Catalog* and selecting the *Service Class* checkbox. Note that it may take a few minutes for the {asb-name} to start and the service bundles to be available.
25+
+
2426
If you do not yet see these Service classes, you can check the status of the following items:
2527

2628
* {asb-name} Pod status
2729
** From the *Workloads* -> *Pods* page for the *ansible-service-broker* project, verify that the Pod that starts with `asb-` has a status of *Running* and readiness of *Ready*.
30+
31+
* Cluster service broker status
32+
** From the *Catalog* -> *Broker Management* -> *Service Brokers* page, verify
33+
that the *ansible-service-broker* service broker has a status of *Ready*.
34+
2835
* Service catalog controller manager Pod logs
29-
** From the *Workloads* -> *Pods* page for the *kube-service-catalog-controller-manager* project, review the logs for each of the Pods and verify that you see a log entry with the message `Successfully fetched catalog entries from broker`.
36+
** From the *Workloads* -> *Pods* page for the
37+
*openshift-service-catalog-controller-manager* project, review the logs for
38+
each of the Pods and verify that you see a log entry with the message
39+
`Successfully fetched catalog entries from broker`.

modules/sb-start-tsb.adoc

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[id='sb-start-tsb-{context}']
66
= Starting the template service broker
77

8-
Once you have installed the template service broker Operator, you can start the
8+
After you have installed the template service broker Operator, you can start the
99
template service broker using the following procedure.
1010

1111
.Prerequisites
@@ -19,20 +19,28 @@ template service broker using the following procedure.
1919
. Select the *Template Service Broker Operator*.
2020
. Under *Provided APIs*, click *Create New* for *Template Service Broker*.
2121
. Review the default YAML and click *Create*.
22-
23-
Once the template service broker has started, you can view the available
22+
. Verify that the template service broker has started.
23+
+
24+
After the template service broker has started, you can view the available
2425
template applications by navigating to *Catalog* -> *Developer Catalog* and
2526
selecting the *Service Class* checkbox. Note that it may take a few minutes for
26-
the template service broker to start and the template applications to be available.
27-
27+
the template service broker to start and the template applications to be
28+
available.
29+
+
2830
If you do not yet see these Service classes, you can check the status of the
2931
following items:
3032

3133
* Template service broker Pod status
3234
** From the *Workloads* -> *Pods* page for the *template-service-broker*
3335
project, verify that the Pod that starts with `apiserver-` has a status of
3436
*Running* and readiness of *Ready*.
37+
38+
* Cluster service broker status
39+
** From the *Catalog* -> *Broker Management* -> *Service Brokers* page, verify
40+
that the *template-service-broker* service broker has a status of *Ready*.
41+
3542
* Service catalog controller manager Pod logs
3643
** From the *Workloads* -> *Pods* page for the
37-
*kube-service-catalog-controller-manager* project, review the logs for each of
38-
the Pods and verify that you see a log entry with the message `Successfully fetched catalog entries from broker`.
44+
*openshift-service-catalog-controller-manager* project, review the logs for
45+
each of the Pods and verify that you see a log entry with the message
46+
`Successfully fetched catalog entries from broker`.

0 commit comments

Comments
 (0)