Skip to content

Commit

Permalink
Enable NTH Scheduled Event Draining by default
Browse files Browse the repository at this point in the history
  • Loading branch information
johngmyers committed Dec 9, 2022
1 parent 1a97b02 commit 7c5b983
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/releases/1.26-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ with "control-plane-". The names of groups for existing clusters are unchanged.

* New clusters can more easily be configured to use Cilium in ENI mode by setting `--networking=cilium-eni`.

* Node Termination Handler now defaults to Queue-Processor mode.
* Node Termination Handler now defaults to Queue-Processor mode. It also now enables Scheduled Event Draining by default.

## GCP

Expand Down
2 changes: 1 addition & 1 deletion k8s/crds/kops.k8s.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5351,7 +5351,7 @@ spec:
enableScheduledEventDraining:
description: 'EnableScheduledEventDraining makes node termination
handler drain nodes before the maintenance window starts for
an EC2 instance scheduled event. Default: false'
an EC2 instance scheduled event. Default: true'
type: boolean
enableSpotInterruptionDraining:
description: 'EnableSpotInterruptionDraining makes node termination
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/kops/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ type NodeTerminationHandlerConfig struct {
// Default: true
EnableSpotInterruptionDraining *bool `json:"enableSpotInterruptionDraining,omitempty"`
// EnableScheduledEventDraining makes node termination handler drain nodes before the maintenance window starts for an EC2 instance scheduled event.
// Default: false
// Default: true
EnableScheduledEventDraining *bool `json:"enableScheduledEventDraining,omitempty"`
// EnableRebalanceMonitoring makes node termination handler cordon nodes when the rebalance recommendation notice is received
// Default: false
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/kops/v1alpha2/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ type NodeTerminationHandlerConfig struct {
// Default: true
EnableSpotInterruptionDraining *bool `json:"enableSpotInterruptionDraining,omitempty"`
// EnableScheduledEventDraining makes node termination handler drain nodes before the maintenance window starts for an EC2 instance scheduled event.
// Default: false
// Default: true
EnableScheduledEventDraining *bool `json:"enableScheduledEventDraining,omitempty"`
// EnableRebalanceMonitoring makes node termination handler cordon nodes when the rebalance recommendation notice is received
// Default: false
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/kops/v1alpha3/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ type NodeTerminationHandlerConfig struct {
// Default: true
EnableSpotInterruptionDraining *bool `json:"enableSpotInterruptionDraining,omitempty"`
// EnableScheduledEventDraining makes node termination handler drain nodes before the maintenance window starts for an EC2 instance scheduled event.
// Default: false
// Default: true
EnableScheduledEventDraining *bool `json:"enableScheduledEventDraining,omitempty"`
// EnableRebalanceMonitoring makes node termination handler cordon nodes when the rebalance recommendation notice is received
// Default: false
Expand Down
2 changes: 1 addition & 1 deletion pkg/model/components/nodeterminationhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (b *NodeTerminationHandlerOptionsBuilder) BuildOptions(o interface{}) error
nth.EnableSpotInterruptionDraining = fi.PtrTo(true)
}
if nth.EnableScheduledEventDraining == nil {
nth.EnableScheduledEventDraining = fi.PtrTo(false)
nth.EnableScheduledEventDraining = fi.PtrTo(true)
}
if nth.EnableRebalanceMonitoring == nil {
nth.EnableRebalanceMonitoring = fi.PtrTo(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ spec:
- name: ENABLE_SPOT_INTERRUPTION_DRAINING
value: "{{ WithDefaultBool .EnableSpotInterruptionDraining true }}"
- name: ENABLE_SCHEDULED_EVENT_DRAINING
value: "{{ WithDefaultBool .EnableScheduledEventDraining false }}"
value: "{{ WithDefaultBool .EnableScheduledEventDraining true }}"
- name: ENABLE_REBALANCE_MONITORING
value: "{{ WithDefaultBool .EnableRebalanceMonitoring false }}"
- name: ENABLE_REBALANCE_DRAINING
Expand Down Expand Up @@ -376,7 +376,7 @@ spec:
- name: ENABLE_SPOT_INTERRUPTION_DRAINING
value: "{{ WithDefaultBool .EnableSpotInterruptionDraining true }}"
- name: ENABLE_SCHEDULED_EVENT_DRAINING
value: "{{ WithDefaultBool .EnableScheduledEventDraining false }}"
value: "{{ WithDefaultBool .EnableScheduledEventDraining true }}"
- name: ENABLE_REBALANCE_MONITORING
value: "{{ WithDefaultBool .EnableRebalanceMonitoring false }}"
- name: ENABLE_REBALANCE_DRAINING
Expand Down

0 comments on commit 7c5b983

Please sign in to comment.