Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support offline bootstrap of Windows nodes #1505

Conversation

jaroslav-fedor-swi
Copy link

@jaroslav-fedor-swi jaroslav-fedor-swi commented Jul 28, 2021

PR o'clock

Description

In case you need to spin nodes in environment, that does not have egress to internet windows nodes does not connect to cluster. The reason behind that is that Start-EKSBootstrap.ps1 which is baked in windows EKS AMI is executed with minimal set of parameters which then requires egress to eks.<region>.amazonaws.com. This endpoint does not support private link and does not come with managed prefix list. The only way to make the Boostrap script offline is to pass additional arguments - private EKS endpoint and Cluster CA.

Checklist

@jaroslav-fedor-swi jaroslav-fedor-swi changed the title Update userdata_windows.tpl with endpoint and CA feat: Support offline bootstrap of Windows nodes Jul 28, 2021
@daroga0002
Copy link
Contributor

could you add working example of EKS with Windows nodes to https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples ?

@bryantbiggs
Copy link
Member

this looks like an area where we just make a generic variable and its up to users to provide whatever arguments they want for input rather than building out this massive string of input options

@stale
Copy link

stale bot commented Oct 1, 2021

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
To track this PR (even if closed), please open a corresponding issue if one does not already exist.

@stale stale bot added the stale label Oct 1, 2021
@daroga0002 daroga0002 removed the stale label Oct 6, 2021
@daroga0002
Copy link
Contributor

@jaroslav-fedor-swi could you add provide here some EKS configuration with working windows workers or node groups?

@jaroslav-fedor-swi
Copy link
Author

@daroga0002 I added example of windows_launch_templates.

@daroga0002
Copy link
Contributor

@jaroslav-fedor-swi I have run example but seems it is not working as EKS is created, instances are also created but they had not joined to EKS cluster

image

@daroga0002
Copy link
Contributor

I think I require to run procedure to enable windows support over EKS.

I will try that approach

Copy link
Contributor

@daroga0002 daroga0002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaroslav-fedor-swi 2 comments to address before merging

@@ -0,0 +1,65 @@
# Launch templates example

This is EKS example using workers launch template with worker groups feature.
Copy link
Contributor

@daroga0002 daroga0002 Nov 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is EKS example using workers launch template with worker groups feature.
This is EKS example using workers launch template with Windows worker groups feature. Additionally it create managed group with Linux nodes to satisfy generic EKS object placement (like Coredns).
After creating EKS cluster following procedure must be executed https://docs.aws.amazon.com/eks/latest/userguide/windows-support.html#macos-and-linux to allow Windows nodes to join cluster.

]
},
// default Linux worker group launch template for big workloads
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
]
]
node_groups = {
linux = {
desired_capacity = 1
max_capacity = 10
min_capacity = 1
instance_types = ["t3.large"]
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaroslav-fedor-swi can you commit those two suggestions into your branch?

@github-actions
Copy link

github-actions bot commented Dec 9, 2021

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label Dec 9, 2021
@github-actions
Copy link

This PR was automatically closed because of stale in 10 days

@github-actions github-actions bot closed this Dec 19, 2021
@antonbabenko
Copy link
Member

This issue has been resolved in version 18.0.0 🎉

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants