diff --git a/modules/aws/node/templates/user-data.tftpl b/modules/aws/node/templates/user-data.tftpl index 9cbb508..1af98de 100644 --- a/modules/aws/node/templates/user-data.tftpl +++ b/modules/aws/node/templates/user-data.tftpl @@ -1,9 +1,3 @@ -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="BOUNDARY" - ---BOUNDARY -Content-Type: application/node.eks.aws - --- apiVersion: node.eks.aws/v1alpha1 kind: NodeConfig @@ -13,5 +7,10 @@ spec: apiServerEndpoint: ${api_endpoint} certificateAuthority: ${certificate_authority} cidr: ${cidr} - ---BOUNDARY-- \ No newline at end of file + %{~ if length(kubelet_flags) > 0 ~} + kubelet: + flags: + %{~ for flag in kubelet_flags } + - ${flag} + %{~ endfor } + %{~ endif } \ No newline at end of file