Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for emissary and ingress docs #3255

Merged
merged 1 commit into from
Sep 2, 2022
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/content/en/docs/tasks/packages/emissary/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ description: >

Please see [complete configuration options]({{< relref "../../../reference/packagespec/emissary" >}}) for all configuration options and their default values.

Example package file with bgp configuration:
Example package file with standard configuration.
```yaml
apiVersion: packages.eks.amazonaws.com/v1alpha1
kind: Package
Expand Down
40 changes: 27 additions & 13 deletions docs/content/en/docs/tasks/workload/ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,40 @@ For information on how to configure a Emissary Ingress curated package for EKS A

3. Install Emissary Ingress: Follow the instructions here [Add Emissary Ingress]({{< relref "../../tasks/packages/emissary" >}})

4. Create Ambassador Service with Type LoadBalancer.

4. Create Emissary Listeners on your cluster (This is a one time setup).
```bash
kubectl apply -f - <<EOF
---
apiVersion: v1
kind: Service
apiVersion: getambassador.io/v3alpha1
kind: Listener
metadata:
name: http-listener
namespace: default
spec:
port: 8080
protocol: HTTPS
securityModel: XFP
hostBinding:
namespace:
from: ALL
---
apiVersion: getambassador.io/v3alpha1
kind: Listener
metadata:
name: ambassador
name: https-listener
namespace: default
spec:
type: LoadBalancer
externalTrafficPolicy: Local
ports:
- port: 80
targetPort: 8080
selector:
service: ambassador
port: 8443
protocol: HTTPS
securityModel: XFP
hostBinding:
namespace:
from: ALL
EOF
```

5. Create a Mapping on your cluster. This Mapping tells Emissary-ingress to route all traffic inbound to the /backend/ path to the quote Service.
5. Create a Mapping on your cluster. This Mapping tells Emissary-ingress to route all traffic inbound to the /backend/ path to the Hello EKS Anywhere Service. This hostname IP is the IP found from the LoadBalancer resource deployed by MetalLB for you.

```bash
kubectl apply -f - <<EOF
Expand All @@ -53,6 +66,7 @@ For information on how to configure a Emissary Ingress curated package for EKS A
spec:
prefix: /backend/
service: hello-eks-a
hostname: "195.16.99.65"
EOF
```

Expand Down