This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Kubectl.
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.
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. |