Optional ReadonlyconditionsOptional ReadonlycontainerThe container command
Optional ReadonlycontainerThe container image
Optional ReadonlycontainerThe container name
Optional ReadonlydeletionThe deletion timestamp of the pod
Optional ReadonlylabelsThe labels of the pod
Optional ReadonlypodThe pod IP
ReadonlypodThe pod reference
Optional ReadonlystartupThe command to run for the startup probe
Get a pod by name and namespace, will check every 1 second until the pod is no longer found. Can throw a SoloError if there is an error while deleting the pod.
Port forward a port from a pod to localhost
This simple server just forwards traffic from itself to a service running in kubernetes -> localhost:localPort -> port-forward-tunnel -> kubernetes-pod:targetPort
the local port to forward to
the port on the pod to forward from
if true, the port forward will run in the background and return the port number
Optionalreuse: booleanif true, reuse the port number from previous port forward operation
Promise resolving to the port forwarder server when not detached, or the port number (which may differ from localPort if it was in use) when detached
Optionaldetach: falseOptionalreuse: booleanStop the port forward
an instance of server returned by portForward method
OptionalmaxAttempts: numberthe maximum number of attempts to check if the server is stopped
Optionaltimeout: numberthe delay between checks in milliseconds
The conditions of the pod