diff --git a/modules/aws/node/templates/user-data.tftpl b/modules/aws/node/templates/user-data.tftpl index 1af98de..25f1818 100644 --- a/modules/aws/node/templates/user-data.tftpl +++ b/modules/aws/node/templates/user-data.tftpl @@ -1,3 +1,18 @@ +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="BOUNDARY" + +--BOUNDARY +Content-Type: text/x-shellscript; charset="us-ascii" + +#!/bin/bash +%{~ if xrd_bootstrap } +HUGEPAGES_GB=${hugepages_gb} ISOLATED_CORES=${isolated_cores} /etc/xrd/bootstrap.sh +%{~ endif } +${additional_user_data} + +--BOUNDARY +Content-Type: application/node.eks.aws + --- apiVersion: node.eks.aws/v1alpha1 kind: NodeConfig @@ -13,4 +28,6 @@ spec: %{~ for flag in kubelet_flags } - ${flag} %{~ endfor } - %{~ endif } \ No newline at end of file + %{~ endif } + +--BOUNDARY-- \ No newline at end of file