Skip to content

Commit

Permalink
update service status (#240)
Browse files Browse the repository at this point in the history
* update service status
  • Loading branch information
pwright authored May 13, 2024
1 parent 4a373e1 commit b585dbf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
19 changes: 18 additions & 1 deletion cli/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,26 @@ 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`
NOTE: If you do not specify ports, `skupper` uses the `containerPort` value of the deployment.
--
NOTE: If you do not specify ports, `skupper` uses the `containerPort` value of the deployment.
. Check the status of services exposed on the {service-network} (`-v` is only available on Kubernetes):
+
--
[source, bash]
----
$ skupper service status -v
Services exposed through Skupper:
╰─ backend:8080 (tcp)
╰─ Sites:
├─ 4d80f485-52fb-4d84-b10b-326b96e723b2(west)
│ policy: disabled
╰─ 316fbe31-299b-490b-9391-7b46507d76f1(east)
│ policy: disabled
╰─ Targets:
╰─ backend:8080 name=backend-9d84544df-rbzjx
----
// Type: procedure
[id="exposing-complex-services"]
Expand Down
18 changes: 12 additions & 6 deletions troubleshooting/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,27 @@ The output shows:
* Details for each site, for example the namespace names.
--
. Check the status of services exposed on the {service-network}:
. Check the status of services exposed on the {service-network} (`-v` is only available on Kubernetes):
+
--
[source, bash]
----
$ skupper service status
$ skupper service status -v
Services exposed through Skupper:
╰─ backend (tcp port 8080)
╰─ Targets:
╰─ app=backend name=backend
╰─ backend:8080 (tcp)
╰─ Sites:
├─ 4d80f485-52fb-4d84-b10b-326b96e723b2(west)
│ policy: disabled
╰─ 316fbe31-299b-490b-9391-7b46507d76f1(east)
│ policy: disabled
╰─ Targets:
╰─ backend:8080 name=backend-9d84544df-rbzjx
----

The output shows the `backend` service and the related target of that service.

NOTE: The related targets for services are only displayed when the target is available on the current cluster.
NOTE: As part of output each site reports the status of the policy system on that cluster.

--

. List the Skupper events for a site:
Expand Down
13 changes: 9 additions & 4 deletions yaml/annotations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,16 @@ This allows you to delete and recreate the `backend` service without having to a

[source, bash]
----
$ skupper service status
$ skupper service status -v
Services exposed through Skupper:
╰─ backend (tcp port 8080)
╰─ Targets:
╰─ app=hello-world-backend name=hello-world-backend
╰─ backend:8080 (tcp)
╰─ Sites:
├─ 4d80f485-52fb-4d84-b10b-326b96e723b2(west)
│ policy: disabled
╰─ 316fbe31-299b-490b-9391-7b46507d76f1(east)
│ policy: disabled
╰─ Targets:
╰─ backend:8080 name=backend-9d84544df-rbzjx
----

NOTE: The related targets for services are only displayed when the target is available on the current cluster.
Expand Down

0 comments on commit b585dbf

Please sign in to comment.