aws / aws/containers-roadmap

[eks] [windows]: kubelet fails to start when there are two domain names in DHCP options set

Open
#1,887 0 comments 0 reactions 0 assignees View on GitHub
EKS Proposed Windows
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

kubelet fails to start when there are two domains given in dhcp options set

```
PS C:\Users\builder> Invoke-RestMethod 'http://169.254.169.254/latest/meta-data/hostname'
ip-x-x-x-x.xxx.com corp.xxx.com
```

Startup command found in event viewer logs

`OnStart():kubelet C:\Program Files\kubernetes\kubelet.exe "--config=C:\ProgramData\kubernetes\kubelet-config.json" "--logtostderr=true" "--image-pull-progress-deadline=20m" "--network-plugin=cni" "--cni-bin-dir=C:\Program Files\Amazon\EKS\cni" "--cni-conf-dir=C:\ProgramData\Amazon\EKS\cni\config" "--cloud-provider=aws" "--kubeconfig=C:\ProgramData\kubernetes\kubeconfig" "--hostname-override=ip-x-x-x-x.xxx.com" "corp.xxx.com" "--v=1" "--pod-infra-container-image=amazonaws.com/eks/pause-windows:latest" "--resolv-conf=" "--enable-debugging-handlers" "--cgroups-per-qos=false" "--enforce-node-allocatable=" "--node-ip=x.x.x.x" "--node-labels=nodeclass=windows2019,alpha.eksctl.io/cluster-name=testcluster,alpha.eksctl.io/nodegroup-name=windows-ng-ltsc2019" "--register-with-taints=os=windows:NoSchedule" `

error found in event viewer logs:
`E1114 04:10:31.504409 4796 server.go:166] "Unknown command" command="corp.xxx.com"`

Contributor guide

Open the contributing guide

Research direction

Start with the kubelet.exe startup command shown in the Event Viewer logs and compare the hostname returned by the instance metadata endpoint with the resulting arguments. Investigate why the second DHCP-provided domain becomes a separate kubelet argument, then verify that kubelet starts with multiple domain names present.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kubernetes
Domain
devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.