1
1
// Module included in the following assemblies:
2
2
//
3
3
// * upgrade/upgrade-roxctl.adoc
4
+
4
5
:_mod-docs-content-type: PROCEDURE
5
6
[id="upgrade-central-cluster-scanner_{context} "]
6
7
= Upgrading Scanner
7
8
8
9
[role="_abstract"]
9
10
You can update Scanner to the latest version by downloading and deploying the updated images.
10
11
12
+ [IMPORTANT]
13
+ ====
14
+ If you are using Kubernetes, enter the `kubectl` command instead of the `oc` command.
15
+ ====
16
+
11
17
.Procedure
12
18
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:
14
43
+
15
44
[source,terminal,subs=attributes+]
16
45
----
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}
18
48
----
19
- <1> If you use Kubernetes, enter `kubectl` instead of `oc` .
20
49
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
+ ----
21
58
22
59
.Verification
23
60
24
- * Verify that the new pods have deployed:
61
+ * To verify that the new pods have been deployed, run the following commands :
25
62
+
26
63
[source,terminal]
27
64
----
@@ -31,4 +68,4 @@ $ oc get deploy -n stackrox -o wide
31
68
[source,terminal]
32
69
----
33
70
$ oc get pod -n stackrox -- watch
34
- ----
71
+ ----
0 commit comments