Skip to content

Commit 09e43a8

Browse files
committed
Drop control_plane_asg_lifecycle_hook
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
1 parent c1fef14 commit 09e43a8

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

cluster/config-defaults.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,6 @@ kube2iam_cpu: "25m"
775775
kube2iam_memory: "100Mi"
776776

777777
# configure whether kube2iam should only run on worker nodes.
778-
# This depends on control_plane_asg_lifecycle_hook=false as kube-node-ready
779-
# doesn't work without kube2iam.
780778
kube2iam_worker_only: "true"
781779

782780
# CIDR configuration for nodes and pods
@@ -1132,9 +1130,6 @@ apiserver_memory_limit_percent: "80"
11321130

11331131
apiserver_max_requests_inflight: "400"
11341132

1135-
# specify if control plane nodes should rely on ASG Lifecycle Hook or not
1136-
control_plane_asg_lifecycle_hook: "false"
1137-
11381133
# enable graceful shutdown on the control_plane nodes
11391134
control_plane_graceful_shutdown: "true"
11401135

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

0 commit comments

Comments
 (0)