Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pwright committed Aug 30, 2024
1 parent 8fd1652 commit 7fb51e8
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions cli/podman.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ This section describes how services can be enabled for a {service-network} for s
$ podman run --name backend-target --network skupper --detach --rm -p 8080:8080 quay.io/skupper/hello-world-backend
----
+
This step is not Skupper-specific, that is, this process is unchanged from standard processes for your host.
This step is not Skupper-specific, that is, this process is unchanged from standard processes for your host, for example you might have a native process you want to expose.


. Create a service that can communicate on the {service-network}:
Expand Down Expand Up @@ -305,6 +305,13 @@ NOTE: You can specify more than one port by repeating this option.

* `--protocol <protocol>` allows you specify the protocol you want to use, `tcp`, `http` or `http2`

If you are exposing a service that is running on the same host as your site that is not a podman container, do not use `localhost`.
Instead, use `host.containers.internal` when exposing local services:

[source, bash]
----
skupper expose host host.containers.internal --address backend --port 8080
----
--

. Create the service on another site in the {service-network}:
Expand Down Expand Up @@ -355,7 +362,6 @@ For the example deployment in step 1, you create a service using the following c
$ skupper service create hello-world-backend 8080
----


--

. Bind the service to a cluster service:
Expand Down Expand Up @@ -428,37 +434,16 @@ $ 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":
+
--
[source, bash]
----
$ skupper delete
Skupper is now removed for user "<username>".
----
--

0 comments on commit 7fb51e8

Please sign in to comment.