From f0f8b616ed4659691e432ad58d6e87a0f6ff5497 Mon Sep 17 00:00:00 2001 From: Patryk Strugacz Date: Mon, 27 Jan 2025 11:16:14 +0100 Subject: [PATCH] Tutorial for Egress (#1259) * Tutorial for Egress * CR, fix typo * Add more steps, better descriptions, remove request * Apply suggestions from code review Co-authored-by: Natalia Sitko <80401180+nataliasitko@users.noreply.github.com> * ServiceEntry fix --------- Co-authored-by: Natalia Sitko <80401180+nataliasitko@users.noreply.github.com> --- .../01-50-send-requests-using-egress.md | 230 ++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 docs/user/tutorials/01-50-send-requests-using-egress.md diff --git a/docs/user/tutorials/01-50-send-requests-using-egress.md b/docs/user/tutorials/01-50-send-requests-using-egress.md new file mode 100644 index 000000000..a03f4837a --- /dev/null +++ b/docs/user/tutorials/01-50-send-requests-using-egress.md @@ -0,0 +1,230 @@ +# Send Requests Using Istio Egress Gateway +Learn how to configure and use the Istio egress Gateway to allow outbound traffic from your Kyma runtime cluster to specific external destinations. Test your configuration by sending an HTTPS request to an external website using a sample Deployment. + +## Prerequisites + +* You have the Istio module added. +* To use CLI instruction, you must install [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) + and [curl](https://curl.se/). + +## Steps + +1. Export the following value as an environment variable: + + ```bash + export NAMESPACE={service-namespace} + ``` + +2. Create a new namespace for the sample application: + ```bash + kubectl create ns $NAMESPACE + kubectl label namespace $NAMESPACE istio-injection=enabled --overwrite + ``` + +3. Enable the egress Gateway in the Istio custom resource: + ```bash + kubectl apply -f - <