Skip to content

Commit d4313e5

Browse files
committed
Change oc scale command to follow pattern change
Deprecated deploymentconfigs were removed from the pattern in favor of deployments.
1 parent 28fc0b8 commit d4313e5

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

content/patterns/medical-diagnosis/cluster-sizing.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ aliases: /medical-diagnosis/cluster-sizing/
99
:_content-type: ASSEMBLY
1010
include::modules/comm-attributes.adoc[]
1111

12+
:aws_node: xlarge
13+
14+
1215
//Module to be included
1316
//:_content-type: CONCEPT
1417
//:imagesdir: ../../images
1518
[id="about-openshift-cluster-sizing-med"]
1619
== About OpenShift cluster sizing for the {med-pattern}
17-
20+
{aws_node}
1821
To understand cluster sizing requirements for the {med-pattern}, consider the following components that the {med-pattern} deploys on the datacenter or the hub OpenShift cluster:
1922

2023
|===

content/patterns/medical-diagnosis/getting-started.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ You can go to the command-line (make sure you have KUBECONFIG set, or are logged
340340
+
341341
[source,terminal]
342342
----
343-
$ oc scale deploymentconfig/image-generator --replicas=1 -n xraylab-1
343+
$ oc scale deployment/image-generator --replicas=1 -n xraylab-1
344344
----
345345
+
346346
Or you can go to the OpenShift UI and change the view from Administrator to Developer and select Topology. From there select the `xraylab-1` project.
@@ -357,7 +357,7 @@ image::medical-edge/dev-topology-pod-count.png[link="/images/medical-edge/dev-to
357357
+
358358
Alternatively, you can have the same outcome on the Administrator console.
359359
+
360-
Go to the OpenShift UI under Workloads, select Deploymentconfigs for Project `xraylab-1`.
360+
Go to the OpenShift UI under Workloads, select Deployments for Project `xraylab-1`.
361361
Click `image-generator` and increase the pod count to 1.
362362
+
363363
image::medical-edge/start-image-flow.png[link="/images/medical-edge/start-image-flow.png"]
@@ -375,14 +375,14 @@ You can change some of the parameters and watch how the changes effect the dashb
375375
+
376376
[source,terminal]
377377
----
378-
$ oc scale deploymentconfig/image-generator --replicas=2
378+
$ oc scale deployment/image-generator --replicas=2
379379
----
380380
+
381381
Check the dashboard.
382382
+
383383
[source,terminal]
384384
----
385-
$ oc scale deploymentconfig/image-generator --replicas=0
385+
$ oc scale deployment/image-generator --replicas=0
386386
----
387387
+
388388
Watch the dashboard stop processing images.

content/patterns/medical-diagnosis/troubleshooting.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ Use the grafana dashboard to assist with debugging and identifying the issue
5959
'''
6060
Problem:: No information is being processed in the dashboard
6161

62-
Solution:: Most often this is due to the image-generator deploymentConfig needing to be scaled up. The image-generator by design is *scaled to 0*;
62+
Solution:: Most often this is due to the image-generator deployment needing to be scaled up. The image-generator by design is *scaled to 0*;
6363
+
6464
[source,terminal]
6565
----
66-
$ oc scale -n xraylab-1 dc/image-generator --replicas=1
66+
$ oc scale -n xraylab-1 deploy/image-generator --replicas=1
6767
----
6868
+
6969
Alternatively, complete the following steps:
7070

71-
. Navigate to the {rh-ocp} web console, and select *Workloads → DeploymentConfigs*
71+
. Navigate to the {rh-ocp} web console, and select *Workloads → Deployments*
7272
. Select `image-generator` and scale the pod to 1 or more.
7373
//AI: Needs review
7474

0 commit comments

Comments
 (0)