3.40.0 (latest) 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.30.0 3.29.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0

```javascript
public sealed class NodeKubeletConfig : IMessage<NodeKubeletConfig>, IEquatable<NodeKubeletConfig>, IDeepCloneable<NodeKubeletConfig>, IBufferMessage, IMessage
```
Reference documentation and code samples for the Google Kubernetes Engine v1 API class NodeKubeletConfig.

Node kubelet configs.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> NodeKubeletConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[NodeKubeletConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.NodeKubeletConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[NodeKubeletConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.NodeKubeletConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[NodeKubeletConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.NodeKubeletConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Container.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.md.txt)

## Assembly

Google.Cloud.Container.V1.dll

## Constructors

### NodeKubeletConfig()

```javascript
public NodeKubeletConfig()
```

### NodeKubeletConfig(NodeKubeletConfig)

```javascript
public NodeKubeletConfig(NodeKubeletConfig other)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `NodeKubeletConfig` |

## Properties

### AllowedUnsafeSysctls

```javascript
public RepeatedField<string> AllowedUnsafeSysctls { get; }
```
Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl
patterns (ending in `*`).

The unsafe namespaced sysctl groups are `kernel.shm*`, `kernel.msg*`,
`kernel.sem`, `fs.mqueue.*`, and `net.*`. Leaving this allowlist empty
means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them
separated by commas.
For example: `kernel.msg*,net.ipv4.route.min_pmtu`.

See <https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/>
for more details.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### ContainerLogMaxFiles

```javascript
public int ContainerLogMaxFiles { get; set; }
```
Optional. Defines the maximum number of container log files that can be
present for a container. See
<https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation>

The value must be an integer between 2 and 10, inclusive.
The default value is 5 if unspecified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### ContainerLogMaxSize

```javascript
public string ContainerLogMaxSize { get; set; }
```
Optional. Defines the maximum size of the container log file before it is
rotated. See
<https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation>

Valid format is positive number + unit, e.g. 100Ki, 10Mi. Valid units are
Ki, Mi, Gi.
The value must be between 10Mi and 500Mi, inclusive.

Note that the total container log size (container_log_max_size \*
container_log_max_files) cannot exceed 1% of the total
storage of the node, to avoid disk pressure caused by log files.

The default value is 10Mi if unspecified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CpuCfsQuota

```javascript
public bool? CpuCfsQuota { get; set; }
```
Enable CPU CFS quota enforcement for containers that specify CPU limits.

This option is enabled by default which makes kubelet use CFS quota
(<https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt>) to
enforce container CPU limits. Otherwise, CPU limits will not be enforced at
all.

Disable this option to mitigate CPU throttling problems while still having
your pods to be in Guaranteed QoS class by specifying the CPU limits.

The default value is 'true' if unspecified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### CpuCfsQuotaPeriod

```javascript
public string CpuCfsQuotaPeriod { get; set; }
```
Set the CPU CFS quota period value 'cpu.cfs_period_us'.

The string must be a sequence of decimal numbers, each with optional
fraction and a unit suffix, such as "300ms".
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
The value must be a positive duration between 1ms and 1 second, inclusive.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CpuManagerPolicy

```javascript
public string CpuManagerPolicy { get; set; }
```
Control the CPU management policy on the node.
See
<https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/>

The following values are allowed.

- "none": the default, which represents the existing scheduling behavior.
- "static": allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is 'none' if unspecified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CrashLoopBackOff

```javascript
public NodeKubeletConfig.Types.CrashLoopBackOffConfig CrashLoopBackOff { get; set; }
```
Optional. Contains configuration options to modify node-level parameters
for container restart behavior.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `NodeKubeletConfigTypesCrashLoopBackOffConfig` |   |

### EvictionMaxPodGracePeriodSeconds

```javascript
public int EvictionMaxPodGracePeriodSeconds { get; set; }
```
Optional. eviction_max_pod_grace_period_seconds is the maximum allowed
grace period (in seconds) to use when terminating pods in response to a
soft eviction threshold being met. This value effectively caps the Pod's
terminationGracePeriodSeconds value during soft evictions. Default: 0.
Range: \[0, 300\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### EvictionMinimumReclaim

```javascript
public EvictionMinimumReclaim EvictionMinimumReclaim { get; set; }
```
Optional. eviction_minimum_reclaim is a map of signal names to quantities
that defines minimum reclaims, which describe the minimum amount of a given
resource the kubelet will reclaim when performing a pod eviction while that
resource is under pressure.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EvictionMinimumReclaim` |   |

### EvictionSoft

```javascript
public EvictionSignals EvictionSoft { get; set; }
```
Optional. eviction_soft is a map of signal names to quantities that defines
soft eviction thresholds. Each signal is compared to its corresponding
threshold to determine if a pod eviction should occur.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EvictionSignals` |   |

### EvictionSoftGracePeriod

```javascript
public EvictionGracePeriod EvictionSoftGracePeriod { get; set; }
```
Optional. eviction_soft_grace_period is a map of signal names to quantities
that defines grace periods for each soft eviction signal. The grace period
is the amount of time that a pod must be under pressure before an eviction
occurs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EvictionGracePeriod` |   |

### HasInsecureKubeletReadonlyPortEnabled

```javascript
public bool HasInsecureKubeletReadonlyPortEnabled { get; }
```
Gets whether the "insecure_kubelet_readonly_port_enabled" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasShutdownGracePeriodCriticalPodsSeconds

```javascript
public bool HasShutdownGracePeriodCriticalPodsSeconds { get; }
```
Gets whether the "shutdown_grace_period_critical_pods_seconds" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasShutdownGracePeriodSeconds

```javascript
public bool HasShutdownGracePeriodSeconds { get; }
```
Gets whether the "shutdown_grace_period_seconds" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasSingleProcessOomKill

```javascript
public bool HasSingleProcessOomKill { get; }
```
Gets whether the "single_process_oom_kill" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### ImageGcHighThresholdPercent

```javascript
public int ImageGcHighThresholdPercent { get; set; }
```
Optional. Defines the percent of disk usage after which image garbage
collection is always run. The percent is calculated as this field value out
of 100.

The value must be between 10 and 85, inclusive and greater than
image_gc_low_threshold_percent.

The default value is 85 if unspecified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### ImageGcLowThresholdPercent

```javascript
public int ImageGcLowThresholdPercent { get; set; }
```
Optional. Defines the percent of disk usage before which image garbage
collection is never run. Lowest disk usage to garbage collect to. The
percent is calculated as this field value out of 100.

The value must be between 10 and 85, inclusive and smaller than
image_gc_high_threshold_percent.

The default value is 80 if unspecified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### ImageMaximumGcAge

```javascript
public string ImageMaximumGcAge { get; set; }
```
Optional. Defines the maximum age an image can be unused before it is
garbage collected. The string must be a sequence of decimal numbers, each
with optional fraction and a unit suffix, such as "300s", "1.5h", and
"2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

The value must be a positive duration greater than image_minimum_gc_age
or "0s".

The default value is "0s" if unspecified, which disables this field,
meaning images won't be garbage collected based on being unused for too
long.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ImageMinimumGcAge

```javascript
public string ImageMinimumGcAge { get; set; }
```
Optional. Defines the minimum age for an unused image before it is garbage
collected.

The string must be a sequence of decimal numbers, each with optional
fraction and a unit suffix, such as "300s", "1.5h", and "2h45m". Valid time
units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

The value must be a positive duration less than or equal to 2 minutes.

The default value is "2m0s" if unspecified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### InsecureKubeletReadonlyPortEnabled

```javascript
public bool InsecureKubeletReadonlyPortEnabled { get; set; }
```
Enable or disable Kubelet read only port.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### MaxParallelImagePulls

```javascript
public int MaxParallelImagePulls { get; set; }
```
Optional. Defines the maximum number of image pulls in parallel.
The range is 2 to 5, inclusive.
The default value is 2 or 3 depending on the disk type.

See
<https://kubernetes.io/docs/concepts/containers/images/#maximum-parallel-image-pulls>
for more details.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### MemoryManager

```javascript
public MemoryManager MemoryManager { get; set; }
```
Optional. Controls NUMA-aware Memory Manager configuration on the
node. For more information, see:
<https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MemoryManager` |   |

### PodPidsLimit

```javascript
public long PodPidsLimit { get; set; }
```
Set the Pod PID limits. See
<https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits>

Controls the maximum number of processes allowed to run in a pod. The value
must be greater than or equal to 1024 and less than 4194304.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### ShutdownGracePeriodCriticalPodsSeconds

```javascript
public int ShutdownGracePeriodCriticalPodsSeconds { get; set; }
```
Optional. shutdown_grace_period_critical_pods_seconds is the maximum
allowed grace period (in seconds) used to terminate critical pods during a
node shutdown. This value should be \<= shutdown_grace_period_seconds, and
is only valid if shutdown_grace_period_seconds is set.
<https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/>
Range: \[0, 120\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### ShutdownGracePeriodSeconds

```javascript
public int ShutdownGracePeriodSeconds { get; set; }
```
Optional. shutdown_grace_period_seconds is the maximum allowed grace period
(in seconds) the total duration that the node should delay the shutdown
during a graceful shutdown. This is the total grace period for pod
termination for both regular and critical pods.
<https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/>
If set to 0, node will not enable the graceful node shutdown functionality.
This field is only valid for Spot VMs.
Allowed values: 0, 30, 120.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### SingleProcessOomKill

```javascript
public bool SingleProcessOomKill { get; set; }
```
Optional. Defines whether to enable single process OOM killer.
If true, will prevent the memory.oom.group flag from being set for
container cgroups in cgroups v2. This causes processes in the container to
be OOM killed individually instead of as a group.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### TopologyManager

```javascript
public TopologyManager TopologyManager { get; set; }
```
Optional. Controls Topology Manager configuration on the node.
For more information, see:
<https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TopologyManager` |   |