Skip to content

Commit d56810d

Browse files
committed
Updating command
1 parent 7b73de5 commit d56810d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/patterns/medical-diagnosis/ideas-for-customization.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ You can change some of the parameters and watch how the changes effect the dashb
4444
+
4545
[source,terminal]
4646
----
47-
$ oc scale deploymentconfig/image-generator --replicas=2
47+
$ oc scale deployments/image-generator --replicas=2 -n xraylab-1
4848
----
4949
+
5050
Check the dashboard.
5151
+
5252
[source,terminal]
5353
----
54-
$ oc scale deploymentconfig/image-generator --replicas=0
54+
$ oc scale deployments/image-generator --replicas=0 -n xraylab-1
5555
----
5656
+
5757
Watch the dashboard stop processing images.
@@ -60,7 +60,7 @@ Watch the dashboard stop processing images.
6060
+
6161
[source,terminal]
6262
----
63-
$ oc patch service.serving.knative.dev/risk-assessment --type=json -p '[{"op":"replace","path":"/spec/template/metadata/annotations/revisionTimestamp","value":"'"$(date +%F_%T)"'"},{"op":"replace","path":"/spec/template/spec/containers/0/env/0/value","value":"v2"}]'
63+
$ oc patch ksvc risk-assessment -n xraylab-1 --type=merge -p '{"spec":{"template":{"metadata":{"annotations":{"redeployTimestamp":"'"$(date +%F_%T)"'"}}}}}'
6464
----
6565
+
6666
This changes the model version value, and the `revisionTimestamp` in the annotations, which triggers a redeployment of the service.

0 commit comments

Comments
 (0)