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/2-prepare-cluster/_index.md
+18-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,41 +8,46 @@ weight = 5
8
8
Before you start you have to install a number of components you'll use during the workshop. The first two are `Gitea` for providing Git services in your cluster and `CodeReady Workspaces` as development environment. But fear not, both are managed by Kubernetes [operators](https://cloud.redhat.com/learn/topics/operators) on OpenShift.
9
9
10
10
## Install and Prepare Gitea
11
+
11
12
We'll need Git repository services to keep our app and infrastructure source code, so let's just install trusted `Gitea` using an operator:
12
13
13
14
{{% notice tip %}}
14
-
[Gitea](https://gitea.io/en-us/) is an OpenSource Git Server similar to GitHub. A team at Red Hat was so nice to create an Operator for it. This is a good example of how you can integrate an operator into your catalog that is not part of the default [OperatorHub](https://operatorhub.io/) already.
15
+
[Gitea](https://gitea.io/en-us/) is an OpenSource Git Server similar to GitHub. A team at Red Hat was so nice to create an Operator for it. This is a good example of how you can integrate an operator into your catalog that is not part of the default [OperatorHub](https://operatorhub.io/) already.
15
16
{{% /notice %}}
16
17
17
18
- If you don't already have the oc client installed, you can download the matching version for your operating system [here](https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/)
18
-
- Log into your OpenShift Webconsole with you cluster admin credentials
19
+
- Log into your OpenShift Webconsole with you cluster admin credentials
19
20
- On the top right click on your username and then **Copy login command** to copy your login token
20
21
- On you local machine open a terminal log in with the `oc` command you copied
21
22
- Now using `oc` add the Gitea Operator to your OpenShift OperatorHub catalog
- Access the route URL (you'll find it e.g. in **Networking > Routes > repository > Location**)
49
+
50
+
- Access the route URL (you'll find it e.g. in **Networking > Routes > repository > Location**)
46
51
- This will take you to the Gitea web UI
47
52
- Sign-In to `Gitea` with user `gitea` and password `gitea`
48
53
- Clone the example repo:
@@ -54,29 +59,30 @@ After creation has finished:
54
59
In the cloned repository you'll find a `devfile.yml`. We will need the URL to the file soon, so keep the tab open.
55
60
56
61
## Install and Prepare CodeReady Workspaces (CRW)
62
+
57
63
- Install the **Red Hat CodeReady Workspaces for Devfile v1 and v2** Operator from OperatorHub (not the Tech Preview one!) with default settings
58
-
- Go to **Installed Operators -> CodeReady Workspaces** and create a new instance (CodeReady Workspaces instance Specification) using the default settings in the project `openshift-workspaces`
59
-
- Wait until deployment has finished. This may take a couple of minutes as several components will be deployed.
60
-
- Once the instance status is ready (You can check the YAML of the instance: `status > cheClusterRunning: Available`), look up the `codeready` Route in the `openshift-workspaces` namespace (You may need to toggle the **Show default project** button).
64
+
- Go to **Installed Operators -> CodeReady Workspaces** and create a new instance (**CodeReady Workspaces instance Specification**) using the default settings in the project `openshift-workspaces`
65
+
- Wait until deployment has finished. This may take a couple of minutes as several components will be deployed.
66
+
- Once the instance status is ready (You can check the YAML of the instance: `status > cheClusterRunning: Available`), look up the `codeready` Route in the `openshift-workspaces` namespace (You may need to toggle the **Show default project** button).
61
67
- Open the link in a new browser tab, choose `htpasswd_provider` and log in with your OCP credentials
62
68
- Allow selected permissions
63
69
- Enter an email address, First Name and Last Name to set up your account (you can make these up).
64
70
65
71
{{% notice tip %}}
66
-
We could create a workspace from one of the templates that come with CodeReady Workspaces, but we want to use a customized workspace with some additionally defined plugins in a [v1 devfile](https://redhat-developer.github.io/devfile/) in our git repo. With devfiles you can share a complete workspace setup and with the click of a button you will end up in a fully configured project in your browser.
72
+
We could create a workspace from one of the templates that come with CodeReady Workspaces, but we want to use a customized workspace with some additionally defined plugins in a [v1 devfile](https://redhat-developer.github.io/devfile/) in our git repo. With devfiles you can share a complete workspace setup and with the click of a link and you will end up in a fully configured project in your browser.
67
73
{{% /notice %}}
68
74
69
75
- At the top click on **Custom Workspace**
70
76
- Copy the **raw**(!) URL of the `devfile.yml` file in your `Gitea` repository by clicking on the file and then on the **Raw** button (or **Originalversion** in German).
71
77
- Paste the full URL into the **Enter devfile URL** field and click **Load Devfile**
72
-

78
+

73
79
- Once the content of the devfile is loaded click on **Create & Open** at the button
74
-
- You'll get into the **Starting workspace ...** view, give the workspace containers some time to spin up.
80
+
- You'll get into the **Starting workspace ...** view, give the workspace containers some time to spin up.
75
81
76
82
When your workspace has finally started, have a good look around in the UI. It should look familiar if you have ever worked with VSCode or similar IDEs.
77
83
78
84
{{% notice tip %}}
79
-
When working with CRW make sure you have AdBlockers disabled, you are not on a VPN and a have good internet connection to ensure a stable setup. If you are facing any issues try to releod the Browser window. If that doesn't help restart the workspace in the controls on **yellow arrow** at the top left side
85
+
When working with CRW make sure you have AdBlockers disabled, you are not on a VPN and a have good internet connection to ensure a stable setup. If you are facing any issues try to releod the Browser window. If that doesn't help restart the workspace in the controls on **yellow arrow** at the top left side
80
86
{{% /notice %}}
81
87
82
88
Your cluster is now prepared for the next step, proceed to the **Inner Loop**.
0 commit comments