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/learning-paths/servers-and-cloud-computing/multiarch_nginx_on_aks/4-deploy-multiarch.md
+20-16Lines changed: 20 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ layout: learningpathall
8
8
9
9
## Add multiarch service
10
10
11
-
You now have nginx running on Intel, AMD, and ARM nodes with architecture-specific services. In this section, you'll create a multiarch service that can route to any available nginx pod regardless of architecture, providing load balancing across all architectures.
11
+
You now have nginx running on Intel and ARM nodes with architecture-specific services. In this section, you'll create a multiarch service that can route to any available nginx pod regardless of architecture, providing load balancing across all architectures.
12
12
13
13
### Create the multiarch service
14
14
15
-
The multiarch service targets all pods with the `app: nginx-multiarch` label (all nginx deployments share this label). It uses `sessionAffinity: None` to ensure requests are distributed across all available pods without stickiness, and can route to Intel, AMD, or ARM pods based on availability and load balancing algorithms.
15
+
The multiarch service targets all pods with the `app: nginx-multiarch` label (all nginx deployments share this label). It uses `sessionAffinity: None` to ensure requests are distributed across all available pods without stickiness, and can route to Intel or ARM pods based on availability and load balancing algorithms.
16
16
17
17
1. Run the following command to download and apply the multiarch service:
18
18
@@ -33,14 +33,13 @@ service/nginx-multiarch-svc created
33
33
kubectl get svc -nnginx
34
34
```
35
35
36
-
Your output should be similar to the following, showing four services:
36
+
Your output should be similar to the following, showing three services:
5. Run the command multiple times to see load balancing across architectures:
@@ -80,14 +85,13 @@ Served by: nginx-**arm**-deployment-6f8d9c2a-def56
80
85
./nginx_util.sh get multiarch
81
86
```
82
87
83
-
The pod logs will show requests being served by different architecture deployments (intel, amd, or arm), demonstrating that the multiarch service distributes load across all available pods.
88
+
The responses will show requests being served by different architecture deployments (intel or arm), demonstrating that the multiarch service distributes load across all available pods.
84
89
85
90
### Compare architecture-specific vs multiarch routing
86
91
87
92
Now you can compare the behavior:
88
93
89
94
-**Architecture-specific**: `./nginx_util.sh get intel` always routes to Intel pods
90
-
-**Architecture-specific**: `./nginx_util.sh get amd` always routes to AMD pods
91
95
-**Architecture-specific**: `./nginx_util.sh get arm` always routes to ARM pods
92
96
-**Multiarch**: `./nginx_util.sh get multiarch` routes to any available pod
0 commit comments