Class K8sService

    • Constructor Detail

      • K8sService

        public K8sService()
      • K8sService

        public K8sService​(K8sService source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getWeight

        public Long getWeight()
        Get 权重
        Returns:
        Weight 权重
      • setWeight

        public void setWeight​(Long Weight)
        Set 权重
        Parameters:
        Weight - 权重
      • getClusterId

        public String getClusterId()
        Get k8s集群ID
        Returns:
        ClusterId k8s集群ID
      • setClusterId

        public void setClusterId​(String ClusterId)
        Set k8s集群ID
        Parameters:
        ClusterId - k8s集群ID
      • getNamespace

        public String getNamespace()
        Get 容器命名空间
        Returns:
        Namespace 容器命名空间
      • setNamespace

        public void setNamespace​(String Namespace)
        Set 容器命名空间
        Parameters:
        Namespace - 容器命名空间
      • getServiceName

        public String getServiceName()
        Get 容器服务的名字
        Returns:
        ServiceName 容器服务的名字
      • setServiceName

        public void setServiceName​(String ServiceName)
        Set 容器服务的名字
        Parameters:
        ServiceName - 容器服务的名字
      • getPort

        public Long getPort()
        Get 服务的端口
        Returns:
        Port 服务的端口
      • setPort

        public void setPort​(Long Port)
        Set 服务的端口
        Parameters:
        Port - 服务的端口
      • getExtraLabels

        public K8sLabel[] getExtraLabels()
        Get 额外选择的Pod的Label
        Returns:
        ExtraLabels 额外选择的Pod的Label
      • setExtraLabels

        public void setExtraLabels​(K8sLabel[] ExtraLabels)
        Set 额外选择的Pod的Label
        Parameters:
        ExtraLabels - 额外选择的Pod的Label
      • getName

        public String getName()
        Get 自定义的服务名字,可选
        Returns:
        Name 自定义的服务名字,可选
      • setName

        public void setName​(String Name)
        Set 自定义的服务名字,可选
        Parameters:
        Name - 自定义的服务名字,可选