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

Correcting commands in Ingress configuration from EKS docs. #1456

Merged
merged 5 commits into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions content/en/user-guide/aws/eks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ spec:
selector:
app: fancier-nginx
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
- name: http
protocol: TCP
port: 80
targetPort: 80
EOF
{{< /command >}}

Expand All @@ -272,15 +272,15 @@ metadata:
ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- http:
paths:
- path: /test123
pathType: Prefix
backend:
service:
name: nginx
port:
number: 80
- http:
paths:
- path: /test123
pathType: Prefix
backend:
service:
name: nginx
port:
number: 80
EOF
{{< /command >}}

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

To address this requirement, we recommend utilizing host-based routing rules, as demonstrated in the example below:

<!-- markdownlint-disable MD007 -->
{{< command >}}
$ cat <<EOF | kubectl apply -f -
apiVersion: networking.k8s.io/v1
Expand All @@ -432,20 +432,20 @@ metadata:
ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- host: eks-service-1.localhost.localstack.cloud
- host: eks-service-1.localhost.localstack.cloud
http:
paths:
- path: /v1
- path: /v1
pathType: Prefix
backend:
service:
name: service-1
port:
number: 80
- host: eks-service-2.localhost.localstack.cloud
- host: eks-service-2.localhost.localstack.cloud
http:
paths:
- path: /v1
- path: /v1
pathType: Prefix
backend:
service:
Expand All @@ -454,7 +454,7 @@ spec:
number: 80
EOF
{{< /command >}}

<!-- markdownlint-enable MD007 -->
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`.

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