Class: TencentCloud::Tke::V20180525::ExistedInstancesForNode

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

Overview

不同角色的已存在节点配置参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(noderole = nil, existedinstancespara = nil, instanceadvancedsettingsoverride = nil, desiredpodnumbers = nil) ⇒ ExistedInstancesForNode

Returns a new instance of ExistedInstancesForNode.



11898
11899
11900
11901
11902
11903
# File 'lib/v20180525/models.rb', line 11898

def initialize(noderole=nil, existedinstancespara=nil, instanceadvancedsettingsoverride=nil, desiredpodnumbers=nil)
  @NodeRole = noderole
  @ExistedInstancesPara = existedinstancespara
  @InstanceAdvancedSettingsOverride = instanceadvancedsettingsoverride
  @DesiredPodNumbers = desiredpodnumbers
end

Instance Attribute Details

#DesiredPodNumbersObject

Parameters:

  • NodeRole:

    节点角色,取值:MASTER_ETCD, WORKER。MASTER_ETCD只有在创建 INDEPENDENT_CLUSTER 独立集群时需要指定。MASTER_ETCD节点数量为3~7,建议为奇数。MASTER_ETCD最小配置为4C8G。

  • ExistedInstancesPara:

    已存在实例的重装参数

  • InstanceAdvancedSettingsOverride:

    节点高级设置,会覆盖集群级别设置的InstanceAdvancedSettings(当前只对节点自定义参数ExtraArgs生效)

  • DesiredPodNumbers:

    自定义模式集群,可指定每个节点的pod数量



11896
11897
11898
# File 'lib/v20180525/models.rb', line 11896

def DesiredPodNumbers
  @DesiredPodNumbers
end

#ExistedInstancesParaObject

Parameters:

  • NodeRole:

    节点角色,取值:MASTER_ETCD, WORKER。MASTER_ETCD只有在创建 INDEPENDENT_CLUSTER 独立集群时需要指定。MASTER_ETCD节点数量为3~7,建议为奇数。MASTER_ETCD最小配置为4C8G。

  • ExistedInstancesPara:

    已存在实例的重装参数

  • InstanceAdvancedSettingsOverride:

    节点高级设置,会覆盖集群级别设置的InstanceAdvancedSettings(当前只对节点自定义参数ExtraArgs生效)

  • DesiredPodNumbers:

    自定义模式集群,可指定每个节点的pod数量



11896
11897
11898
# File 'lib/v20180525/models.rb', line 11896

def ExistedInstancesPara
  @ExistedInstancesPara
end

#InstanceAdvancedSettingsOverrideObject

Parameters:

  • NodeRole:

    节点角色,取值:MASTER_ETCD, WORKER。MASTER_ETCD只有在创建 INDEPENDENT_CLUSTER 独立集群时需要指定。MASTER_ETCD节点数量为3~7,建议为奇数。MASTER_ETCD最小配置为4C8G。

  • ExistedInstancesPara:

    已存在实例的重装参数

  • InstanceAdvancedSettingsOverride:

    节点高级设置,会覆盖集群级别设置的InstanceAdvancedSettings(当前只对节点自定义参数ExtraArgs生效)

  • DesiredPodNumbers:

    自定义模式集群,可指定每个节点的pod数量



11896
11897
11898
# File 'lib/v20180525/models.rb', line 11896

def InstanceAdvancedSettingsOverride
  @InstanceAdvancedSettingsOverride
end

#NodeRoleObject

Parameters:

  • NodeRole:

    节点角色,取值:MASTER_ETCD, WORKER。MASTER_ETCD只有在创建 INDEPENDENT_CLUSTER 独立集群时需要指定。MASTER_ETCD节点数量为3~7,建议为奇数。MASTER_ETCD最小配置为4C8G。

  • ExistedInstancesPara:

    已存在实例的重装参数

  • InstanceAdvancedSettingsOverride:

    节点高级设置,会覆盖集群级别设置的InstanceAdvancedSettings(当前只对节点自定义参数ExtraArgs生效)

  • DesiredPodNumbers:

    自定义模式集群,可指定每个节点的pod数量



11896
11897
11898
# File 'lib/v20180525/models.rb', line 11896

def NodeRole
  @NodeRole
end

Instance Method Details

#deserialize(params) ⇒ Object



11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
# File 'lib/v20180525/models.rb', line 11905

def deserialize(params)
  @NodeRole = params['NodeRole']
  unless params['ExistedInstancesPara'].nil?
    @ExistedInstancesPara = ExistedInstancesPara.new
    @ExistedInstancesPara.deserialize(params['ExistedInstancesPara'])
  end
  unless params['InstanceAdvancedSettingsOverride'].nil?
    @InstanceAdvancedSettingsOverride = InstanceAdvancedSettings.new
    @InstanceAdvancedSettingsOverride.deserialize(params['InstanceAdvancedSettingsOverride'])
  end
  @DesiredPodNumbers = params['DesiredPodNumbers']
end