Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit aba80f0

Browse files
authored
Correcting commands in Ingress configuration from EKS docs. (#1456)
1 parent eb033a6 commit aba80f0

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

content/en/user-guide/aws/eks/index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ spec:
253253
selector:
254254
app: fancier-nginx
255255
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
260260
EOF
261261
{{< /command >}}
262262

@@ -272,15 +272,15 @@ metadata:
272272
ingress.kubernetes.io/ssl-redirect: "false"
273273
spec:
274274
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
284284
EOF
285285
{{< /command >}}
286286

@@ -421,7 +421,7 @@ For instance, you might have multiple microservices, each following a common pat
421421
In such cases, path-based routing may not be ideal if you need the services to be accessible in a uniform manner.
422422

423423
To address this requirement, we recommend utilizing host-based routing rules, as demonstrated in the example below:
424-
424+
<!-- markdownlint-disable MD007 -->
425425
{{< command >}}
426426
$ cat <<EOF | kubectl apply -f -
427427
apiVersion: networking.k8s.io/v1
@@ -432,20 +432,20 @@ metadata:
432432
ingress.kubernetes.io/ssl-redirect: "false"
433433
spec:
434434
rules:
435-
- host: eks-service-1.localhost.localstack.cloud
435+
- host: eks-service-1.localhost.localstack.cloud
436436
http:
437437
paths:
438-
- path: /v1
438+
- path: /v1
439439
pathType: Prefix
440440
backend:
441441
service:
442442
name: service-1
443443
port:
444444
number: 80
445-
- host: eks-service-2.localhost.localstack.cloud
445+
- host: eks-service-2.localhost.localstack.cloud
446446
http:
447447
paths:
448-
- path: /v1
448+
- path: /v1
449449
pathType: Prefix
450450
backend:
451451
service:
@@ -454,7 +454,7 @@ spec:
454454
number: 80
455455
EOF
456456
{{< /command >}}
457-
457+
<!-- markdownlint-enable MD007 -->
458458
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`.
459459

460460
In the provided example, we define routing rules for two local endpoints.

0 commit comments

Comments
 (0)