-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial changes for windows managed node support Add taint example to windows doc * Update iam.tf Co-authored-by: Andriy Knysh <[email protected]> * Update Changes to allow windows autotaint label, fixes * Add the windows taint by default to windows nodes * Correct ami_kind filter * Alter userdata nt to match current userscript * Guard userdata against errors from userscript stopping node-join. * Remove disk_size * Add windnows_coredns_service_address because EKS Windows networking isn't fab. * Remove extraneous statement, fix output * Add drive mapping to windows userdata; put bootstrap extra args in correct place and remove extraneous params (based on eksctl code base and aws generated script) * Convert ami.tf maps to map format ("":"" to key = "value") * Revert min provider; remove enclosure on ipv6 policy * Uncomment userdata/label versions in example * Remove leading whitespace in markdown * Change `ami_release_version` regex to support windows ami format Tested here: https://regex101.com/r/xb7q2f/2 * Auto Format * Update versions.tf Ref version change related to change log https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#4480-december-19-2022 * Revert renaming of linux worker node group in example/complete * Auto Format --------- Co-authored-by: Andriy Knysh <[email protected]> Co-authored-by: cloudpossebot <[email protected]>
- Loading branch information
1 parent
04cddc1
commit 814a2f4
Showing
19 changed files
with
195 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ | |
|
||
# vim editor | ||
*.swp | ||
|
||
/.terraform.lock.hcl | ||
/.vscode | ||
/examples/complete/.terraform.lock.hcl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!-- markdownlint-disable --> | ||
## Windows Managed Node groups | ||
|
||
Windows managed node-groups have a few pre-requisites. | ||
|
||
* Your cluster must contain at least one linux based worker node | ||
* Your EKS Cluster must have the `AmazonEKSVPCResourceController` and `AmazonEKSClusterPolicy` policies attached | ||
* Your cluster must have a config-map called amazon-vpc-cni with the following content | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: amazon-vpc-cni | ||
namespace: kube-system | ||
data: | ||
enable-windows-ipam: "true" | ||
``` | ||
* Windows nodes will automatically be tainted | ||
```yaml | ||
kubernetes_taints = [{ | ||
key = "WINDOWS" | ||
value = "true" | ||
effect = "NO_SCHEDULE" | ||
}] | ||
``` | ||
* Any pods that target Windows will need to have the following attributes set in their manifest | ||
|
||
```yaml | ||
nodeSelector: | ||
kubernetes.io/os: windows | ||
kubernetes.io/arch: amd64 | ||
``` | ||
https://docs.aws.amazon.com/eks/latest/userguide/windows-support.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,6 @@ max_size = 3 | |
|
||
min_size = 2 | ||
|
||
disk_size = 20 | ||
|
||
kubernetes_labels = { | ||
terratest = "true" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.