Skip to content

Pod

Bases: DuploResourceV2

Commands

apply

Apply a service.

Parameters:

--file, -f, --cli-input
A file to read the input from
FileType('r') action: YamlAction
--wait, -w
Wait for the operation to complete

find

Find a Pod by name.

cli usage
duploctl pod find <name>

Returns:

Name Type Description
resource dict

The Pod object.

Raises:

Type Description
DuploError

If the {{kind}} could not be found.

Parameters:

name positional
The resource name
str

list

Retrieve a List of Pod

cli usage
duploctl pod list

Returns:

Name Type Description
list list

A list of Pod.

logs

View Pod Logs

Retrieve logs for a pod and print to stderr. This methods does not return anything.

CLI Usage
duploctl pod logs <name>

Parameters:

name positional
The resource name
str

Methods

name_from_body