KubectlAliases.

KubectlClusterInfoDumpWithResult(ICakeContext, KubectlClusterInfoDumpSettings) Method

Summary

Dumps cluster info out suitable for debugging and diagnosing cluster problems. By default, dumps everything to stdout. You can optionally specify a directory with --output-directory. If you specify a directory, kubernetes will build a set of files in that directory. By default only dumps things in the 'kube-system' namespace, but you can switch to a different namespace with the --namespaces flag, or specify --all-namespaces to dump all namespaces. The command also dumps the logs of all of the pods in the cluster, these logs are dumped into different directories based on namespace and pod name.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlClusterInfoDumpWithResult(this ICakeContext context, KubectlClusterInfoDumpSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings KubectlClusterInfoDumpSettings The settings.

Return Value

Type Description
IEnumerable<string> Output lines.