Skip to main content
Version: 0.80.0

Service

The Service object encapsulates service information returned by the Plan.add_service and Plan.add_services functions.

It has the following properties (all of which are future references, because runtime values don't exist at interpretation time):

# The hostname of the service
service.hostname


# The IP address of the service
service.ip_address


# The name of the service
service.name


# A dictionary of port IDs -> PortSpec objects, as specified in the "ports" field
# of the ServiceConfig used to create the service
# (see the PortSpec and ServiceConfig entries in the sidebar for more information)
service.ports

# For example:
some_port_spec = service.ports["some-port-id"]

Note that you cannot manually create a Service object; it is only returned by Kurtosis via Plan.add_service and Plan.add_services.