Click or drag to resize

KubeHelperExecInPod Method

Executes a command in a k8s pod.

Namespace:  Neon.Kube
Assembly:  Neon.Kube (in Neon.Kube.dll) Version: 2.1.0
Syntax
public static Task<string> ExecInPod(
	IKubernetes client,
	V1Pod pod,
	string namespace,
	string[] command
)

Parameters

client
Type: IKubernetes
The Kubernetes client to use.
pod
Type: V1Pod
The pod where the command should run.
namespace
Type: SystemString
The namespace where the pod is running.
command
Type: SystemString
The command to run.

Return Value

Type: TaskString
The command result.
See Also