mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-24 02:11:04 +01:00
Add Windows support (#555)
* Add Windows support * Assign eks:kube-proxy-windows group to worker nodes * Add Instructions for adding Windows Workers at FAQ.md * Remove unnecessary variables from userdata_windows.tpl * Update CHANGELOG.md
This commit is contained in:
committed by
Thierno IB. BARRY
parent
be6fa61d0d
commit
2d52e06786
11
templates/userdata_windows.tpl
Normal file
11
templates/userdata_windows.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
<powershell>
|
||||
${pre_userdata}
|
||||
|
||||
[string]$EKSBinDir = "$env:ProgramFiles\Amazon\EKS"
|
||||
[string]$EKSBootstrapScriptName = 'Start-EKSBootstrap.ps1'
|
||||
[string]$EKSBootstrapScriptFile = "$EKSBinDir\$EKSBootstrapScriptName"
|
||||
& $EKSBootstrapScriptFile -EKSClusterName ${cluster_name} -KubeletExtraArgs '${kubelet_extra_args}' 3>&1 4>&1 5>&1 6>&1
|
||||
$LastError = if ($?) { 0 } else { $Error[0].Exception.HResult }
|
||||
|
||||
${additional_userdata}
|
||||
</powershell>
|
||||
@@ -3,3 +3,6 @@
|
||||
groups:
|
||||
- system:bootstrappers
|
||||
- system:nodes
|
||||
%{~ if platform == "windows" ~}
|
||||
- eks:kube-proxy-windows
|
||||
%{~ endif ~}
|
||||
|
||||
Reference in New Issue
Block a user