You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/10-rhacs-setup/_index.md
+21-11Lines changed: 21 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,13 +88,24 @@ Now create a new Integration:
88
88
89
89
First you have to generate an init bundle which contains certificates and is used to authenticate a **SecuredCluster** to the **Central** instance, again regardless if it's the same cluster as the Central instance or a remote/other cluster.
90
90
91
-
In the **ACS Portal**:
91
+
We are using the API to create the init bundle in this workshop. For the steps to create the init bundle in the ACS Portal see the appendix.
92
92
93
-
- Navigate to **Platform Configuration → Integrations**.
94
-
- Under the **Authentication Tokens** section, click on **Cluster Init Bundle**.
95
-
- Click **Generate bundle**
96
-
- Enter a name for the cluster init bundle and click **Generate**.
97
-
- Click **Download Kubernetes Secret File** to download the generated bundle.
93
+
Creating the init bundle using the **API** on the commandline:
The init bundle needs to be applied on all OpenShift clusters you want to secure & monitor.
100
111
@@ -104,11 +115,10 @@ For this workshop we run **Central** and **SecuredCluster** on one OpenShift clu
104
115
105
116
**Apply the init bundle**
106
117
107
-
- Use the `oc` command to log in to the OpenShift cluster as `cluster-admin`.
108
-
- The easiest way might be to use the **Copy login command** link from the UI
109
-
- Switch to the **Project** you installed **ACS Central** in, it should be `stackrox`.
110
-
- Run `oc create -f <init_bundle>.yaml -n stackrox` pointing to the init bundle you downloaded from the Central instance and the Project you created.
111
-
- This will create a number of secrets:
118
+
- Open a web terminal
119
+
- Use the `oc` command to switch to the **Project** you installed **ACS Central** in, it should be `stackrox`.
120
+
- Run `oc create -f > kube-secrets.bundle -n stackrox` pointing to the init bundle you downloaded from the Central instance or created via the API as above.
121
+
- This will create a number of secrets, the output should be:
Copy file name to clipboardExpand all lines: content/2-prepare-cluster/_index.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,42 @@ After the operator has been installed it will inform you to install a `StorageSy
30
30
You'll see a review of your settings, hit `Create StorageSystem`
31
31
32
32
{{% notice tip %}}
33
-
Don't worry if you see a _404 Page_. The ODF Operator has just extended the OpenShift Console which may no be availabe in your current view. Just relead the browser page once and your will see the System Overview
33
+
Don't worry if you see a _404 Page_. The ODF Operator has just extended the OpenShift Console which may no be availabe in your current view. Just reload the browser page once and your will see the System Overview
34
34
{{% /notice %}}
35
35
36
36
{{< figure src="../images/odf-systems.png?width=50pc&classes=border,shadow" title="Click image to enlarge" >}}
37
37
38
38
As mentioned already this takes some time so go ahead and install the other prerequisites. We'll come back later.
39
39
40
+
## Prepare to run oc commands
41
+
42
+
You will be asked to run `oc` (the OpenShift commandline tool) commands a couple of times. We will do this by using the **OpenShift Web Terminal**. This is the easiest way because you don't have to install `oc` or an SSH client.
43
+
44
+
### Install OpenShift Web Terminal
45
+
46
+
To extend OpenShift with the Web Terminal option, install the **Web Terminal** operator:
47
+
48
+
- Login to the OpenShift Webconsole with you cluster admin credentials
49
+
- In the Web Console, go to **Operators > OperatorHub** and search for the **Web Terminal** operator
50
+
- Install the operator with default settings
51
+
52
+
This will take some time and installs another operator as dependency.
53
+
54
+
After the operator has installed, reload the OCP Web Console browser window. You will now have a new button (**>_**) in the upper right. Click it to start a new web terminal. From here you can run the `oc` commands when the lab guide requests it (copy/paste might depend on your laptop OS and browser settings, e.g. try `Ctrl-Shift-V` for pasting).
55
+
56
+
{{< figure src="../images/web-terminal.png?width=50pc&classes=border,shadow" title="Click image to enlarge" >}}
57
+
58
+
{{% notice warning %}}
59
+
The terminal is not persistent, so if it was closed for any reason anything you did in the terminal is gone after re-opening.
60
+
{{% /notice %}}
61
+
62
+
If for any reason you can't use the webterminal, your options are:
63
+
64
+
- Install and run `oc` on your laptop
65
+
- SSH into the bastion host, if running on a Red Hat RHDP lab environment. From here you can just run `oc` without login.
66
+
67
+
TODO: Change yaml applies to direct git download
68
+
40
69
## Install and Prepare Gitea
41
70
42
71
We'll need Git repository services to keep our app and infrastructure source code, so let's just install trusted `Gitea` using an operator:
Copy file name to clipboardExpand all lines: content/20-appendix/_index.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,20 @@ title = "Appendix"
3
3
weight = 45
4
4
+++
5
5
6
+
## Create ACS init bundle in ACS Portal
7
+
8
+
Creating the init bundle using the **ACS Portal**:
9
+
10
+
- Navigate to **Platform Configuration → Integrations**.
11
+
- Under the **Authentication Tokens** section, click on **Cluster Init Bundle**.
12
+
- Click **Generate bundle**
13
+
- Enter a name for the cluster init bundle and click **Generate**.
14
+
- Click **Download Kubernetes Secret File** to download the generated bundle.
15
+
16
+
{{% notice warning %}}
17
+
If you are running `oc` on your laptop, you are set. If you are SSH-ing to another host (like the bastion host) to run `oc`, you have to scp the init bundle file over there. If you are using the **OpenShift Web Terminal** you have to use the API method.
18
+
{{% /notice %}}
19
+
6
20
## Create a serviceaccount to scan the internal OpenShift registry
7
21
8
22
The integrations to the internal registry were created automatically. But to enable scanning of images in the internal registry, you'll have to configure valid credentials, so this is what you'll do:
0 commit comments