public interface KubernetesClient extends Client
Modifier and Type | Method and Description |
---|---|
AdmissionRegistrationAPIGroupDSL |
admissionRegistration()
API entrypoint for kubernetes resources with APIGroup admissionregistration.k8s.io/v1beta1
|
ApiextensionsAPIGroupDSL |
apiextensions()
API entrypoint for apiextensions resources.
|
MixedOperation<io.fabric8.kubernetes.api.model.APIService,io.fabric8.kubernetes.api.model.APIServiceList,Resource<io.fabric8.kubernetes.api.model.APIService>> |
apiServices()
API entrypoint for APIService related operations.
|
AppsAPIGroupDSL |
apps()
API entrypoint for kubernetes resources with APIGroup apps/v1
|
AuthorizationAPIGroupDSL |
authorization()
Authorization operations.
|
AutoscalingAPIGroupDSL |
autoscaling()
API entrypoint for kubernetes resources with APIGroup autoscaling/v2beta1
|
BatchAPIGroupDSL |
batch()
API entrypoint for kubernetes resources with APIGroup batch/v1beta1
|
MixedOperation<io.fabric8.kubernetes.api.model.Binding,io.fabric8.kubernetes.api.model.KubernetesResourceList<io.fabric8.kubernetes.api.model.Binding>,Resource<io.fabric8.kubernetes.api.model.Binding>> |
bindings()
Operations for Binding resource in APIgroup core/v1
|
CertificatesAPIGroupDSL |
certificates()
API entrypoint for certificates.k8s.io APIGroup
|
NonNamespaceOperation<io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequest,io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequestList,Resource<io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequest>> |
certificateSigningRequests()
Deprecated.
Use `client.certificates().v1beta1().certificateSigningRequest` instead
|
MixedOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,Resource<io.fabric8.kubernetes.api.model.ComponentStatus>> |
componentstatuses()
API entrypoint for dealing with core/v1/ComponentStatus
|
MixedOperation<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.ConfigMapList,Resource<io.fabric8.kubernetes.api.model.ConfigMap>> |
configMaps()
API entrypoint for ConfigMap related operations.
|
RawCustomResourceOperationsImpl |
customResource(CustomResourceDefinitionContext customResourceDefinition)
Typeless API for interacting with CustomResources.
|
<T extends CustomResource> |
customResources(Class<T> resourceType)
Typed API for managing CustomResources.
|
<T extends CustomResource,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> |
customResources(Class<T> resourceType,
Class<L> listClass)
Typed API for managing CustomResources.
|
<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> |
customResources(CustomResourceDefinitionContext crdContext,
Class<T> resourceType,
Class<L> listClass)
Deprecated.
Since 5.x versions of client
CustomResourceDefinitionContext is now configured via annotations
inside POJOs, no need to provide it explicitly here. |
DiscoveryAPIGroupDSL |
discovery()
Discovery API entrypoint for APIGroup discovery.k8s.io
|
MixedOperation<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsList,Resource<io.fabric8.kubernetes.api.model.Endpoints>> |
endpoints()
API entrypoint for Endpoints with APIGroup core/v1
|
EventingAPIGroupDSL |
events()
Event API entrypoint for APIGroup events.k8s.io
Note: This should not be confused with v1.Event
|
ExtensionsAPIGroupDSL |
extensions()
Extensions API entrypoint for APIGroup extensions/v1beta1
|
VersionInfo |
getVersion()
Get Kubernetes API server version
|
SharedInformerFactory |
informers()
Get an instance of Kubernetes Client informer factory.
|
SharedInformerFactory |
informers(ExecutorService executorService)
Get an instance of Kubernetes Client informer factory.
|
<C extends Namespaceable<C> & KubernetesClient> |
leaderElector()
API entrypoint for
LeaderElector implementation for leader election. |
MixedOperation<io.fabric8.kubernetes.api.model.coordination.v1.Lease,io.fabric8.kubernetes.api.model.coordination.v1.LeaseList,Resource<io.fabric8.kubernetes.api.model.coordination.v1.Lease>> |
leases()
API entrypoint for
Lease related operations. |
MixedOperation<io.fabric8.kubernetes.api.model.LimitRange,io.fabric8.kubernetes.api.model.LimitRangeList,Resource<io.fabric8.kubernetes.api.model.LimitRange>> |
limitRanges()
API entrypoint for LimitRange related operations.
|
KubernetesListMixedOperation |
lists()
List related operations.
|
ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> |
load(InputStream is)
Load a Kubernetes resource object from file InputStream
|
NonNamespaceOperation<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.NamespaceList,Resource<io.fabric8.kubernetes.api.model.Namespace>> |
namespaces()
API entrypoint for namespace related operations in Kubernetes.
|
NetworkAPIGroupDSL |
network()
API entrypoint for kubernetes resources with APIGroup networking/v1
|
NonNamespaceOperation<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.NodeList,Resource<io.fabric8.kubernetes.api.model.Node>> |
nodes()
API entrypoint for node related operations in Kubernetes.
|
MixedOperation<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.PersistentVolumeClaimList,Resource<io.fabric8.kubernetes.api.model.PersistentVolumeClaim>> |
persistentVolumeClaims()
API entrypoint for PersistentVolumeClaim related operations.
|
NonNamespaceOperation<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.PersistentVolumeList,Resource<io.fabric8.kubernetes.api.model.PersistentVolume>> |
persistentVolumes()
API entrypoint for PersistentVolume related operations.
|
MixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource<io.fabric8.kubernetes.api.model.Pod>> |
pods()
API entrypoint for Pod related operations.
|
PolicyAPIGroupDSL |
policy()
API entrypoint for kubernetes resources with APIGroup policy/v1beta1
|
RbacAPIGroupDSL |
rbac()
API entrypoint for kubernetes resources with APIGroup rbac/v1
|
MixedOperation<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.ReplicationControllerList,RollableScalableResource<io.fabric8.kubernetes.api.model.ReplicationController>> |
replicationControllers()
API entrypoint for ReplicationController related operations.
|
NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> |
resource(String s)
KubernetesResource operations.
|
<T extends io.fabric8.kubernetes.api.model.HasMetadata> |
resource(T is)
KubernetesResource operations.
|
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> |
resourceList(Collection<io.fabric8.kubernetes.api.model.HasMetadata> items)
KubernetesResourceList operations
|
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> |
resourceList(io.fabric8.kubernetes.api.model.HasMetadata... items)
KubernetesResourceList operations
|
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> |
resourceList(io.fabric8.kubernetes.api.model.KubernetesResourceList list)
KubernetesResourceList operations
|
ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> |
resourceList(String s)
Load a Kubernetes list object
|
MixedOperation<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaList,Resource<io.fabric8.kubernetes.api.model.ResourceQuota>> |
resourceQuotas()
API entrypoint for ResourceQuota related operations.
|
RunOperations |
run()
Run a Pod (core/v1)
|
NonNamespaceOperation<io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClass,io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClassList,Resource<io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClass>> |
runtimeClasses()
API entrypoint for RuntimeClass (node.k8s.io/v1beta1)
|
SchedulingAPIGroupDSL |
scheduling()
API entrypoint for kubernetes resources with APIGroup scheduling/v1beta1
|
MixedOperation<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.SecretList,Resource<io.fabric8.kubernetes.api.model.Secret>> |
secrets()
API entrypoint for Secret related operations.
|
MixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.ServiceAccountList,Resource<io.fabric8.kubernetes.api.model.ServiceAccount>> |
serviceAccounts()
API entrypoint for ServiceAccount related operations.
|
MixedOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>> |
services()
API entrypoint for Service related operations.
|
StorageAPIGroupDSL |
storage()
API entrypoint for kubernetes resources with APIGroup storage/v1
|
Createable<io.fabric8.kubernetes.api.model.authentication.TokenReview> |
tokenReviews()
API for creating authentication.k8s.io/v1 TokenReviews
|
MetricAPIGroupDSL |
top()
API entrypoint for kubernetes metrics
|
V1APIGroupDSL |
v1()
API entrypoint for Core Kubernetes Resources (core/v1).
|
adapt, close, getApiVersion, getMasterUrl, getNamespace, isAdaptable, rootPaths, supportsApiPath
getConfiguration
ApiextensionsAPIGroupDSL apiextensions()
@Deprecated NonNamespaceOperation<io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequest,io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequestList,Resource<io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequest>> certificateSigningRequests()
NonNamespaceOperation
for CertificateSigningRequest classCertificatesAPIGroupDSL certificates()
CertificatesAPIGroupDSL
for Certificate API resources<T extends CustomResource> MixedOperation<T,io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,Resource<T>> customResources(Class<T> resourceType)
Note: your CustomResource POJO (T in this context) must implement
Namespaced
if it is a namespace-scoped resource.
T
- T type represents CustomResource type. If it's a namespaced resource, it must implement
Namespaced
resourceType
- Class for CustomResource<T extends CustomResource,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> MixedOperation<T,L,Resource<T>> customResources(Class<T> resourceType, Class<L> listClass)
Note: your CustomResource POJO (T in this context) must implement
Namespaced
if it is a namespace-scoped resource.
T
- T type represents CustomResource type. If it's a namespace-scoped resource, it must implement
Namespaced
L
- L type represents CustomResourceList typeresourceType
- Class for CustomResourcelistClass
- Class for list object for CustomResource@Deprecated <T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> MixedOperation<T,L,Resource<T>> customResources(CustomResourceDefinitionContext crdContext, Class<T> resourceType, Class<L> listClass)
CustomResourceDefinitionContext
is now configured via annotations
inside POJOs, no need to provide it explicitly here.Note: your CustomResource POJO (T in this context) must implement io.fabric8.kubernetes.api.model.Namespaced if it is a Namespaced scoped resource.
T
- T type represents CustomResource type. If it's Namespaced resource, it must implement
io.fabric8.kubernetes.api.model.NamespacedL
- L type represents CustomResourceList typecrdContext
- CustomResourceDefinitionContext describes the core fields used to search for CustomResourcesresourceType
- Class for CustomResourcelistClass
- Class for list object for CustomResourceDiscoveryAPIGroupDSL discovery()
DiscoveryAPIGroupDSL
with which you can access Discovery API resource objectsEventingAPIGroupDSL events()
EventingAPIGroupDSL
with which you can access Events API resources objects.ExtensionsAPIGroupDSL extensions()
VersionInfo getVersion()
RawCustomResourceOperationsImpl customResource(CustomResourceDefinitionContext customResourceDefinition)
customResourceDefinition
- CustomResourceDefinitionContext - information about CustomResource like versioning, namespaced or not and group etcAdmissionRegistrationAPIGroupDSL admissionRegistration()
AppsAPIGroupDSL apps()
AutoscalingAPIGroupDSL autoscaling()
NetworkAPIGroupDSL network()
StorageAPIGroupDSL storage()
BatchAPIGroupDSL batch()
MetricAPIGroupDSL top()
PolicyAPIGroupDSL policy()
RbacAPIGroupDSL rbac()
SchedulingAPIGroupDSL scheduling()
MixedOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,Resource<io.fabric8.kubernetes.api.model.ComponentStatus>> componentstatuses()
ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> load(InputStream is)
is
- File input stream object containing json/yaml contentParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> resourceList(String s)
s
- kubernetes list as stringNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> resourceList(io.fabric8.kubernetes.api.model.KubernetesResourceList list)
list
- KubernetesResourceList object containing kubernetes resource itemsNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> resourceList(io.fabric8.kubernetes.api.model.HasMetadata... items)
items
- array of HasMetadata valuesNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> resourceList(Collection<io.fabric8.kubernetes.api.model.HasMetadata> items)
items
- a collection containing HasMetadata values<T extends io.fabric8.kubernetes.api.model.HasMetadata> NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<T> resource(T is)
T
- type of Kubernetes resourceis
- Kubernetes resource objectNamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> resource(String s)
s
- Kubernetes resource object as stringMixedOperation<io.fabric8.kubernetes.api.model.Binding,io.fabric8.kubernetes.api.model.KubernetesResourceList<io.fabric8.kubernetes.api.model.Binding>,Resource<io.fabric8.kubernetes.api.model.Binding>> bindings()
MixedOperation<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsList,Resource<io.fabric8.kubernetes.api.model.Endpoints>> endpoints()
NonNamespaceOperation<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.NamespaceList,Resource<io.fabric8.kubernetes.api.model.Namespace>> namespaces()
NonNamespaceOperation<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.NodeList,Resource<io.fabric8.kubernetes.api.model.Node>> nodes()
NonNamespaceOperation<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.PersistentVolumeList,Resource<io.fabric8.kubernetes.api.model.PersistentVolume>> persistentVolumes()
MixedOperation<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.PersistentVolumeClaimList,Resource<io.fabric8.kubernetes.api.model.PersistentVolumeClaim>> persistentVolumeClaims()
MixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource<io.fabric8.kubernetes.api.model.Pod>> pods()
MixedOperation<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.ReplicationControllerList,RollableScalableResource<io.fabric8.kubernetes.api.model.ReplicationController>> replicationControllers()
MixedOperation<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaList,Resource<io.fabric8.kubernetes.api.model.ResourceQuota>> resourceQuotas()
MixedOperation<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.SecretList,Resource<io.fabric8.kubernetes.api.model.Secret>> secrets()
MixedOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>> services()
MixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.ServiceAccountList,Resource<io.fabric8.kubernetes.api.model.ServiceAccount>> serviceAccounts()
MixedOperation<io.fabric8.kubernetes.api.model.APIService,io.fabric8.kubernetes.api.model.APIServiceList,Resource<io.fabric8.kubernetes.api.model.APIService>> apiServices()
KubernetesListMixedOperation lists()
MixedOperation<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.ConfigMapList,Resource<io.fabric8.kubernetes.api.model.ConfigMap>> configMaps()
MixedOperation<io.fabric8.kubernetes.api.model.LimitRange,io.fabric8.kubernetes.api.model.LimitRangeList,Resource<io.fabric8.kubernetes.api.model.LimitRange>> limitRanges()
AuthorizationAPIGroupDSL authorization()
Createable<io.fabric8.kubernetes.api.model.authentication.TokenReview> tokenReviews()
SharedInformerFactory informers()
SharedInformerFactory informers(ExecutorService executorService)
executorService
- thread pool for informer factory<C extends Namespaceable<C> & KubernetesClient> LeaderElectorBuilder<C> leaderElector()
LeaderElector
implementation for leader election.C
- type parameter for the Namespaceable KubernetesClientMixedOperation<io.fabric8.kubernetes.api.model.coordination.v1.Lease,io.fabric8.kubernetes.api.model.coordination.v1.LeaseList,Resource<io.fabric8.kubernetes.api.model.coordination.v1.Lease>> leases()
Lease
related operations. Lease (coordination.k8s.io/v1)V1APIGroupDSL v1()
RunOperations run()
RunOperations
that allows you to run a pod based on few parameters(e.g. name, image etc)NonNamespaceOperation<io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClass,io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClassList,Resource<io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClass>> runtimeClasses()
NonNamespaceOperation
for RuntimeClassCopyright © 2015–2022 Red Hat. All rights reserved.