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.
|
NonNamespaceOperation<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
|
AuthenticationAPIGroupDSL |
authentication()
Authentication operations (authentication.k8s.io)
|
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
|
NonNamespaceOperation<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.
|
DiscoveryAPIGroupDSL |
discovery()
Discovery API entrypoint for APIGroup discovery.k8s.io
|
DynamicResourceAllocationAPIGroupDSL |
dynamicResourceAllocation()
API entrypoint for dynamic resource allocation
resource.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
|
FlowControlAPIGroupDSL |
flowControl()
FlowControl APIServer API for apigroup flowcontrol.apiserver.k8s.io
|
MixedOperation<io.fabric8.kubernetes.api.model.GenericKubernetesResource,io.fabric8.kubernetes.api.model.GenericKubernetesResourceList,Resource<io.fabric8.kubernetes.api.model.GenericKubernetesResource>> |
genericKubernetesResources(ResourceDefinitionContext context)
Semi-Typed API for managing
GenericKubernetesResource s which can represent any resource. |
MixedOperation<io.fabric8.kubernetes.api.model.GenericKubernetesResource,io.fabric8.kubernetes.api.model.GenericKubernetesResourceList,Resource<io.fabric8.kubernetes.api.model.GenericKubernetesResource>> |
genericKubernetesResources(String apiVersion,
String kind)
Semi-typed API for managing resources.
|
KubernetesSerialization |
getKubernetesSerialization() |
VersionInfo |
getKubernetesVersion()
Get Kubernetes API server version
|
VersionInfo |
getVersion()
Deprecated.
use
getKubernetesVersion() instead |
SharedInformerFactory |
informers()
Get an instance of Kubernetes Client informer factory.
|
LeaderElectorBuilder |
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.
|
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> |
load(InputStream is)
Load Kubernetes resource object(s) from the provided 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> |
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.
|
NamespaceableResource<io.fabric8.kubernetes.api.model.HasMetadata> |
resource(InputStream is)
KubernetesResource operations.
|
NamespaceableResource<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<? extends 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
|
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<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.
|
default <T extends io.fabric8.kubernetes.api.model.HasMetadata> |
resources(Class<T> resourceType)
Typed API for managing resources.
|
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,ServiceAccountResource> |
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
|
InOutCreateable<io.fabric8.kubernetes.api.model.authentication.TokenReview,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).
|
void |
visitResources(ApiVisitor visitor)
Visit all resources with the given
ApiVisitor . |
adapt, close, getApiGroup, getApiGroups, getApiResources, getApiVersion, getAPIVersions, getConfiguration, getHttpClient, getMasterUrl, getNamespace, hasApiGroup, isAdaptable, newClient, raw, raw, resources, resources, rootPaths, supports, supports, supportsApiPath
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 resourcesdefault <T extends io.fabric8.kubernetes.api.model.HasMetadata> MixedOperation<T,io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,Resource<T>> resources(Class<T> resourceType)
Note: your resource POJO (T in this context) must implement
Namespaced
if it is a namespace-scoped resource.
T
- T type represents resource type. If it's a namespaced resource, it must implement
Namespaced
resourceType
- Class for resourceMixedOperation<io.fabric8.kubernetes.api.model.GenericKubernetesResource,io.fabric8.kubernetes.api.model.GenericKubernetesResourceList,Resource<io.fabric8.kubernetes.api.model.GenericKubernetesResource>> genericKubernetesResources(ResourceDefinitionContext context)
GenericKubernetesResource
s which can represent any resource.context
- ResourceDefinitionContext describes the core metadataif you don't want to supply a complete {@link ResourceDefinitionContext}
MixedOperation<io.fabric8.kubernetes.api.model.GenericKubernetesResource,io.fabric8.kubernetes.api.model.GenericKubernetesResourceList,Resource<io.fabric8.kubernetes.api.model.GenericKubernetesResource>> genericKubernetesResources(String apiVersion, String kind)
apiVersion
- the api/versionkind
- the resource kindDiscoveryAPIGroupDSL discovery()
DiscoveryAPIGroupDSL
with which you can access Discovery API resource objectsDynamicResourceAllocationAPIGroupDSL dynamicResourceAllocation()
resource.k8s.io
DynamicResourceAllocationAPIGroupDSL
with which you can access various types provided by this API.EventingAPIGroupDSL events()
EventingAPIGroupDSL
with which you can access Events API resources objects.ExtensionsAPIGroupDSL extensions()
FlowControlAPIGroupDSL flowControl()
FlowControlAPIGroupDSL
with which you can access entry points for FlowControl objects@Deprecated VersionInfo getVersion()
getKubernetesVersion()
insteadVersionInfo getKubernetesVersion()
AdmissionRegistrationAPIGroupDSL admissionRegistration()
AppsAPIGroupDSL apps()
AutoscalingAPIGroupDSL autoscaling()
NetworkAPIGroupDSL network()
StorageAPIGroupDSL storage()
BatchAPIGroupDSL batch()
MetricAPIGroupDSL top()
PolicyAPIGroupDSL policy()
RbacAPIGroupDSL rbac()
SchedulingAPIGroupDSL scheduling()
NonNamespaceOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,Resource<io.fabric8.kubernetes.api.model.ComponentStatus>> componentstatuses()
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> load(InputStream is)
is
- the input stream containing JSON/YAML contentNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<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<? extends io.fabric8.kubernetes.api.model.HasMetadata> items)
items
- a collection containing HasMetadata values<T extends io.fabric8.kubernetes.api.model.HasMetadata> NamespaceableResource<T> resource(T is)
T
- type of Kubernetes resourceis
- Kubernetes resource objectNamespaceableResource<io.fabric8.kubernetes.api.model.HasMetadata> resource(String s)
s
- a Kubernetes resource object as stringNamespaceableResource<io.fabric8.kubernetes.api.model.HasMetadata> resource(InputStream is)
is
- the InputStream containing a serialized Kubernetes resource.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()
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> 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,ServiceAccountResource> serviceAccounts()
NonNamespaceOperation<io.fabric8.kubernetes.api.model.APIService,io.fabric8.kubernetes.api.model.APIServiceList,Resource<io.fabric8.kubernetes.api.model.APIService>> apiServices()
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()
AuthenticationAPIGroupDSL authentication()
AuthenticationAPIGroupDSL
object for dealing with Authentication objectsInOutCreateable<io.fabric8.kubernetes.api.model.authentication.TokenReview,io.fabric8.kubernetes.api.model.authentication.TokenReview> tokenReviews()
SharedInformerFactory informers()
Each call to this method returns a new factory.
LeaderElectorBuilder leaderElector()
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()
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 RuntimeClassvoid visitResources(ApiVisitor visitor)
ApiVisitor
.visitor
- KubernetesSerialization getKubernetesSerialization()
KubernetesSerialization
used by this clientCopyright © 2015–2024 Red Hat. All rights reserved.