content/en/boilerplates/before-you-begin-egress.md
Setup Istio by following the instructions in the Installation guide.
{{< tip >}}
The egress gateway and access logging will be enabled if you install the demo
configuration profile.
{{< /tip >}}
Deploy the [curl]({{< github_tree >}}/samples/curl) sample app to use as a test source for sending requests. If you have automatic sidecar injection enabled, run the following command to deploy the sample app:
{{< text bash >}} $ kubectl apply -f @samples/curl/curl.yaml@ {{< /text >}}
Otherwise, manually inject the sidecar before deploying the curl application with the following command:
{{< text bash >}} $ kubectl apply -f <(istioctl kube-inject -f @samples/curl/curl.yaml@) {{< /text >}}
{{< tip >}}
You can use any pod with curl installed as a test source.
{{< /tip >}}
Set the SOURCE_POD environment variable to the name of your source pod:
{{< text bash >}} $ export SOURCE_POD=$(kubectl get pod -l app=curl -o jsonpath={.items..metadata.name}) {{< /text >}}