Skip to content
Open
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
12 changes: 12 additions & 0 deletions docs/network/service_objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,15 @@ Use `vinagre` client to connect your VirtualMachineInstance by using the
public IP and port.

Note that here the external port here (31829) was dynamically allocated.

## Service lifecycle

Service objects may be created explicitly by a user or implicitly
through the `virtctl expose` command.

While creating the service explicitly, it is up to the user to explicitly
clean up the service.
From v1.9 the implicit service creation through `virtctl expose` adds an
[`ownerReference`](https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/) to the service object, binding the service to the VM/VMI.
As a result, the service will be collected by the k8s garbage-collector once
the referenced object (e.g. VMI) is deleted.