Skip to main content
Version: 0.83.5


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

# The IP address of the service

# The name of the service

# 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)

# 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.