-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional Kubelet Options #3302
Conversation
/assign @justinsb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these values work with a specific version of k8s? We also need to start adding validation on these as well ;) Please add validation or file an issue to add it later.
pkg/apis/kops/componentconfig.go
Outdated
@@ -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"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lower case on Runtime JASON value please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON value ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good spot! ... a copy and paste error .. i'll fix it now :-)
30b88ab
to
8245d3c
Compare
hi @chrislovecnm its been available since >= 1.3 |
pkg/apis/kops/componentconfig.go
Outdated
@@ -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"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Key correction: RuntimeRequestTimeout
(missing a t).
@@ -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"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here: RuntimeRequestTimeout
@@ -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"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here: RuntimeRequestTimeout
Small comments to address, otherwise looks good. |
In related to issue kubernetes#3265
8245d3c
to
bf5e154
Compare
hi @chrislovecnm ... should we add a check on this? ... i can't see similar checks of this type (albeit that's not a good reason) ... Do we support pre < 1.3 though? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gambol99, justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
This PR add additional options to the kubelet spec allowing users to set the --runtime-request-timeout and -volume-stats-agg-period
In related to issue #3265