Interface IKubernetes
Namespace: k8s
Assembly: KubernetesClient.dll
Syntax
public interface IKubernetes : IDisposable
Properties
View Source
Admissionregistration
Declaration
IAdmissionregistrationOperations Admissionregistration { get; }
Property Value
View Source
AdmissionregistrationV1
Declaration
IAdmissionregistrationV1Operations AdmissionregistrationV1 { get; }
Property Value
View Source
AdmissionregistrationV1alpha1
Declaration
IAdmissionregistrationV1alpha1Operations AdmissionregistrationV1alpha1 { get; }
Property Value
View Source
AdmissionregistrationV1beta1
Declaration
IAdmissionregistrationV1beta1Operations AdmissionregistrationV1beta1 { get; }
Property Value
View Source
Apiextensions
Declaration
IApiextensionsOperations Apiextensions { get; }
Property Value
View Source
ApiextensionsV1
Declaration
IApiextensionsV1Operations ApiextensionsV1 { get; }
Property Value
View Source
Apiregistration
Declaration
IApiregistrationOperations Apiregistration { get; }
Property Value
View Source
ApiregistrationV1
Declaration
IApiregistrationV1Operations ApiregistrationV1 { get; }
Property Value
View Source
Apis
Declaration
IApisOperations Apis { get; }
Property Value
View Source
Apps
Declaration
IAppsOperations Apps { get; }
Property Value
View Source
AppsV1
Declaration
IAppsV1Operations AppsV1 { get; }
Property Value
View Source
Authentication
Declaration
IAuthenticationOperations Authentication { get; }
Property Value
View Source
AuthenticationV1
Declaration
IAuthenticationV1Operations AuthenticationV1 { get; }
Property Value
View Source
Authorization
Declaration
IAuthorizationOperations Authorization { get; }
Property Value
View Source
AuthorizationV1
Declaration
IAuthorizationV1Operations AuthorizationV1 { get; }
Property Value
View Source
Autoscaling
Declaration
IAutoscalingOperations Autoscaling { get; }
Property Value
View Source
AutoscalingV1
Declaration
IAutoscalingV1Operations AutoscalingV1 { get; }
Property Value
View Source
AutoscalingV2
Declaration
IAutoscalingV2Operations AutoscalingV2 { get; }
Property Value
View Source
BaseUri
The base URI of the service.
Declaration
Uri BaseUri { get; set; }
Property Value
View Source
Batch
Declaration
IBatchOperations Batch { get; }
Property Value
View Source
BatchV1
Declaration
IBatchV1Operations BatchV1 { get; }
Property Value
View Source
Certificates
Declaration
ICertificatesOperations Certificates { get; }
Property Value
View Source
CertificatesV1
Declaration
ICertificatesV1Operations CertificatesV1 { get; }
Property Value
View Source
CertificatesV1alpha1
Declaration
ICertificatesV1alpha1Operations CertificatesV1alpha1 { get; }
Property Value
View Source
CertificatesV1beta1
Declaration
ICertificatesV1beta1Operations CertificatesV1beta1 { get; }
Property Value
View Source
Coordination
Declaration
ICoordinationOperations Coordination { get; }
Property Value
View Source
CoordinationV1
Declaration
ICoordinationV1Operations CoordinationV1 { get; }
Property Value
View Source
CoordinationV1alpha2
Declaration
ICoordinationV1alpha2Operations CoordinationV1alpha2 { get; }
Property Value
View Source
CoordinationV1beta1
Declaration
ICoordinationV1beta1Operations CoordinationV1beta1 { get; }
Property Value
View Source
Core
Declaration
ICoreOperations Core { get; }
Property Value
View Source
CoreV1
Declaration
ICoreV1Operations CoreV1 { get; }
Property Value
View Source
CustomObjects
Declaration
ICustomObjectsOperations CustomObjects { get; }
Property Value
View Source
Discovery
Declaration
IDiscoveryOperations Discovery { get; }
Property Value
View Source
DiscoveryV1
Declaration
IDiscoveryV1Operations DiscoveryV1 { get; }
Property Value
View Source
Events
Declaration
IEventsOperations Events { get; }
Property Value
View Source
EventsV1
Declaration
IEventsV1Operations EventsV1 { get; }
Property Value
View Source
FlowcontrolApiserver
Declaration
IFlowcontrolApiserverOperations FlowcontrolApiserver { get; }
Property Value
View Source
FlowcontrolApiserverV1
Declaration
IFlowcontrolApiserverV1Operations FlowcontrolApiserverV1 { get; }
Property Value
View Source
InternalApiserver
Declaration
IInternalApiserverOperations InternalApiserver { get; }
Property Value
View Source
InternalApiserverV1alpha1
Declaration
IInternalApiserverV1alpha1Operations InternalApiserverV1alpha1 { get; }
Property Value
View Source
Logs
Declaration
ILogsOperations Logs { get; }
Property Value
View Source
Networking
Declaration
INetworkingOperations Networking { get; }
Property Value
View Source
NetworkingV1
Declaration
INetworkingV1Operations NetworkingV1 { get; }
Property Value
View Source
NetworkingV1beta1
Declaration
INetworkingV1beta1Operations NetworkingV1beta1 { get; }
Property Value
View Source
Node
Declaration
INodeOperations Node { get; }
Property Value
View Source
NodeV1
Declaration
INodeV1Operations NodeV1 { get; }
Property Value
View Source
Openid
Declaration
IOpenidOperations Openid { get; }
Property Value
View Source
Policy
Declaration
IPolicyOperations Policy { get; }
Property Value
View Source
PolicyV1
Declaration
IPolicyV1Operations PolicyV1 { get; }
Property Value
View Source
RbacAuthorization
Declaration
IRbacAuthorizationOperations RbacAuthorization { get; }
Property Value
View Source
RbacAuthorizationV1
Declaration
IRbacAuthorizationV1Operations RbacAuthorizationV1 { get; }
Property Value
View Source
Resource
Declaration
IResourceOperations Resource { get; }
Property Value
View Source
ResourceV1
Declaration
IResourceV1Operations ResourceV1 { get; }
Property Value
View Source
ResourceV1alpha3
Declaration
IResourceV1alpha3Operations ResourceV1alpha3 { get; }
Property Value
View Source
ResourceV1beta1
Declaration
IResourceV1beta1Operations ResourceV1beta1 { get; }
Property Value
View Source
ResourceV1beta2
Declaration
IResourceV1beta2Operations ResourceV1beta2 { get; }
Property Value
View Source
Scheduling
Declaration
ISchedulingOperations Scheduling { get; }
Property Value
View Source
SchedulingV1
Declaration
ISchedulingV1Operations SchedulingV1 { get; }
Property Value
View Source
Storage
Declaration
IStorageOperations Storage { get; }
Property Value
View Source
StorageV1
Declaration
IStorageV1Operations StorageV1 { get; }
Property Value
View Source
StorageV1alpha1
Declaration
IStorageV1alpha1Operations StorageV1alpha1 { get; }
Property Value
View Source
StorageV1beta1
Declaration
IStorageV1beta1Operations StorageV1beta1 { get; }
Property Value
View Source
Storagemigration
Declaration
IStoragemigrationOperations Storagemigration { get; }
Property Value
View Source
StoragemigrationV1alpha1
Declaration
IStoragemigrationV1alpha1Operations StoragemigrationV1alpha1 { get; }
Property Value
View Source
Version
Declaration
IVersionOperations Version { get; }
Property Value
View Source
WellKnown
Declaration
IWellKnownOperations WellKnown { get; }
Property Value
Methods
View Source
MuxedStreamNamespacedPodExecAsync(string, string, IEnumerable<string>, string, bool, bool, bool, bool, string, Dictionary<string, List<string>>, CancellationToken)
Executes a command in a pod.
Declaration
Task<IStreamDemuxer> MuxedStreamNamespacedPodExecAsync(string name, string @namespace = "default", IEnumerable<string> command = null, string container = null, bool stderr = true, bool stdin = true, bool stdout = true, bool tty = true, string webSocketSubProtocol = "v4.channel.k8s.io", Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| string |
name |
name of the Pod
|
| string |
namespace |
object name and auth scope, such as for teams and projects
|
| IEnumerable<string> |
command |
Command is the remote command to execute. argv array. Not executed within a
shell.
|
| string |
container |
Container in which to execute the command. Defaults to only container if
there is only one container in the pod.
|
| bool |
stderr |
Redirect the standard error stream of the pod for this call. Defaults to
true.
|
| bool |
stdin |
Redirect the standard input stream of the pod for this call. Defaults to
true.
|
| bool |
stdout |
Redirect the standard output stream of the pod for this call. Defaults to
true.
|
| bool |
tty |
TTY if true indicates that a tty will be allocated for the exec call.
Defaults to true.
|
| string |
webSocketSubProtocol |
The Kubernetes-specific WebSocket sub protocol to use. See WebSocketProtocol for a list of available
protocols.
|
| Dictionary<string, List<string>> |
customHeaders |
Headers that will be added to request.
|
| CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Exceptions
View Source
NamespacedPodExecAsync(string, string, string, IEnumerable<string>, bool, ExecAsyncCallback, CancellationToken)
Executes a command in a container in a pod.
Declaration
Task<int> NamespacedPodExecAsync(string name, string @namespace, string container, IEnumerable<string> command, bool tty, ExecAsyncCallback action, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| string |
name |
The name of the pod which contains the container in which to execute the command.
|
| string |
namespace |
The namespace of the container.
|
| string |
container |
The container in which to run the command.
|
| IEnumerable<string> |
command |
The command to execute.
|
| bool |
tty |
if allocate a pseudo-TTY
|
| ExecAsyncCallback |
action |
A callback which processes the standard input, standard output and standard error.
|
| CancellationToken |
cancellationToken |
A CancellationToken which can be used to cancel the asynchronous operation.
|
Returns
| Type |
Description |
| Task<int> |
A Task which represents the asynchronous operation.
|
View Source
WebSocketNamespacedPodAttachAsync(string, string, string, bool, bool, bool, bool, string, Dictionary<string, List<string>>, CancellationToken)
connect GET requests to attach of Pod
Declaration
Task<WebSocket> WebSocketNamespacedPodAttachAsync(string name, string @namespace, string container = null, bool stderr = true, bool stdin = false, bool stdout = true, bool tty = false, string webSocketSubProtocol = null, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| string |
name |
name of the Pod
|
| string |
namespace |
object name and auth scope, such as for teams and projects
|
| string |
container |
The container in which to execute the command. Defaults to only container
if there is only one container in the pod.
|
| bool |
stderr |
Stderr if true indicates that stderr is to be redirected for the attach
call. Defaults to true.
|
| bool |
stdin |
stdin if true, redirects the standard input stream of the pod for this
call. Defaults to false.
|
| bool |
stdout |
Stdout if true indicates that stdout is to be redirected for the attach
call. Defaults to true.
|
| bool |
tty |
TTY if true indicates that a tty will be allocated for the attach call.
This is passed through the container runtime so the tty is allocated on the
worker node by the container runtime. Defaults to false.
|
| string |
webSocketSubProtocol |
The Kubernetes-specific WebSocket sub protocol to use. See WebSocketProtocol for a list of available
protocols.
|
| Dictionary<string, List<string>> |
customHeaders |
Headers that will be added to request.
|
| CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
| Type |
Description |
| Task<WebSocket> |
A response object containing the response body and response headers.
|
View Source
WebSocketNamespacedPodExecAsync(string, string, IEnumerable<string>, string, bool, bool, bool, bool, string, Dictionary<string, List<string>>, CancellationToken)
Executes a command in a pod.
Declaration
Task<WebSocket> WebSocketNamespacedPodExecAsync(string name, string @namespace = "default", IEnumerable<string> command = null, string container = null, bool stderr = true, bool stdin = true, bool stdout = true, bool tty = true, string webSocketSubProtocol = null, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| string |
name |
name of the Pod
|
| string |
namespace |
object name and auth scope, such as for teams and projects
|
| IEnumerable<string> |
command |
Command is the remote command to execute. argv array. Not executed within a
shell.
|
| string |
container |
Container in which to execute the command. Defaults to only container if
there is only one container in the pod.
|
| bool |
stderr |
Redirect the standard error stream of the pod for this call. Defaults to
true.
|
| bool |
stdin |
Redirect the standard input stream of the pod for this call. Defaults to
true.
|
| bool |
stdout |
Redirect the standard output stream of the pod for this call. Defaults to
true.
|
| bool |
tty |
TTY if true indicates that a tty will be allocated for the exec call.
Defaults to true.
|
| string |
webSocketSubProtocol |
The Kubernetes-specific WebSocket sub protocol to use. See WebSocketProtocol for a list of available
protocols.
|
| Dictionary<string, List<string>> |
customHeaders |
Headers that will be added to request.
|
| CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Exceptions
View Source
WebSocketNamespacedPodExecAsync(string, string, string, string, bool, bool, bool, bool, string, Dictionary<string, List<string>>, CancellationToken)
Executes a command in a pod.
Declaration
Task<WebSocket> WebSocketNamespacedPodExecAsync(string name, string @namespace = "default", string command = null, string container = null, bool stderr = true, bool stdin = true, bool stdout = true, bool tty = true, string webSocketSubProtocol = null, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| string |
name |
name of the Pod
|
| string |
namespace |
object name and auth scope, such as for teams and projects
|
| string |
command |
Command is the remote command to execute. argv array. Not executed within a
shell.
|
| string |
container |
Container in which to execute the command. Defaults to only container if
there is only one container in the pod.
|
| bool |
stderr |
Redirect the standard error stream of the pod for this call. Defaults to
true.
|
| bool |
stdin |
Redirect the standard input stream of the pod for this call. Defaults to
true.
|
| bool |
stdout |
Redirect the standard output stream of the pod for this call. Defaults to
true.
|
| bool |
tty |
TTY if true indicates that a tty will be allocated for the exec call.
Defaults to true.
|
| string |
webSocketSubProtocol |
The Kubernetes-specific WebSocket sub protocol to use. See WebSocketProtocol for a list of available
protocols.
|
| Dictionary<string, List<string>> |
customHeaders |
Headers that will be added to request.
|
| CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Exceptions
View Source
WebSocketNamespacedPodPortForwardAsync(string, string, IEnumerable<int>, string, Dictionary<string, List<string>>, CancellationToken)
Start port forwarding one or more ports of a pod.
Declaration
Task<WebSocket> WebSocketNamespacedPodPortForwardAsync(string name, string @namespace, IEnumerable<int> ports, string webSocketSubProtocol = null, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| string |
name |
The name of the Pod
|
| string |
namespace |
The object name and auth scope, such as for teams and projects
|
| IEnumerable<int> |
ports |
List of ports to forward.
|
| string |
webSocketSubProtocol |
The Kubernetes-specific WebSocket sub protocol to use. See WebSocketProtocol for a list of available
protocols.
|
| Dictionary<string, List<string>> |
customHeaders |
The headers that will be added to request.
|
| CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Extension Methods