Class: Azure::ContainerService::Mgmt::V2020_12_01::Models::KubeletConfig

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb

Overview

Kubelet configurations of agent nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#allowed_unsafe_sysctlsArray<String>

patterns (ending in ‘*`).

Returns:

  • (Array<String>)

    Allowlist of unsafe sysctls or unsafe sysctl



38
39
40
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 38

def allowed_unsafe_sysctls
  @allowed_unsafe_sysctls
end

#container_log_max_filesInteger

present for a container. The number must be ≥ 2.

Returns:

  • (Integer)

    The maximum number of container log files that can be



50
51
52
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 50

def container_log_max_files
  @container_log_max_files
end

#container_log_max_size_mbInteger

before it is rotated.

Returns:

  • (Integer)

    The maximum size (e.g. 10Mi) of container log file



46
47
48
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 46

def container_log_max_size_mb
  @container_log_max_size_mb
end

#cpu_cfs_quotaBoolean

specify CPU limits.

Returns:

  • (Boolean)

    Enable CPU CFS quota enforcement for containers that



20
21
22
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 20

def cpu_cfs_quota
  @cpu_cfs_quota
end

#cpu_cfs_quota_periodString

Returns Sets CPU CFS quota period value.

Returns:

  • (String)

    Sets CPU CFS quota period value.



23
24
25
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 23

def cpu_cfs_quota_period
  @cpu_cfs_quota_period
end

#cpu_manager_policyString

Returns CPU Manager policy to use.

Returns:

  • (String)

    CPU Manager policy to use.



16
17
18
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 16

def cpu_manager_policy
  @cpu_manager_policy
end

#fail_swap_onBoolean

if swap is enabled on the node.

Returns:

  • (Boolean)

    If set to true it will make the Kubelet fail to start



42
43
44
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 42

def fail_swap_on
  @fail_swap_on
end

#image_gc_high_thresholdInteger

collection is always run.

Returns:

  • (Integer)

    The percent of disk usage after which image garbage



27
28
29
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 27

def image_gc_high_threshold
  @image_gc_high_threshold
end

#image_gc_low_thresholdInteger

collection is never run.

Returns:

  • (Integer)

    The percent of disk usage before which image garbage



31
32
33
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 31

def image_gc_low_threshold
  @image_gc_low_threshold
end

#pod_max_pidsInteger

Returns The maximum number of processes per pod.

Returns:

  • (Integer)

    The maximum number of processes per pod.



53
54
55
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 53

def pod_max_pids
  @pod_max_pids
end

#topology_manager_policyString

Returns Topology Manager policy to use.

Returns:

  • (String)

    Topology Manager policy to use.



34
35
36
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 34

def topology_manager_policy
  @topology_manager_policy
end

Class Method Details

.mapperObject

Mapper for KubeletConfig class as Ruby Hash. This will be used for serialization/deserialization.



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/2020-12-01/generated/azure_mgmt_container_service/models/kubelet_config.rb', line 60

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'KubeletConfig',
    type: {
      name: 'Composite',
      class_name: 'KubeletConfig',
      model_properties: {
        cpu_manager_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cpuManagerPolicy',
          type: {
            name: 'String'
          }
        },
        cpu_cfs_quota: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cpuCfsQuota',
          type: {
            name: 'Boolean'
          }
        },
        cpu_cfs_quota_period: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cpuCfsQuotaPeriod',
          type: {
            name: 'String'
          }
        },
        image_gc_high_threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'imageGcHighThreshold',
          type: {
            name: 'Number'
          }
        },
        image_gc_low_threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'imageGcLowThreshold',
          type: {
            name: 'Number'
          }
        },
        topology_manager_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'topologyManagerPolicy',
          type: {
            name: 'String'
          }
        },
        allowed_unsafe_sysctls: {
          client_side_validation: true,
          required: false,
          serialized_name: 'allowedUnsafeSysctls',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        fail_swap_on: {
          client_side_validation: true,
          required: false,
          serialized_name: 'failSwapOn',
          type: {
            name: 'Boolean'
          }
        },
        container_log_max_size_mb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerLogMaxSizeMB',
          type: {
            name: 'Number'
          }
        },
        container_log_max_files: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerLogMaxFiles',
          constraints: {
            InclusiveMinimum: 2
          },
          type: {
            name: 'Number'
          }
        },
        pod_max_pids: {
          client_side_validation: true,
          required: false,
          serialized_name: 'podMaxPids',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end