public class Kubectl extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Kubectl.Executable<OUTPUT>
Executable executes a kubectl helper.
|
Constructor and Description |
---|
Kubectl() |
Modifier and Type | Method and Description |
---|---|
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
annotate(Class<ApiType> apiTypeClass)
Equivalence for `kubectl annotate`.
|
static KubectlApiResources |
apiResources() |
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
apply(Class<ApiType> clazz)
Equivalent for `kubectl apply`
|
static KubectlCopy |
copy()
Equivalence for `kubectl cp`.
|
static KubectlCordon |
cordon()
Equivalent for `kubectl cordon`
|
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
create(Class<ApiType> clazz)
Equivalent for `kubectl create`
|
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
delete(Class<ApiType> clazz)
Equivalent for `kubectl delete`
|
static KubectlDrain |
drain()
Equivalent for `kubectl drain`
|
static KubectlExec |
exec()
Equivalent for `kubectl exec`
|
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
get(Class<ApiType> apiTypeClass)
Equivalent for `kubectl get`
|
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
label(Class<ApiType> apiTypeClass)
Equivalence for `kubectl label`.
|
static KubectlLog |
log()
Equivalent for `kubectl log`
|
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
patch(Class<ApiType> apiTypeClass)
Equivalent for `Kubectl patch`
|
static KubectlPortForward |
portforward() |
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
replace(Class<ApiType> clazz)
Equivalent for `kubectl replace`
|
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
rollout(Class<ApiType> apiTypeClass)
Equivalent for `kubectl rollout history`
|
static <ApiType extends io.kubernetes.client.common.KubernetesObject> |
scale(Class<ApiType> apiTypeClass)
Equivalent for `kubectl scale`
|
static KubectlTaint |
taint()
Equivalence for `kubectl taint`.
|
static <ApiType extends io.kubernetes.client.common.KubernetesObject,MetricsType> |
top(Class<ApiType> apiTypeClass,
Class<MetricsType> metricsTypeClass)
Equivalent for `kubectl top`
|
static KubectlCordon |
uncordon()
Equivalent for `kubectl uncordon`
|
static KubectlVersion |
version()
Equivalence for `kubectl version`.
|
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlGet<ApiType> get(Class<ApiType> apiTypeClass)
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlCreate<ApiType> create(Class<ApiType> clazz)
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlDelete<ApiType> delete(Class<ApiType> clazz)
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlReplace<ApiType> replace(Class<ApiType> clazz)
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlApply<ApiType> apply(Class<ApiType> clazz)
public static KubectlDrain drain()
public static KubectlCordon cordon()
public static KubectlCordon uncordon()
public static <ApiType extends io.kubernetes.client.common.KubernetesObject,MetricsType> KubectlTop<ApiType,MetricsType> top(Class<ApiType> apiTypeClass, Class<MetricsType> metricsTypeClass)
apiTypeClass
- Must be either V1Pod.class or V1Node.classpublic static KubectlTaint taint()
public static KubectlCopy copy()
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlLabel<ApiType> label(Class<ApiType> apiTypeClass)
ApiType
- the target api typeapiTypeClass
- the api type classpublic static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlAnnotate<ApiType> annotate(Class<ApiType> apiTypeClass)
ApiType
- the target api typeapiTypeClass
- the api type classpublic static KubectlVersion version()
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlScale<ApiType> scale(Class<ApiType> apiTypeClass)
ApiType
- the target api typeapiTypeClass
- the api type classpublic static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlRollout<ApiType> rollout(Class<ApiType> apiTypeClass)
ApiType
- the target api typeapiTypeClass
- the api type classpublic static KubectlExec exec()
public static KubectlLog log()
public static KubectlPortForward portforward()
public static KubectlApiResources apiResources()
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> KubectlPatch<ApiType> patch(Class<ApiType> apiTypeClass)
ApiType
- apiTypeClass
- Copyright © 2022. All rights reserved.