Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complete service lifecycle #249

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions cli/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,60 @@ Services exposed through Skupper:
----
--

// Type: procedure
[id="kubernetes_deleting-services"]
=== Deleting services from the {service-network}
This section describes how services can be disabled for a {service-network}.

.Prerequisites

* A {service-network}
* An exposed service

.Procedure

. Navigate to the context where the service was exposed.

. Delete the service:
+
--
[source, bash]
----
$ skupper service delete <service-name>
----

where `service-name` is the name of the service you want to remove.

[NOTE]
====
TCP connections can remain active for an extended duration.
After deleting the service, existing connections continue to communicate until the TCP connection is terminated.
For example, if you exposed a database connection over the {service-network}, and then delete the service.
New database connections cannot be established.
However, deleting the service does not affect existing connections.
To terminate the existing connection, manually stop the database connection.
====
--

. Check that the service is removed.
+
--
[source, bash]
----
$ skupper service status
----

The service should not be listed.

[NOTE]
====
Typically, if the service is still listed, it is because you issued the `delete` command from the wrong site context.
By default, when you expose a service from a site, that service becomes available on all other sites, however you can delete the service only from the original site context.
====

--


// Type: procedure
[id="exposing-complex-services"]
=== Exposing complex services on the {service-network}
Expand Down
Loading