Egress Gateway Policy
This guide demonstrates a client within the service mesh accessing destinations external to the mesh via egress gateway using FSM’s Egress policy API.
Prerequisites
- Kubernetes cluster version v1.19.0 or higher.
- Interact with the API server using
kubectl
. - FSM CLI installed.
- FSM Ingress Controller installed followed by installation document
Egress Gateway passthrough demo
Deploy egress gateway during FSM installation.
Or, enable egress gateway with FSM CLI.
There are more options supported by
fsm egressgateway enable
.Disable global egress passthrough to enable egress policy if not disabled:
Deploy the
curl
client into thecurl
namespace after enrolling its namespace to the mesh.Confirm the
curl
client pod is up and running.Confirm the
curl
client is unable make the HTTP requesthttp://httpbin.org:80/get
to thehttpbin.org
website on port80
.Apply an Egress policy to allow the
curl
client’s ServiceAccount to access thehttpbin.org
website on port80
serving thehttp
protocol.Confirm the
curl
client is able to make successful HTTP requests tohttp://httpbin.org:80/get
.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.