Skip to content

Commit cd0d30d

Browse files
authored
Merge pull request #8549 from zalando-incubator/drop-kube-node-ready
Drop kube-node-ready
2 parents 4adcc79 + 09e43a8 commit cd0d30d

File tree

10 files changed

+2
-149
lines changed

10 files changed

+2
-149
lines changed

cluster/config-defaults.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,6 @@ kubernetes_lifecycle_metrics_mem_min: "120Mi"
484484
kube_node_ready_controller_cpu: "50m"
485485
kube_node_ready_controller_memory: "200Mi"
486486

487-
# Enable kube-node-ready ASG lifecycle hook feature.
488-
kube_node_ready_enabled: "true"
489-
490487
# Enable deployment of aws-cloud-controller-manager
491488
aws_cloud_controller_manager_enabled: "true"
492489
aws_cloud_controller_manager_cpu: "125m"
@@ -778,8 +775,6 @@ kube2iam_cpu: "25m"
778775
kube2iam_memory: "100Mi"
779776

780777
# configure whether kube2iam should only run on worker nodes.
781-
# This depends on control_plane_asg_lifecycle_hook=false as kube-node-ready
782-
# doesn't work without kube2iam.
783778
kube2iam_worker_only: "true"
784779

785780
# CIDR configuration for nodes and pods
@@ -1135,9 +1130,6 @@ apiserver_memory_limit_percent: "80"
11351130

11361131
apiserver_max_requests_inflight: "400"
11371132

1138-
# specify if control plane nodes should rely on ASG Lifecycle Hook or not
1139-
control_plane_asg_lifecycle_hook: "false"
1140-
11411133
# enable graceful shutdown on the control_plane nodes
11421134
control_plane_graceful_shutdown: "true"
11431135

cluster/manifests/deletions.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -309,17 +309,6 @@ post_apply:
309309
kind: DaemonSet
310310
namespace: kube-system
311311
{{- end }}
312-
{{- if ne .Cluster.ConfigItems.kube_node_ready_enabled "true" }}
313-
- name: kube-node-ready
314-
kind: DaemonSet
315-
namespace: kube-system
316-
- name: kube-node-ready
317-
kind: ServiceAccount
318-
namespace: kube-system
319-
- name: kube-node-ready
320-
kind: Service
321-
namespace: kube-system
322-
{{- end }}
323312
{{- if ne .Cluster.ConfigItems.role_sync_controller_enabled "true" }}
324313
- name: role-sync-controller
325314
kind: CronJob

cluster/manifests/kube-node-ready/01-rbac.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

cluster/manifests/kube-node-ready/daemonset.yaml

Lines changed: 0 additions & 69 deletions
This file was deleted.

cluster/manifests/kube-node-ready/service.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

cluster/manifests/kube2iam/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
annotations:
2222
logging/destination: "{{.Cluster.ConfigItems.log_destination_infra}}"
2323
spec:
24-
{{- if and (eq .Cluster.ConfigItems.kube2iam_worker_only "true") (eq .Cluster.ConfigItems.control_plane_asg_lifecycle_hook "false") }}
24+
{{- if eq .Cluster.ConfigItems.kube2iam_worker_only "true" }}
2525
nodeSelector:
2626
node.kubernetes.io/role: worker
2727
{{- end }}

cluster/node-pools/master-default/stack.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,3 @@ Resources:
101101
Roles:
102102
- !ImportValue '{{ .Cluster.ID }}:master-iam-role'
103103
Type: 'AWS::IAM::InstanceProfile'
104-
{{- if eq .Cluster.ConfigItems.control_plane_asg_lifecycle_hook "true" }}
105-
AutoscalingLifecycleHook:
106-
Properties:
107-
AutoScalingGroupName: !Ref AutoScalingGroup
108-
LifecycleHookName: "kube-node-ready-lifecycle-hook"
109-
DefaultResult: CONTINUE
110-
HeartbeatTimeout: '600'
111-
LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'
112-
Type: 'AWS::AutoScaling::LifecycleHook'
113-
{{- end }}

cluster/node-pools/master-default/userdata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ write_files:
44
path: /etc/kubernetes/secrets.env
55
content: |
66
NODEPOOL_TAINTS=node.kubernetes.io/role=master:NoSchedule{{if index .NodePool.ConfigItems "taints"}},{{.NodePool.ConfigItems.taints}}{{end}}
7-
NODE_LABELS=master=true,node.kubernetes.io/exclude-from-external-load-balancers,node.kubernetes.io/distro=ubuntu,cluster-lifecycle-controller.zalan.do/decommission-priority=999,lifecycle-status=ready{{if index .NodePool.ConfigItems "labels"}},{{.NodePool.ConfigItems.labels}}{{end}}{{if eq .Cluster.ConfigItems.control_plane_asg_lifecycle_hook "true" }},asg-lifecycle-hook=true{{end}}
7+
NODE_LABELS=master=true,node.kubernetes.io/exclude-from-external-load-balancers,node.kubernetes.io/distro=ubuntu,cluster-lifecycle-controller.zalan.do/decommission-priority=999,lifecycle-status=ready{{if index .NodePool.ConfigItems "labels"}},{{.NodePool.ConfigItems.labels}}{{end}}
88
NODEPOOL_NAME={{ .NodePool.Name }}
99
KUBELET_ROLE=master
1010

cluster/node-pools/worker-combined/stack.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,3 @@ Resources:
174174
Roles:
175175
- !ImportValue '{{ .Cluster.ID }}:worker-iam-role'
176176
Type: 'AWS::IAM::InstanceProfile'
177-
# {{ if eq .Cluster.ConfigItems.kube_node_ready_enabled "true" }}
178-
AutoscalingLifecycleHook:
179-
Properties:
180-
AutoScalingGroupName: !Ref AutoScalingGroup
181-
LifecycleHookName: "kube-node-ready-lifecycle-hook"
182-
DefaultResult: CONTINUE
183-
HeartbeatTimeout: '600'
184-
LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'
185-
Type: 'AWS::AutoScaling::LifecycleHook'
186-
# {{ end }}

cluster/node-pools/worker-splitaz/stack.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,6 @@ Resources:
125125
VPCZoneIdentifier:
126126
- "{{ index $data.Values.subnets $az }}"
127127
Type: 'AWS::AutoScaling::AutoScalingGroup'
128-
# {{ if eq $data.Cluster.ConfigItems.kube_node_ready_enabled "true" }}
129-
AutoscalingLifecycleHook{{$azID}}:
130-
Properties:
131-
AutoScalingGroupName: !Ref AutoScalingGroup{{$azID}}
132-
LifecycleHookName: "kube-node-ready-lifecycle-hook"
133-
DefaultResult: CONTINUE
134-
HeartbeatTimeout: '600'
135-
LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'
136-
Type: 'AWS::AutoScaling::LifecycleHook'
137-
# {{ end }}
138128
{{ end }}
139129
{{ end }}
140130
{{ end }}

0 commit comments

Comments
 (0)