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: labs/lab2/readme.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,9 +97,16 @@ You will run some Docker containers to build out various workshop components, us
97
97
Login Succeeded
98
98
```
99
99
100
-
1.Run below script to generate temporary self-signed certificates that would be used by NGINX OSS instances.Ensure you are in the `/lab2` folder:
100
+
1.Change to lab2 folder for these exercises.
101
101
102
102
```bash
103
+
cd lab2
104
+
```
105
+
106
+
1. Run the script below to generate temporary self-signed certificates that would be used by NGINX OSS instances. Ensure you are in the `/lab2` folder:
Copy file name to clipboardExpand all lines: labs/lab5/readme.md
+63-44Lines changed: 63 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,40 +35,50 @@ This lab will explore the R33-R34 upgrade process with NGINX One Console. Starti
35
35
36
36
Starting with Release 33, NGINX Plus requires NGINX Agent to be installed along with a license for NGINX One (Not to be confused with the NGINX One Console you are working with today). It is not as painful as some have been led to believe. You will now add the latest version of an instance to your lab setup.
37
37
38
-
1. First you need the NGINX One `license.jwt` file which you can get from [my.f5.com](https://my.f5.com). Create a new file in the lab5 folder called `license.jwt` and paste the contents into it. If you are in the F5 UDF environment, this has been done for you. The $JWT environment variable should still be set from the earlier labs, but you can check it. If it is not there, add the license to an environment variable as you did previously:
38
+
1. First you need the NGINX One `license.jwt` file which you can get from [my.f5.com](https://my.f5.com). Create a new file in the lab5 folder called `license.jwt` and paste the contents into it. *If you are in the F5 UDF environment, this has been done for you.* The $JWT environment variable should still be set from the earlier labs, but you can check it. If it is not there, add the license to an environment variable as you did previously:
39
39
40
+
1. Change to the `lab5` folder for these exercises.
41
+
42
+
```bash
43
+
cd lab5
44
+
```
45
+
40
46
```bash
41
47
echo$JWT
42
-
# If the result is empty, set it the JWT variable again.
43
-
export JWT=$(cat lab5/license.jwt)
48
+
```
49
+
50
+
If the result is empty, set it the JWT variable again, you must be in the `/lab5 folder`.
51
+
52
+
```bash
53
+
export JWT=$(cat ../lab2/license.jwt)
54
+
```
44
55
45
-
#Confirm the other two previously used variables are still set:
56
+
Confirm the other two previously used variables are still set:
57
+
58
+
```bash
46
59
echo$NAME
47
60
echo$TOKEN
61
+
```
48
62
49
-
# If they are not set, go ahead and set them again:
63
+
If they are not set, go ahead and set them again:
64
+
65
+
```bash
50
66
export NAME=<YOUR_INITIALS.LASTNAME>
51
67
export TOKEN=<insert the dataplane key for NGINX One Console that you used previously>
52
-
53
68
```
54
69
55
-
1. If you updated/changed the JWT token, you will need to login to docker again. Skip if everything was still set from before:
70
+
1. If you updated/changed the JWT token, you will need to login to Docker again. Skip if everything was still set from before:
1. In this portion of the lab you will re-use a docker-compose.yml file from lab2 to deploy your containers and register with the NGINX One Console. This time you will now add an R34 (latest) version of the NGINX Plus container. Open the docker-compose file in VS Code.
63
-
64
-
```bash
65
-
vi lab5/docker-compose.yml
66
-
67
-
```
77
+
1. In this portion of the lab you will re-use a `docker-compose.yml` file from lab2 to deploy your containers and register with the NGINX One Console. This time you will now add an R34 (latest) version of the NGINX Plus container. Open the docker-compose file in VS Code.
68
78
69
-
After the `plus3` instance code block you will put a new block of code forthe R33 release. You will call this `plus4`, keepingin line with your naming convention for the labs.
79
+
After the `plus3` instance code block you will put a new block of code forthe R34 release. You will call this `plus4`, keepingin line with your naming convention for the labs.
70
80
71
-
Starting on line 75 let's uncomment this block of code (ends on line 96). A little tip, in VS Studio you can highlight the block of code and press `Ctrl` + `/` to uncomment the whole block at once.
81
+
Starting on line 75, let's uncomment this block of code (ends on line 96). A little tip, in VS Studio you can highlight the block of code and press `Ctrl` + `/` to uncomment the whole block at once.
72
82
73
83
```bash
74
84
### Uncomment the section below for Lab5
@@ -77,12 +87,12 @@ Starting with Release 33, NGINX Plus requires NGINX Agent to be installed along
@@ -94,11 +104,12 @@ Starting with Release 33, NGINX Plus requires NGINX Agent to be installed along
94
104
- '9000' # Open for API / Dashboard page
95
105
- '9113' # Open for Prometheus Scraper page
96
106
restart: always
97
-
#
98
107
99
108
```
100
109
101
-
1. Save your edits. You'll notice a couple of changes from the other blocks (besides the name). The first is the environment variable called `NGINX_LICENSE_JWT: $JWT` This is what authorizes the pulling of this specific image. The second change is the image name `private-registry.nginx.com/nginx-plus/agent:debian` which pulls the latest Debian version of NGINX Plus with Agent installed. You will be able to see this in the NGINX One Console once deployed.
110
+
1. Save your edits. You'll notice a couple of changes from the other blocks (besides the name).
111
+
- The first is the environment variable called `NGINX_LICENSE_JWT: $JWT` This is what authorizes the pulling of this specific image.
112
+
- The second change is the image name `private-registry.nginx.com/nginx-plus/agent:r34-debian` which pulls the R34 Debian version of NGINX Plus with Agent installed. You will be able to see this in the NGINX One Console once deployed.
102
113
103
114
1. Now that this file is edited, restart the containers. Issue the following commands:
104
115
@@ -213,7 +224,7 @@ First, you will create a new Config Sync Group to add machines that you want to
213
224
214
225
```
215
226
216
-
1. Set your environment variables:
227
+
1. Set your three environment variables, check them with `echo`:
217
228
218
229
```bash
219
230
export NAME=<YOUR_INITIALS.LASTNAME>
@@ -222,6 +233,14 @@ First, you will create a new Config Sync Group to add machines that you want to
222
233
223
234
```
224
235
236
+
```bash
237
+
echo $NAME
238
+
echo $TOKEN
239
+
echo $JWT
240
+
241
+
```
242
+
243
+
225
244
1. Set the hostname of your Ubuntu VM, so it displays in the NGINX One Console Instances. Use `Nginx123` for the password:
226
245
227
246
```bash
@@ -337,32 +356,32 @@ The NGINX Plus Dashboard and API is where NGINX exposes all of the over 240 metr
337
356
338
357
You can do this in the NGINX One Console - in the Config Sync Group, click on the Configuration tab, then Edit. Click the Add file button, and create `/etc/nginx/conf.d/dashboard.conf`. Use the example provide here, just copy/paste:
339
358
340
-
```nginx
341
-
# NGINX Plus Basics, Nov 2024
342
-
# Chris Akker, Shouvik Dutta, Adam Currier
343
-
# dashboard.conf
344
-
#
345
-
server {
346
-
# Conventional port for the NGINX Plus API is 8080
347
-
listen 9000;
348
-
access_log off;# reduce noise in access logs
349
-
350
-
location /api/ {
351
-
# Enable in read-write mode
352
-
api write=on;
353
-
}
354
-
# Conventional location of the NGINX Plus dashboard
355
-
location = /dashboard.html {
356
-
root /usr/share/nginx/html;
359
+
```nginx
360
+
# NGINX Plus Basics, Nov 2024
361
+
# Chris Akker, Shouvik Dutta, Adam Currier
362
+
# dashboard.conf
363
+
#
364
+
server {
365
+
# Conventional port for the NGINX Plus API is 8080
366
+
listen 9000;
367
+
access_log off;# reduce noise in access logs
368
+
369
+
location /api/ {
370
+
# Enable in read-write mode
371
+
api write=on;
372
+
}
373
+
# Conventional location of the NGINX Plus dashboard
0 commit comments