Skip to content

Commit 40c5b23

Browse files
committed
Replace embedded ARM YAML with curl/kubectl commands
- Replace inline YAML with curl download from nginxOnAKS repository - Maintain same explanatory text and deployment details - Consistent pattern with Intel deployment chapter - Centralize YAML management in nginxOnAKS repository
1 parent a76deb4 commit 40c5b23

1 file changed

Lines changed: 17 additions & 46 deletions

File tree

  • content/learning-paths/servers-and-cloud-computing/multiarch_nginx_on_aks

content/learning-paths/servers-and-cloud-computing/multiarch_nginx_on_aks/3-deploy-arm.md

Lines changed: 17 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,23 @@ layout: learningpathall
1010

1111
In this section, you'll add nginx on ARM nodes to your existing cluster, completing your multi-architecture Intel/AMD/ARM environment for comprehensive performance comparison.
1212

13-
1. Use a text editor to copy the following YAML and save it to a file called `arm_nginx.yaml`:
14-
15-
```yaml
16-
apiVersion: apps/v1
17-
kind: Deployment
18-
metadata:
19-
name: nginx-arm-deployment
20-
labels:
21-
app: nginx-multiarch
22-
namespace: nginx
23-
spec:
24-
replicas: 1
25-
selector:
26-
matchLabels:
27-
arch: arm
28-
template:
29-
metadata:
30-
labels:
31-
app: nginx-multiarch
32-
arch: arm
33-
spec:
34-
nodeSelector:
35-
agentpool: arm
36-
containers:
37-
- image: nginx:latest
38-
name: nginx-multiarch
39-
ports:
40-
- containerPort: 80
41-
name: http
42-
protocol: TCP
43-
---
44-
apiVersion: v1
45-
kind: Service
46-
metadata:
47-
name: nginx-arm-svc
48-
namespace: nginx
49-
spec:
50-
sessionAffinity: None
51-
ports:
52-
- nodePort: 30082
53-
port: 80
54-
protocol: TCP
55-
targetPort: 80
56-
selector:
57-
arch: arm
58-
type: LoadBalancer
13+
Copy and paste the following commands into a terminal to download and apply the ARM deployment and service:
14+
15+
```bash
16+
curl -o arm_nginx.yaml https://raw.githubusercontent.com/geremyCohen/nginxOnAKS/refs/heads/main/arm_nginx.yaml
17+
kubectl apply -f arm_nginx.yaml
18+
```
19+
20+
When pasted into your terminal, you will see output similar to the following for each command:
21+
22+
```output
23+
curl -o arm_nginx.yaml https://raw.githubusercontent.com/geremyCohen/nginxOnAKS/refs/heads/main/arm_nginx.yaml
24+
kubectl apply -f arm_nginx.yaml
25+
% Total % Received % Xferd Average Speed Time Time Time Current
26+
Dload Upload Total Spent Left Speed
27+
100 739 100 739 0 0 15192 0 --:--:-- --:--:-- --:--:-- 15306
28+
deployment.apps/nginx-arm-deployment created
29+
service/nginx-arm-svc created
5930
```
6031

6132
When the above is applied:

0 commit comments

Comments
 (0)