Skip to content

Commit

Permalink
fixes for emissary and ingress docs (#3255)
Browse files Browse the repository at this point in the history
Signed-off-by: jonahjon <[email protected]>

Signed-off-by: jonahjon <[email protected]>
  • Loading branch information
jonahjon authored Sep 2, 2022
1 parent 7cd59fd commit 698ad36
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
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

0 comments on commit 698ad36

Please sign in to comment.