Skip to content

Commit 7f752ff

Browse files
authored
Lab12 Final Draft (#78)
* lab12 initial docs * lab12 rough draft * update scubacat * add Lab12 * fix nodeport * fix typo * formatting edits
1 parent c4ea259 commit 7f752ff

30 files changed

+666
-3
lines changed

labs/lab11/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,4 +762,4 @@ map $geoip2_data_country_iso_code $is_allowed {
762762
763763
-------------
764764
765-
Navigate to [LabGuide](../readme.md))
765+
Navigate to ([Lab12](../lab12/readme.md) | [LabGuide](../readme.md))

labs/lab12/aks1-nlk-upstreams.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Chris Akker, Shouvik Dutta, Adam Currier - Jan 2025
2+
# Nginx Upstream Block for NLK Controller
3+
#
4+
# Nginx 4 Azure - aks1-nlk-upstreams.conf
5+
#
6+
upstream aks1-nlk-upstreams {
7+
zone aks1-nlk-upstreams 256K; # required for metrics
8+
state /tmp/aks1-nlk-upstreams.state; # required for backup
9+
10+
least_time last_byte; # choose the fastest NodePort
11+
12+
# Server List dynamically managed by NLK Controller
13+
14+
keepalive 16;
15+
16+
}

labs/lab12/cafe.example.com.conf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Nginx 4 Azure - Cafe Nginx to AKS1 with NLK
2+
# Chris Akker, Shouvik Dutta, Adam Currier - Jan 2025
3+
#
4+
server {
5+
6+
listen 80; # Listening on port 80
7+
8+
server_name cafe.example.com; # Set hostname to match in request
9+
status_zone cafe.example.com; # Metrics zone name
10+
11+
access_log /var/log/nginx/cafe.example.com.log main;
12+
error_log /var/log/nginx/cafe.example.com_error.log info;
13+
14+
location / {
15+
status_zone /; # Metrics zone name
16+
#
17+
# return 200 "You have reached cafe.example.com, location /\n";
18+
19+
proxy_pass http://aks1-nlk-upstreams; # Proxy AND load balance to AKS2 Nginx Ingress
20+
add_header X-Proxy-Pass aks1-nlk-upstreams; # Custom Header
21+
add_header X-Aks1-Upstream $upstream_addr; # Which AKS1 NodeIP:Port
22+
23+
# proxy_pass http://cafe_nginx; # Proxy AND load balance to Docker VM
24+
# add_header X-Proxy-Pass cafe_nginx; # Custom Header
25+
26+
# proxy_pass http://aks1_ingress; # Proxy AND load balance to AKS1 Nginx Ingress
27+
# add_header X-Proxy-Pass aks1_ingress; # Custom Header
28+
29+
# proxy_pass http://aks2_ingress; # Proxy AND load balance to AKS2 Nginx Ingress
30+
# add_header X-Proxy-Pass aks2_ingress; # Custom Header
31+
32+
}
33+
34+
}

labs/lab12/media/aks-icon.png

25.6 KB
Loading

labs/lab12/media/azure-market-nlk.png

194 KB
Loading

labs/lab12/media/benchmark-icon.png

32.1 KB
Loading

labs/lab12/media/cafe-icon.png

134 KB
Loading

labs/lab12/media/chrome-icon.png

4.23 KB
Loading

labs/lab12/media/coffee.png

60.3 KB
Loading

labs/lab12/media/curl-icon.png

5.34 KB
Loading

0 commit comments

Comments
 (0)