Skip to content

Commit

Permalink
exposing native services
Browse files Browse the repository at this point in the history
  • Loading branch information
pwright committed Aug 29, 2024
1 parent 04c5ec1 commit 8fd1652
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cli/podman.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<username>" with site name "<machine-name>-<username>".
----

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":
Expand Down

0 comments on commit 8fd1652

Please sign in to comment.