Skip to content

Commit

Permalink
Additional Kubelet Options
Browse files Browse the repository at this point in the history
In related to issue #3265
  • Loading branch information
gambol99 committed Aug 28, 2017
1 parent 7daf916 commit 30b88ab
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/kops/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ type KubeletConfigSpec struct {
SystemReservedCgroup string `json:"systemReservedCgroup,omitempty" flag:"system-reserved-cgroup"`
// Enforce Allocatable across pods whenever the overall usage across all pods exceeds Allocatable.
EnforceNodeAllocatable string `json:"enforceNodeAllocatable,omitempty" flag:"enforce-node-allocatable"`
// RuntimeRequesTimeout is timeout for runtime requests on - pull, logs, exec and attach
RuntimeRequesTimeout *metav1.Duration `json:"RuntimeRequestTimeout,omitempty" flag:"runtime-request-timeout"`
// VolumeStatsAggPeriod is the interval for kubelet to calculate and cache the volume disk usage for all pods and volumes
VolumeStatsAggPeriod *metav1.Duration `json:"volumeStatsAggPeriod,omitempty" flag:"volume-stats-agg-period"`
}

// KubeProxyConfig defined the configuration for a proxy
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/kops/v1alpha1/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ type KubeletConfigSpec struct {
SystemReservedCgroup string `json:"systemReservedCgroup,omitempty" flag:"system-reserved-cgroup"`
// Enforce Allocatable across pods whenever the overall usage across all pods exceeds Allocatable.
EnforceNodeAllocatable string `json:"enforceNodeAllocatable,omitempty" flag:"enforce-node-allocatable"`
// RuntimeRequesTimeout is timeout for runtime requests on - pull, logs, exec and attach
RuntimeRequesTimeout *metav1.Duration `json:"RuntimeRequestTimeout,omitempty" flag:"runtime-request-timeout"`
// VolumeStatsAggPeriod is the interval for kubelet to calculate and cache the volume disk usage for all pods and volumes
VolumeStatsAggPeriod *metav1.Duration `json:"volumeStatsAggPeriod,omitempty" flag:"volume-stats-agg-period"`
}

// KubeProxyConfig defined the configuration for a proxy
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/kops/v1alpha1/zz_generated.conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,8 @@ func autoConvert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(in *Kubele
out.SystemReserved = in.SystemReserved
out.SystemReservedCgroup = in.SystemReservedCgroup
out.EnforceNodeAllocatable = in.EnforceNodeAllocatable
out.RuntimeRequesTimeout = in.RuntimeRequesTimeout
out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
return nil
}

Expand Down Expand Up @@ -2004,6 +2006,8 @@ func autoConvert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(in *kops.K
out.SystemReserved = in.SystemReserved
out.SystemReservedCgroup = in.SystemReservedCgroup
out.EnforceNodeAllocatable = in.EnforceNodeAllocatable
out.RuntimeRequesTimeout = in.RuntimeRequesTimeout
out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
return nil
}

Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/kops/v1alpha2/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ type KubeletConfigSpec struct {
SystemReservedCgroup string `json:"systemReservedCgroup,omitempty" flag:"system-reserved-cgroup"`
// Enforce Allocatable across pods whenever the overall usage across all pods exceeds Allocatable.
EnforceNodeAllocatable string `json:"enforceNodeAllocatable,omitempty" flag:"enforce-node-allocatable"`
// RuntimeRequesTimeout is timeout for runtime requests on - pull, logs, exec and attach
RuntimeRequesTimeout *metav1.Duration `json:"RuntimeRequestTimeout,omitempty" flag:"runtime-request-timeout"`
// VolumeStatsAggPeriod is the interval for kubelet to calculate and cache the volume disk usage for all pods and volumes
VolumeStatsAggPeriod *metav1.Duration `json:"volumeStatsAggPeriod,omitempty" flag:"volume-stats-agg-period"`
}

// KubeProxyConfig defined the configuration for a proxy
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/kops/v1alpha2/zz_generated.conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -2052,6 +2052,8 @@ func autoConvert_v1alpha2_KubeletConfigSpec_To_kops_KubeletConfigSpec(in *Kubele
out.SystemReserved = in.SystemReserved
out.SystemReservedCgroup = in.SystemReservedCgroup
out.EnforceNodeAllocatable = in.EnforceNodeAllocatable
out.RuntimeRequesTimeout = in.RuntimeRequesTimeout
out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
return nil
}

Expand Down Expand Up @@ -2112,6 +2114,8 @@ func autoConvert_kops_KubeletConfigSpec_To_v1alpha2_KubeletConfigSpec(in *kops.K
out.SystemReserved = in.SystemReserved
out.SystemReservedCgroup = in.SystemReservedCgroup
out.EnforceNodeAllocatable = in.EnforceNodeAllocatable
out.RuntimeRequesTimeout = in.RuntimeRequesTimeout
out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
return nil
}

Expand Down

0 comments on commit 30b88ab

Please sign in to comment.