-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Feature] Support setting container runtime for EKS Windows nodes #5082
Comments
Hi! Thank you for your request! I'll take a look at this. :) Ah, excellent. Container runtime is a supported environment property. So I see no problem in providing it. |
Thanks @Skarlso for such a quick turnaround! I just took a quick look at the PR which is linked to this issue. Just wanted to mention that on Windows, the allowed values for |
Oh you're right. Thanks for the note. Wow, why the heck is it different from linux? 🤔 |
Well, when docker runs on Windows node, it is started as a Windows service named One of the reasons 😄 |
Aaaaahh. :DDD Okay, thanks, that at least makes SOME sense. :D |
@rawahars Hi! Did you have any chance of testing this? Recently, it started to fail, and we have to revert this feature until further investigation can be done. :( |
Hi @Skarlso, I tested both the functionalities with Windows nodes using eksctl and it worked as intended-
I was using the pre-release version: https://github.com/weaveworks/eksctl/releases/tag/v0.93.0-rc.0 Cluster config-
|
Thank you for confirming! We will fix our test accordingly and reintroduce this feature. Cheers! |
What feature/behavior/change do you want?
Currently, Windows nodes running EKS 1.21 and 1.22 (to be released shortly) can be configured to use
containerd
as the alternate runtime. This feature request is for adding the support for the same to eksctl.Reference- https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-windows-ami.html#containerd-bootstrap-windows
Last year, Linux support for the same was added wherein customers can define
containerRuntime
in theireksctl
config or pass it via cli. Reference- #4051We can use similar customer facing flag wherein Windows users can specify the runtime to be used on the node.
Why do you want this feature?
Since the support of using alternate runtime was added on Windows nodes, it would be beneficial for the customers to use the existing flags for setting the same via
eksctl
.Currently, we have suggested a workaround wherein they set an environment variable via
preBootstrapCommand
.How this can be enabled under the hood for Windows?
A bootstrap script is used for setting up the required configuration on the node. The same is invoked via the user data on node startup.
In order to specify a container runtime, we pass additional flag
ContainerRuntime
to the script. The possible values for this flag on Windows aredocker
andcontainerd
.Reference (Bootstrap script parameters)- https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-windows-ami.html#bootstrap-script-configuration-parameters
Reference (Details about container runtime flag on Windows)- https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-windows-ami.html#containerd-bootstrap-windows
The text was updated successfully, but these errors were encountered: