csharp
public sealed class ClusterApiThe real one, over KubernetesClient.
Methods (9)
public ClusterApi(IKubernetes client)The real one, over KubernetesClient.
public static IKubernetes? Connect()Builds a client from the environment: in-cluster first, then a kubeconfig.
public Task<string> VersionAsync(CancellationToken cancellation)Asks the API server what it is.
public Task<V1Pod> CreatePodAsync(V1Pod pod, string space, CancellationToken cancellation)Creates a pod.
public Task<V1Pod?> ReadPodAsync(string name, string space, CancellationToken cancellation)Reads a pod back.
public Task DeletePodAsync(string name, string space, TimeSpan grace, CancellationToken cancellation)Deletes a pod.
public Task<IReadOnlyList<V1Pod>> ListPodsAsync(string space, string selector, CancellationToken cancellation)Lists the pods carrying a label selector.
public Task<V1Node?> ReadNodeAsync(string name, CancellationToken cancellation)Reads a node, for the address a player can actually reach.
public IAsyncEnumerable<string> FollowLogAsync(string name, string space, CancellationToken cancellation)Follows a pod's output, a line at a time.