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
{{ message }}
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: content/en/user-guide/aws/eks/index.md
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -253,10 +253,10 @@ spec:
253
253
selector:
254
254
app: fancier-nginx
255
255
ports:
256
-
- name: http
257
-
protocol: TCP
258
-
port: 80
259
-
targetPort: 80
256
+
- name: http
257
+
protocol: TCP
258
+
port: 80
259
+
targetPort: 80
260
260
EOF
261
261
{{< /command >}}
262
262
@@ -272,15 +272,15 @@ metadata:
272
272
ingress.kubernetes.io/ssl-redirect: "false"
273
273
spec:
274
274
rules:
275
-
- http:
276
-
paths:
277
-
- path: /test123
278
-
pathType: Prefix
279
-
backend:
280
-
service:
281
-
name: nginx
282
-
port:
283
-
number: 80
275
+
- http:
276
+
paths:
277
+
- path: /test123
278
+
pathType: Prefix
279
+
backend:
280
+
service:
281
+
name: nginx
282
+
port:
283
+
number: 80
284
284
EOF
285
285
{{< /command >}}
286
286
@@ -421,7 +421,7 @@ For instance, you might have multiple microservices, each following a common pat
421
421
In such cases, path-based routing may not be ideal if you need the services to be accessible in a uniform manner.
422
422
423
423
To address this requirement, we recommend utilizing host-based routing rules, as demonstrated in the example below:
424
-
424
+
<!-- markdownlint-disable MD007 -->
425
425
{{< command >}}
426
426
$ cat <<EOF | kubectl apply -f -
427
427
apiVersion: networking.k8s.io/v1
@@ -432,20 +432,20 @@ metadata:
432
432
ingress.kubernetes.io/ssl-redirect: "false"
433
433
spec:
434
434
rules:
435
-
- host: eks-service-1.localhost.localstack.cloud
435
+
- host: eks-service-1.localhost.localstack.cloud
436
436
http:
437
437
paths:
438
-
- path: /v1
438
+
- path: /v1
439
439
pathType: Prefix
440
440
backend:
441
441
service:
442
442
name: service-1
443
443
port:
444
444
number: 80
445
-
- host: eks-service-2.localhost.localstack.cloud
445
+
- host: eks-service-2.localhost.localstack.cloud
446
446
http:
447
447
paths:
448
-
- path: /v1
448
+
- path: /v1
449
449
pathType: Prefix
450
450
backend:
451
451
service:
@@ -454,7 +454,7 @@ spec:
454
454
number: 80
455
455
EOF
456
456
{{< /command >}}
457
-
457
+
<!-- markdownlint-enable MD007 -->
458
458
The example defines routing rules for two local endpoints - the first rule points to a service `service-1` accessible under `/v1`, and the second rule points to a service `service-2` accessible under the same path `/v1`.
459
459
460
460
In the provided example, we define routing rules for two local endpoints.
0 commit comments