Interface KubernetesClient

    • Method Detail

      • apiextensions

        ApiextensionsAPIGroupDSL apiextensions()
        API entrypoint for apiextensions resources. Currently support both v1 and v1beta1
        Returns:
        ApiextensionsAPIGroupDSL which routes to v1 or v1beta1
      • certificateSigningRequests

        @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()
        Deprecated.
        Use `client.certificates().v1beta1().certificateSigningRequest` instead
        API entrypoint for using CertificateSigningRequest(certificates.k8s.io/v1beta1)
        Returns:
        NonNamespaceOperation for CertificateSigningRequest class
      • resources

        default <T extends HasMetadataMixedOperation<T,​KubernetesResourceList<T>,​Resource<T>> resources​(Class<T> resourceType)
        Typed API for managing resources. Any properly annotated POJO can be utilized as a resource.

        Note: your resource POJO (T in this context) must implement Namespaced if it is a namespace-scoped resource.

        Type Parameters:
        T - T type represents resource type. If it's a namespaced resource, it must implement Namespaced
        Parameters:
        resourceType - Class for resource
        Returns:
        returns a MixedOperation object with which you can do basic resource operations. If the class is a known type the dsl operation logic will be used.
      • events

        EventingAPIGroupDSL events()
        Event API entrypoint for APIGroup events.k8s.io Note: This should not be confused with v1.Event
        Returns:
        EventingAPIGroupDSL with which you can access Events API resources objects.
      • extensions

        ExtensionsAPIGroupDSL extensions()
        Extensions API entrypoint for APIGroup extensions/v1beta1
        Returns:
        ExtensionsAPIGroupDSL with which you can access entrypoints for extension objects
      • getKubernetesVersion

        VersionInfo getKubernetesVersion()
        Get Kubernetes API server version
        Returns:
        VersionInfo object containing versioning information
      • admissionRegistration

        AdmissionRegistrationAPIGroupDSL admissionRegistration()
        API entrypoint for kubernetes resources with APIGroup admissionregistration.k8s.io/v1beta1
        Returns:
        AdmissionRegistrationAPIGroupDSL which offers entrypoints to specific resources in this API group
      • apps

        AppsAPIGroupDSL apps()
        API entrypoint for kubernetes resources with APIGroup apps/v1
        Returns:
        AppsAPIGroupDSL which offers entrypoints to specific resources in this API group
      • autoscaling

        AutoscalingAPIGroupDSL autoscaling()
        API entrypoint for kubernetes resources with APIGroup autoscaling/v2beta1
        Returns:
        AutoScalingAPIGroupDSL which offers entrypoints to specific resources in this API group
      • network

        NetworkAPIGroupDSL network()
        API entrypoint for kubernetes resources with APIGroup networking/v1
        Returns:
        NetworkAPIGroupDSL which offers entrypoints to specific resources in this APIGroup
      • storage

        StorageAPIGroupDSL storage()
        API entrypoint for kubernetes resources with APIGroup storage/v1
        Returns:
        StorageAPIGroupDSL which offers entrypoints to specific resources in this APIGroup
      • batch

        BatchAPIGroupDSL batch()
        API entrypoint for kubernetes resources with APIGroup batch/v1beta1
        Returns:
        BatchAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
      • top

        MetricAPIGroupDSL top()
        API entrypoint for kubernetes metrics
        Returns:
        MetricAPIGroupDSL which offers for fetching metrics
      • policy

        PolicyAPIGroupDSL policy()
        API entrypoint for kubernetes resources with APIGroup policy/v1beta1
        Returns:
        PolicyAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
      • rbac

        RbacAPIGroupDSL rbac()
        API entrypoint for kubernetes resources with APIGroup rbac/v1
        Returns:
        RbacAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
      • scheduling

        SchedulingAPIGroupDSL scheduling()
        API entrypoint for kubernetes resources with APIGroup scheduling/v1beta1
        Returns:
        SchedulingAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
      • resource

        <T extends HasMetadataNamespaceableResource<T> resource​(T is)
        KubernetesResource operations. You can pass any Kubernetes resource as a HasMetadata object and do all operations
        Type Parameters:
        T - type of Kubernetes resource
        Parameters:
        is - Kubernetes resource object
        Returns:
        operations object for Kubernetes resource
      • resource

        NamespaceableResource<HasMetadata> resource​(String s)
        KubernetesResource operations. You can pass any Kubernetes resource as string object and do all operations
        Parameters:
        s - a Kubernetes resource object as string
        Returns:
        operations object for Kubernetes resource
      • resource

        NamespaceableResource<HasMetadata> resource​(InputStream is)
        KubernetesResource operations. You can pass any Kubernetes resource as an InputStream object and perform all operations
        Parameters:
        is - the InputStream containing a serialized Kubernetes resource.
        Returns:
        operations object for Kubernetes resource.
      • pods

        MixedOperation<Pod,​PodList,​PodResource> pods()
        API entrypoint for Pod related operations. Pod (core/v1)
        Returns:
        MixedOperation object for Pod related operations
      • authorization

        AuthorizationAPIGroupDSL authorization()
        Authorization operations. (authorization.k8s.io/v1 and authorization.k8s.io/v1beta1)
        Returns:
        AuthorizationAPIGroupDSL object for dealing with Authorization objects
      • tokenReviews

        InOutCreateable<io.fabric8.kubernetes.api.model.authentication.TokenReview,​io.fabric8.kubernetes.api.model.authentication.TokenReview> tokenReviews()
        API for creating authentication.k8s.io/v1 TokenReviews
        Returns:
        InOutCreateable instance for creating TokenReview object
      • informers

        SharedInformerFactory informers()
        Get an instance of Kubernetes Client informer factory. It allows you to construct and cache informers for API types. With it you can subscribe to all the events related to your Kubernetes type. It's like watch but a bit organized.

        Each call to this method returns a new factory.

        Returns:
        SharedInformerFactory object
      • leaderElector

        LeaderElectorBuilder leaderElector()
        API entrypoint for LeaderElector implementation for leader election.
        Returns:
        LeaderElectorBuilder to build LeaderElector instances
      • leases

        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. Lease (coordination.k8s.io/v1)
        Returns:
        MixedOperation object for Lease related operations.
      • v1

        V1APIGroupDSL v1()
        API entrypoint for Core Kubernetes Resources (core/v1). Right now other core resources have their own DSL entrypoints. But in future, all core/v1 resources would be added here.
        Returns:
        V1APIGroupDSL DSL object for core v1 resources
      • run

        RunOperations run()
        Run a Pod (core/v1)
        Returns:
        returns RunOperations that allows you to run a pod based on few parameters(e.g. name, image etc)
      • runtimeClasses

        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)
        Returns:
        NonNamespaceOperation for RuntimeClass
      • visitResources

        void visitResources​(ApiVisitor visitor)
        Visit all resources with the given ApiVisitor.
        Parameters:
        visitor -