You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/odc-grouping-multiple-components.adoc
+9-16Lines changed: 9 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@
5
5
[id="odc-grouping-multiple-components_{context}"]
6
6
= Grouping multiple components within an application
7
7
8
-
You can use the *Add* page to add multiple components or services to your project and use the *Topology* page to group applications and resources within an application group.
9
-
The following procedure adds a MongoDB database service to an existing application with a Node.js component.
8
+
You can use the *+Add* view to add multiple components or services to your project and use the *Topology* view to group applications and resources within an application group.
9
+
The following procedure adds a MariaDB database service to an existing application with a Node.js component.
10
10
11
11
12
12
.Prerequisites
@@ -15,23 +15,16 @@ The following procedure adds a MongoDB database service to an existing applicati
15
15
16
16
.Procedure
17
17
18
-
. Create and deploy the MongoDB service to your project as follows:
19
-
.. In the *Developer* perspective, navigate to the *Add* view and select the *Database* option to see the *Developer Catalog*, which has multiple options that you can add as components or services to your application.
20
-
.. Click on the *MongoDB* option to see the details for the service.
21
-
.. Click *Instantiate Template* to see an automatically populated template with details for the MongoDB service, and click *Create* to create the service.
18
+
. Create and deploy the MariaDB service to your project:
19
+
.. In the *Developer* perspective, navigate to the *+Add* view and select the *From Catalog* option to view all available services in the *Developer Catalog*.
20
+
.. Select *Databases* to list all the database services and then click *MariaDB* option to see the details for the service.
21
+
.. Click *Instantiate Template* to see an automatically populated template with details for the MariaDB service, and then click *Create* to create and view the MariaDB service in the *Topology* view.
22
22
23
-
. On the left navigation panel, click *Topology* to see the MongoDB service deployed in your project.
24
-
. To add the MongoDB service to the existing application group, select the *mongodb* pod and drag it to the application; the MongoDB service is added to the existing application group.
25
-
. Dragging a component and adding it to an application group automatically adds the required labels to the component. Click on the MongoDB service node to see the label `app.kubernetes.io/part-of=myapp` added to the *Labels* section in the *Overview* Panel.
23
+
. To add the MariaDB service to the existing application group, press kbd:[Shift]+ drag the *mariadb* pod to the application group that contains the Node.Js component. The MariaDB service is added to the existing application group.
24
+
25
+
. Click the MariaDB service node and confirm that the `app.kubernetes.io/part-of=<application-name>` label is in the *Labels* section in the *Overview* Panel. Adding a component to an application group automatically adds the required labels to the component.
26
26
+
27
27
.Application grouping
28
28
image::odc_app_grouping_label.png[]
29
29
30
-
Alternatively, you can also add the component to an application as follows:
31
-
32
-
. To add the MongoDB service to your application, click on the *mongodb* pod to see the *Overview* panel to the right.
33
-
. Click the *Actions* drop-down menu on the upper right of the panel and select *Edit Application Grouping*.
34
-
. In the *Edit Application Grouping* dialog box, click the *Select an Application* drop-down list, and select the appropriate application group.
35
-
. Click *Save* to see the MongoDB service added to the application group.
36
-
37
30
You can remove a component from an application group by selecting the component and using kbd:[Shift]+ drag to drag it out of the application group.
= Using the Developer Catalog to add services or components to your application
7
+
8
+
You use the Developer Catalog to deploy applications and services based on Operator backed services such as Databases, Builder Images, and Helm Charts. The Developer Catalog contains a collection of application components, services, event sources, or source-to-image builders that you can add to your project. Cluster administrators can customize the content made available in the catalog.
9
+
10
+
.Procedure
11
+
12
+
. In the *Developer* perspective, navigate to the *+Add* -> *From Catalog* to view all the available services in the *Developer Catalog*.
13
+
. Under *All Items*, select the kind of service or the component you need to add to your project. For this example, select *Databases* to list all the database services and then click *MariaDB* to see the details for the service.
14
+
+
15
+
.Developer Catalog
16
+
image::odc_devcatalog_mariadb.png[]
17
+
+
18
+
. Click *Instantiate Template* to see an automatically populated template with details for the *MariaDB* service, and then click *Create* to create and view the MariaDB service in the *Topology* view.
0 commit comments