Skip to content

Commit c41f02a

Browse files
authored
Merge pull request #50500 from Srivaralakshmi/SBO-GS-4-11
Updates to the Getting started section of the OCP 4.11 docs
2 parents 0347151 + 7808f90 commit c41f02a

File tree

3 files changed

+33
-20
lines changed

3 files changed

+33
-20
lines changed

applications/connecting_applications_to_services/getting-started-with-service-binding.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The {servicebinding-title} manages the data plane for workloads and backing serv
1717
* You have access to an {product-title} cluster using an account with `cluster-admin` permissions.
1818
* You have installed the `oc` CLI.
1919
* You have installed {servicebinding-title} from OperatorHub.
20-
* You have installed the Crunchy Postgres for Kubernetes Operator from OperatorHub using the *v5* Update channel. The installed Operator is available in an appropriate namespace, such as the `my-petclinic` namespace.
20+
* You have installed the 5.1.2 version of the Crunchy Postgres for Kubernetes Operator from OperatorHub using the *v5* Update channel. The installed Operator is available in an appropriate namespace, such as the `my-petclinic` namespace.
2121
+
2222
[NOTE]
2323
====
@@ -33,6 +33,8 @@ include::modules/sbo-deploying-the-spring-petclinic-sample-application.adoc[leve
3333
//Connecting the Spring PetClinic sample application to the PostgreSQL database service
3434
include::modules/sbo-connecting-spring-petclinic-sample-app-to-postgresql-database-service.adoc[leveloffset=+1]
3535

36+
[role="_additional-resources"]
37+
[id="additional-resources_getting-started-sbo"]
3638
== Additional Resources
3739
* xref:../../applications/connecting_applications_to_services/installing-sbo.adoc#installing-sbo[Installing Service Binding Operator].
3840
* xref:../../applications/creating_applications/odc-creating-applications-using-developer-perspective.adoc#odc-creating-applications-using-developer-perspective[Creating applications using the Developer perspective].

modules/sbo-creating-a-postgresql-database-instance.adoc

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * /applications/connecting_applications_to_services/getting-started-with-service-binding.adoc
4+
15
:_content-type: PROCEDURE
26
[id="sbo-creating-a-postgresql-database-instance_{context}"]
37
= Creating a PostgreSQL database instance
@@ -18,8 +22,8 @@ kind: PostgresCluster
1822
metadata:
1923
name: hippo
2024
spec:
21-
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-ha:centos8-13.4-0
22-
postgresVersion: 13
25+
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.4-0
26+
postgresVersion: 14
2327
instances:
2428
- name: instance1
2529
dataVolumeClaimSpec:
@@ -30,7 +34,7 @@ spec:
3034
storage: 1Gi
3135
backups:
3236
pgbackrest:
33-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:centos8-2.33-2
37+
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.38-0
3438
repos:
3539
- name: repo1
3640
volume:
@@ -40,17 +44,6 @@ spec:
4044
resources:
4145
requests:
4246
storage: 1Gi
43-
- name: repo2
44-
volume:
45-
volumeClaimSpec:
46-
accessModes:
47-
- "ReadWriteOnce"
48-
resources:
49-
requests:
50-
storage: 1Gi
51-
proxy:
52-
pgBouncer:
53-
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:centos8-1.15-2
5447
EOD
5548
----
5649
+
@@ -76,11 +69,10 @@ The output, which takes a few minutes to display, verifies that the database is
7669
.Example output
7770
[source,terminal]
7871
----
79-
NAME READY STATUS RESTARTS AGE
80-
hippo-backup-nqjg-2rq94 1/1 Running 0 35s
81-
hippo-instance1-nw92-0 3/3 Running 0 112s
82-
hippo-pgbouncer-57b98f4476-znsk5 2/2 Running 0 112s
83-
hippo-repo-host-0 1/1 Running 0 112s
72+
NAME READY STATUS RESTARTS AGE
73+
hippo-backup-9rxm-88rzq 0/1 Completed 0 2m2s
74+
hippo-instance1-6psd-0 4/4 Running 0 3m28s
75+
hippo-repo-host-0 2/2 Running 0 3m28s
8476
----
8577
+
8678
After the database is configured, you can deploy the sample application and connect it to the database service.

modules/sbo-deploying-the-spring-petclinic-sample-application.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * /applications/connecting_applications_to_services/getting-started-with-service-binding.adoc
4+
15
:_content-type: PROCEDURE
26
[id="sbo-deploying-the-spring-petclinic-sample-application_{context}"]
37
= Deploying the Spring PetClinic sample application
@@ -92,5 +96,20 @@ spring-petclinic-5b4c7999d4-wzdtz 0/1 CrashLoopBackOff 4 (13s ago) 2m2
9296
----
9397
+
9498
At this stage, the pod fails to start. If you try to interact with the application, it returns errors.
99+
+
100+
. Expose the service to create a route for your application:
101+
+
102+
[source,terminal]
103+
----
104+
$ oc expose service spring-petclinic -n my-petclinic
105+
----
106+
+
107+
The output verifies that the `spring-petclinic` service is exposed and a route for the Spring PetClinic sample application is created:
108+
+
109+
.Example output
110+
[source,terminal]
111+
----
112+
route.route.openshift.io/spring-petclinic exposed
113+
----
95114

96115
You can now use the {servicebinding-title} to connect the application to the database service.

0 commit comments

Comments
 (0)