Skip to content

Commit ee1861a

Browse files
authored
Merge pull request #91114 from openshift-cherrypick-robot/cherry-pick-91039-to-rhacs-docs-4.7
[rhacs-docs-4.7] [RHACS] [Docs] ROX-21284: Adding scanner db steps
2 parents 3eeb7ff + d98d46d commit ee1861a

File tree

1 file changed

+42
-5
lines changed

1 file changed

+42
-5
lines changed
Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,64 @@
11
// Module included in the following assemblies:
22
//
33
// * upgrade/upgrade-roxctl.adoc
4+
45
:_mod-docs-content-type: PROCEDURE
56
[id="upgrade-central-cluster-scanner_{context}"]
67
= Upgrading Scanner
78

89
[role="_abstract"]
910
You can update Scanner to the latest version by downloading and deploying the updated images.
1011

12+
[IMPORTANT]
13+
====
14+
If you are using Kubernetes, enter the `kubectl` command instead of the `oc` command.
15+
====
16+
1117
.Procedure
1218

13-
* Run the following command to update the Scanner image:
19+
. If you have created custom Scanner configurations, you must apply these changes before updating the Scanner configuration file:
20+
21+
.. To generate Scanner, run the following command:
22+
+
23+
[source,terminal]
24+
----
25+
$ roxctl -e "$ROX_CENTRAL_ADDRESS" scanner generate
26+
----
27+
28+
.. To apply the TLS secrets YAML file, run the following command:
29+
+
30+
[source,terminal]
31+
----
32+
$ oc apply -f scanner-bundle/scanner/02-scanner-03-tls-secret.yaml
33+
----
34+
35+
.. To apply the Scanner configuration YAML file, run the following command:
36+
+
37+
[source,terminal]
38+
----
39+
$ oc apply -f scanner-bundle/scanner/02-scanner-04-scanner-config.yaml
40+
----
41+
42+
. To update the Scanner image, run the following command:
1443
+
1544
[source,terminal,subs=attributes+]
1645
----
17-
$ oc -n stackrox set image deploy/scanner scanner=registry.redhat.io/advanced-cluster-security/rhacs-scanner-rhel8:{rhacs-version} <1>
46+
$ oc -n stackrox set image deploy/scanner \
47+
scanner=registry.redhat.io/advanced-cluster-security/rhacs-scanner-rhel8:{rhacs-version}
1848
----
19-
<1> If you use Kubernetes, enter `kubectl` instead of `oc`.
2049

50+
. To update the Scanner database image, run the following command:
51+
+
52+
[source,terminal,subs=attributes+]
53+
----
54+
$ oc -n stackrox set image deploy/scanner-db \
55+
db=registry.redhat.io/advanced-cluster-security/rhacs-scanner-db-rhel8:{rhacs-version} \
56+
init-db=registry.redhat.io/advanced-cluster-security/rhacs-scanner-db-rhel8:{rhacs-version}
57+
----
2158

2259
.Verification
2360

24-
* Verify that the new pods have deployed:
61+
* To verify that the new pods have been deployed, run the following commands:
2562
+
2663
[source,terminal]
2764
----
@@ -31,4 +68,4 @@ $ oc get deploy -n stackrox -o wide
3168
[source,terminal]
3269
----
3370
$ oc get pod -n stackrox --watch
34-
----
71+
----

0 commit comments

Comments
 (0)