3030@ SuppressWarnings ("javadoc" )
3131public final class NodeKubeletConfig extends com .google .api .client .json .GenericJson {
3232
33+ /**
34+ * Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in
35+ * `*`). The unsafe namespaced sysctl groups are `kernel.shm*`, `kernel.msg*`, `kernel.sem`,
36+ * `fs.mqueue.*`, and `net.*`. Leaving this allowlist empty means they cannot be set on Pods. To
37+ * allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For
38+ * example: `kernel.msg*,net.ipv4.route.min_pmtu`. See
39+ * https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.
40+ * The value may be {@code null}.
41+ */
42+ @ com .google .api .client .util .Key
43+ private java .util .List <java .lang .String > allowedUnsafeSysctls ;
44+
45+ /**
46+ * Optional. Defines the maximum number of container log files that can be present for a
47+ * container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation
48+ * The value must be an integer between 2 and 10, inclusive. The default value is 5 if
49+ * unspecified.
50+ * The value may be {@code null}.
51+ */
52+ @ com .google .api .client .util .Key
53+ private java .lang .Integer containerLogMaxFiles ;
54+
55+ /**
56+ * Optional. Defines the maximum size of the container log file before it is rotated. See
57+ * https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation Valid format
58+ * is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be
59+ * between 10Mi and 500Mi, inclusive. Note that the total container log size
60+ * (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the
61+ * node, to avoid disk pressure caused by log files. The default value is 10Mi if unspecified.
62+ * The value may be {@code null}.
63+ */
64+ @ com .google .api .client .util .Key
65+ private java .lang .String containerLogMaxSize ;
66+
3367 /**
3468 * Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled
3569 * by default which makes kubelet use CFS quota
@@ -62,6 +96,49 @@ public final class NodeKubeletConfig extends com.google.api.client.json.GenericJ
6296 @ com .google .api .client .util .Key
6397 private java .lang .String cpuManagerPolicy ;
6498
99+ /**
100+ * Optional. Defines the percent of disk usage after which image garbage collection is always run.
101+ * The percent is calculated as this field value out of 100. The value must be between 10 and 85,
102+ * inclusive and greater than image_gc_low_threshold_percent. The default value is 85 if
103+ * unspecified.
104+ * The value may be {@code null}.
105+ */
106+ @ com .google .api .client .util .Key
107+ private java .lang .Integer imageGcHighThresholdPercent ;
108+
109+ /**
110+ * Optional. Defines the percent of disk usage before which image garbage collection is never run.
111+ * Lowest disk usage to garbage collect to. The percent is calculated as this field value out of
112+ * 100. The value must be between 10 and 85, inclusive and smaller than
113+ * image_gc_high_threshold_percent. The default value is 80 if unspecified.
114+ * The value may be {@code null}.
115+ */
116+ @ com .google .api .client .util .Key
117+ private java .lang .Integer imageGcLowThresholdPercent ;
118+
119+ /**
120+ * Optional. Defines the maximum age an image can be unused before it is garbage collected. The
121+ * string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
122+ * such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
123+ * "h". The value must be a positive duration greater than image_minimum_gc_age or "0s". The
124+ * default value is "0s" if unspecified, which disables this field, meaning images won't be
125+ * garbage collected based on being unused for too long.
126+ * The value may be {@code null}.
127+ */
128+ @ com .google .api .client .util .Key
129+ private java .lang .String imageMaximumGcAge ;
130+
131+ /**
132+ * Optional. Defines the minimum age for an unused image before it is garbage collected. The
133+ * string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
134+ * such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
135+ * "h". The value must be a positive duration less than or equal to 2 minutes. The default value
136+ * is "2m0s" if unspecified.
137+ * The value may be {@code null}.
138+ */
139+ @ com .google .api .client .util .Key
140+ private java .lang .String imageMinimumGcAge ;
141+
65142 /**
66143 * Enable or disable Kubelet read only port.
67144 * The value may be {@code null}.
@@ -78,6 +155,83 @@ public final class NodeKubeletConfig extends com.google.api.client.json.GenericJ
78155 @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
79156 private java .lang .Long podPidsLimit ;
80157
158+ /**
159+ * Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in
160+ * `*`). The unsafe namespaced sysctl groups are `kernel.shm*`, `kernel.msg*`, `kernel.sem`,
161+ * `fs.mqueue.*`, and `net.*`. Leaving this allowlist empty means they cannot be set on Pods. To
162+ * allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For
163+ * example: `kernel.msg*,net.ipv4.route.min_pmtu`. See
164+ * https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.
165+ * @return value or {@code null} for none
166+ */
167+ public java .util .List <java .lang .String > getAllowedUnsafeSysctls () {
168+ return allowedUnsafeSysctls ;
169+ }
170+
171+ /**
172+ * Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in
173+ * `*`). The unsafe namespaced sysctl groups are `kernel.shm*`, `kernel.msg*`, `kernel.sem`,
174+ * `fs.mqueue.*`, and `net.*`. Leaving this allowlist empty means they cannot be set on Pods. To
175+ * allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For
176+ * example: `kernel.msg*,net.ipv4.route.min_pmtu`. See
177+ * https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.
178+ * @param allowedUnsafeSysctls allowedUnsafeSysctls or {@code null} for none
179+ */
180+ public NodeKubeletConfig setAllowedUnsafeSysctls (java .util .List <java .lang .String > allowedUnsafeSysctls ) {
181+ this .allowedUnsafeSysctls = allowedUnsafeSysctls ;
182+ return this ;
183+ }
184+
185+ /**
186+ * Optional. Defines the maximum number of container log files that can be present for a
187+ * container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation
188+ * The value must be an integer between 2 and 10, inclusive. The default value is 5 if
189+ * unspecified.
190+ * @return value or {@code null} for none
191+ */
192+ public java .lang .Integer getContainerLogMaxFiles () {
193+ return containerLogMaxFiles ;
194+ }
195+
196+ /**
197+ * Optional. Defines the maximum number of container log files that can be present for a
198+ * container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation
199+ * The value must be an integer between 2 and 10, inclusive. The default value is 5 if
200+ * unspecified.
201+ * @param containerLogMaxFiles containerLogMaxFiles or {@code null} for none
202+ */
203+ public NodeKubeletConfig setContainerLogMaxFiles (java .lang .Integer containerLogMaxFiles ) {
204+ this .containerLogMaxFiles = containerLogMaxFiles ;
205+ return this ;
206+ }
207+
208+ /**
209+ * Optional. Defines the maximum size of the container log file before it is rotated. See
210+ * https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation Valid format
211+ * is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be
212+ * between 10Mi and 500Mi, inclusive. Note that the total container log size
213+ * (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the
214+ * node, to avoid disk pressure caused by log files. The default value is 10Mi if unspecified.
215+ * @return value or {@code null} for none
216+ */
217+ public java .lang .String getContainerLogMaxSize () {
218+ return containerLogMaxSize ;
219+ }
220+
221+ /**
222+ * Optional. Defines the maximum size of the container log file before it is rotated. See
223+ * https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation Valid format
224+ * is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be
225+ * between 10Mi and 500Mi, inclusive. Note that the total container log size
226+ * (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the
227+ * node, to avoid disk pressure caused by log files. The default value is 10Mi if unspecified.
228+ * @param containerLogMaxSize containerLogMaxSize or {@code null} for none
229+ */
230+ public NodeKubeletConfig setContainerLogMaxSize (java .lang .String containerLogMaxSize ) {
231+ this .containerLogMaxSize = containerLogMaxSize ;
232+ return this ;
233+ }
234+
81235 /**
82236 * Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled
83237 * by default which makes kubelet use CFS quota
@@ -151,6 +305,104 @@ public NodeKubeletConfig setCpuManagerPolicy(java.lang.String cpuManagerPolicy)
151305 return this ;
152306 }
153307
308+ /**
309+ * Optional. Defines the percent of disk usage after which image garbage collection is always run.
310+ * The percent is calculated as this field value out of 100. The value must be between 10 and 85,
311+ * inclusive and greater than image_gc_low_threshold_percent. The default value is 85 if
312+ * unspecified.
313+ * @return value or {@code null} for none
314+ */
315+ public java .lang .Integer getImageGcHighThresholdPercent () {
316+ return imageGcHighThresholdPercent ;
317+ }
318+
319+ /**
320+ * Optional. Defines the percent of disk usage after which image garbage collection is always run.
321+ * The percent is calculated as this field value out of 100. The value must be between 10 and 85,
322+ * inclusive and greater than image_gc_low_threshold_percent. The default value is 85 if
323+ * unspecified.
324+ * @param imageGcHighThresholdPercent imageGcHighThresholdPercent or {@code null} for none
325+ */
326+ public NodeKubeletConfig setImageGcHighThresholdPercent (java .lang .Integer imageGcHighThresholdPercent ) {
327+ this .imageGcHighThresholdPercent = imageGcHighThresholdPercent ;
328+ return this ;
329+ }
330+
331+ /**
332+ * Optional. Defines the percent of disk usage before which image garbage collection is never run.
333+ * Lowest disk usage to garbage collect to. The percent is calculated as this field value out of
334+ * 100. The value must be between 10 and 85, inclusive and smaller than
335+ * image_gc_high_threshold_percent. The default value is 80 if unspecified.
336+ * @return value or {@code null} for none
337+ */
338+ public java .lang .Integer getImageGcLowThresholdPercent () {
339+ return imageGcLowThresholdPercent ;
340+ }
341+
342+ /**
343+ * Optional. Defines the percent of disk usage before which image garbage collection is never run.
344+ * Lowest disk usage to garbage collect to. The percent is calculated as this field value out of
345+ * 100. The value must be between 10 and 85, inclusive and smaller than
346+ * image_gc_high_threshold_percent. The default value is 80 if unspecified.
347+ * @param imageGcLowThresholdPercent imageGcLowThresholdPercent or {@code null} for none
348+ */
349+ public NodeKubeletConfig setImageGcLowThresholdPercent (java .lang .Integer imageGcLowThresholdPercent ) {
350+ this .imageGcLowThresholdPercent = imageGcLowThresholdPercent ;
351+ return this ;
352+ }
353+
354+ /**
355+ * Optional. Defines the maximum age an image can be unused before it is garbage collected. The
356+ * string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
357+ * such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
358+ * "h". The value must be a positive duration greater than image_minimum_gc_age or "0s". The
359+ * default value is "0s" if unspecified, which disables this field, meaning images won't be
360+ * garbage collected based on being unused for too long.
361+ * @return value or {@code null} for none
362+ */
363+ public java .lang .String getImageMaximumGcAge () {
364+ return imageMaximumGcAge ;
365+ }
366+
367+ /**
368+ * Optional. Defines the maximum age an image can be unused before it is garbage collected. The
369+ * string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
370+ * such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
371+ * "h". The value must be a positive duration greater than image_minimum_gc_age or "0s". The
372+ * default value is "0s" if unspecified, which disables this field, meaning images won't be
373+ * garbage collected based on being unused for too long.
374+ * @param imageMaximumGcAge imageMaximumGcAge or {@code null} for none
375+ */
376+ public NodeKubeletConfig setImageMaximumGcAge (java .lang .String imageMaximumGcAge ) {
377+ this .imageMaximumGcAge = imageMaximumGcAge ;
378+ return this ;
379+ }
380+
381+ /**
382+ * Optional. Defines the minimum age for an unused image before it is garbage collected. The
383+ * string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
384+ * such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
385+ * "h". The value must be a positive duration less than or equal to 2 minutes. The default value
386+ * is "2m0s" if unspecified.
387+ * @return value or {@code null} for none
388+ */
389+ public java .lang .String getImageMinimumGcAge () {
390+ return imageMinimumGcAge ;
391+ }
392+
393+ /**
394+ * Optional. Defines the minimum age for an unused image before it is garbage collected. The
395+ * string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
396+ * such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
397+ * "h". The value must be a positive duration less than or equal to 2 minutes. The default value
398+ * is "2m0s" if unspecified.
399+ * @param imageMinimumGcAge imageMinimumGcAge or {@code null} for none
400+ */
401+ public NodeKubeletConfig setImageMinimumGcAge (java .lang .String imageMinimumGcAge ) {
402+ this .imageMinimumGcAge = imageMinimumGcAge ;
403+ return this ;
404+ }
405+
154406 /**
155407 * Enable or disable Kubelet read only port.
156408 * @return value or {@code null} for none
0 commit comments