KubectlAliases.

KubectlTopWithResult(ICakeContext, KubectlTopSettings) Method

Summary

Display Resource (CPU/Memory) usage. The top command allows you to see the resource consumption for nodes or pods. This command requires Metrics Server to be correctly configured and working on the server.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlTopWithResult(this ICakeContext context, KubectlTopSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.