From 8fd1652c4368de534ee17483d0042dd9515f5782 Mon Sep 17 00:00:00 2001 From: Paul Wright Date: Tue, 13 Feb 2024 13:25:12 +0000 Subject: [PATCH] exposing native services --- cli/podman.adoc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cli/podman.adoc b/cli/podman.adoc index c907907..c18dc89 100644 --- a/cli/podman.adoc +++ b/cli/podman.adoc @@ -429,11 +429,28 @@ $ podman ps -a --format "{{.ID}} {{.Image}} {{.Labels}}" . Make sure you are logged in as the user that created the site: + -- +-- [source, bash] ---- $ skupper status Skupper is enabled for "" with site name "-". ---- + +If you are exposing a service that is running on the same host as your site that is not a podman container, you need to specify an external IP address, not `localhost`. + +For example, you can find the currently used IP address with the following command: +[source, bash] +---- +$ ip route get 8.8.8.8 | head -1 | awk ' {print $(NF-2) }' +10.32.241.97 +---- + +Use that IP address when exposing the service: + +[source, bash] +---- +skupper expose host 10.32.241.97 --address backend --port 8080 +---- -- . Delete the site and all podman resources (containers, volumes and networks) labeled with "application=skupper":