类 Tiller

    • 字段详细资料

      • VERSION

        public static final String VERSION
        The version of Tiller Tiller instances expect.

        This field is never null.

        另请参阅:
        常量字段值
      • DEFAULT_NAMESPACE

        public static final String DEFAULT_NAMESPACE
        The Kubernetes namespace into which Tiller server instances are most commonly installed.

        This field is never null.

        另请参阅:
        常量字段值
      • DEFAULT_PORT

        public static final int DEFAULT_PORT
        The port on which Tiller server instances most commonly listen.
        另请参阅:
        常量字段值
      • DEFAULT_LABELS

        public static final Map<String,​String> DEFAULT_LABELS
        The Kubernetes labels with which most Tiller instances are annotated.

        This field is never null.

      • MAX_MESSAGE_SIZE

        public static final int MAX_MESSAGE_SIZE
        The maximum size, in bytes, that messages destined for Tiller may be.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • Tiller

        public Tiller​(io.grpc.ManagedChannel channel)
        Creates a new Tiller that will use the supplied ManagedChannel for communication.
        参数:
        channel - the ManagedChannel over which communications will be conducted; must not be null
        抛出:
        NullPointerException - if channel is null
      • Tiller

        public Tiller​(io.fabric8.kubernetes.client.LocalPortForward portForward)
        Creates a new Tiller that will use information from the supplied LocalPortForward to establish a communications channel with the Tiller server.
        参数:
        portForward - the LocalPortForward to use; must not be null
        抛出:
        NullPointerException - if portForward is null
      • Tiller

        public Tiller​(T client)
               throws MalformedURLException
        Creates a new Tiller that will forward a local port to port 44134 on a Pod housing Tiller in the kube-system namespace running in the Kubernetes cluster with which the supplied KubernetesClient is capable of communicating.

        The first ready Pod with a name label whose value is tiller and with an app label whose value is helm is deemed to be the pod housing the Tiller instance to connect to. (This duplicates the default logic of the helm command line executable.)

        类型参数:
        T - a KubernetesClient implementation that is also an HttpClientAware implementation, such as DefaultKubernetesClient
        参数:
        client - the KubernetesClient-and-HttpClientAware implementation that can communicate with a Kubernetes cluster; must not be null
        抛出:
        MalformedURLException - if there was a problem identifying a Pod within the cluster that houses a Tiller instance
        NullPointerException - if client is null
      • Tiller

        public Tiller​(T client,
                      String namespaceHousingTiller)
               throws MalformedURLException
        Creates a new Tiller that will forward a local port to port 44134 on a Pod housing Tiller in the supplied namespace running in the Kubernetes cluster with which the supplied KubernetesClient is capable of communicating.

        The first ready Pod with a name label whose value is tiller and with an app label whose value is helm is deemed to be the pod housing the Tiller instance to connect to. (This duplicates the default logic of the helm command line executable.)

        类型参数:
        T - a KubernetesClient implementation that is also an HttpClientAware implementation, such as DefaultKubernetesClient
        参数:
        client - the KubernetesClient-and-HttpClientAware implementation that can communicate with a Kubernetes cluster; must not be null; no reference to this object is retained by this Tiller instance
        namespaceHousingTiller - the namespace within which a Tiller instance is hopefully running; if null, then the value of DEFAULT_NAMESPACE will be used instead
        抛出:
        MalformedURLException - if there was a problem identifying a Pod within the cluster that houses a Tiller instance
        NullPointerException - if client is null
        io.fabric8.kubernetes.client.KubernetesClientException - if there was a problem connecting to Kubernetes
        TillerException - if a ready Tiller pod could not be found and consequently a connection could not be established
      • Tiller

        public Tiller​(T client,
                      String namespaceHousingTiller,
                      int tillerPort,
                      Map<String,​String> tillerLabels)
               throws MalformedURLException
        Creates a new Tiller that will forward a local port to the supplied (remote) port on a Pod housing Tiller in the supplied namespace running in the Kubernetes cluster with which the supplied KubernetesClient is capable of communicating.

        The first ready Pod with labels matching the supplied tillerLabels is deemed to be the pod housing the Tiller instance to connect to.

        类型参数:
        T - a KubernetesClient implementation that is also an HttpClientAware implementation, such as DefaultKubernetesClient
        参数:
        client - the KubernetesClient-and-HttpClientAware implementation that can communicate with a Kubernetes cluster; must not be null; no reference to this object is retained by this Tiller instance
        namespaceHousingTiller - the namespace within which a Tiller instance is hopefully running; if null, then the value of DEFAULT_NAMESPACE will be used instead
        tillerPort - the remote port to attempt to forward a local port to; normally 44134
        tillerLabels - a Map representing the Kubernetes labels (and their values) identifying a Pod housing a Tiller instance; if null then the value of DEFAULT_LABELS will be used instead
        抛出:
        MalformedURLException - if there was a problem identifying a Pod within the cluster that houses a Tiller instance
        NullPointerException - if client is null
        io.fabric8.kubernetes.client.KubernetesClientException - if there was a problem connecting to Kubernetes
        TillerException - if a ready Tiller pod could not be found and consequently a connection could not be established