Class: TencentCloud::Tke::V20180525::PrometheusClusterAgentPodConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

关联集群时在集群内部署组件的pod额外配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostnet = nil, nodeselector = nil, tolerations = nil) ⇒ PrometheusClusterAgentPodConfig

Returns a new instance of PrometheusClusterAgentPodConfig.



16039
16040
16041
16042
16043
# File 'lib/v20180525/models.rb', line 16039

def initialize(hostnet=nil, nodeselector=nil, tolerations=nil)
  @HostNet = hostnet
  @NodeSelector = nodeselector
  @Tolerations = tolerations
end

Instance Attribute Details

#HostNetObject

Parameters:

  • HostNet:

    是否使用HostNetWork

  • NodeSelector:

    指定pod运行节点

  • Tolerations:

    容忍污点



16037
16038
16039
# File 'lib/v20180525/models.rb', line 16037

def HostNet
  @HostNet
end

#NodeSelectorObject

Parameters:

  • HostNet:

    是否使用HostNetWork

  • NodeSelector:

    指定pod运行节点

  • Tolerations:

    容忍污点



16037
16038
16039
# File 'lib/v20180525/models.rb', line 16037

def NodeSelector
  @NodeSelector
end

#TolerationsObject

Parameters:

  • HostNet:

    是否使用HostNetWork

  • NodeSelector:

    指定pod运行节点

  • Tolerations:

    容忍污点



16037
16038
16039
# File 'lib/v20180525/models.rb', line 16037

def Tolerations
  @Tolerations
end

Instance Method Details

#deserialize(params) ⇒ Object



16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
# File 'lib/v20180525/models.rb', line 16045

def deserialize(params)
  @HostNet = params['HostNet']
  unless params['NodeSelector'].nil?
    @NodeSelector = []
    params['NodeSelector'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @NodeSelector << label_tmp
    end
  end
  unless params['Tolerations'].nil?
    @Tolerations = []
    params['Tolerations'].each do |i|
      toleration_tmp = Toleration.new
      toleration_tmp.deserialize(i)
      @Tolerations << toleration_tmp
    end
  end
end