Skip to content

Title: Issues Injecting clusterDNS and IPVS Setup with AL2023 in EKS NodeGroup

0

Hi Team,

As part of our EKS-based container platform strategy, we’ve adopted Kubernetes with IPVS mode for kube-proxy due to its scalability and performance benefits over iptables. This has worked well in our Amazon Linux 2 (AL2) based nodegroups.

During testing on Amazon Linux 2023 (AL2023), we noticed IPVS modules are either not present or not reliably initialized — leading to liveness/readiness failures in pods.

At this point, we’ve had to either fallback to AL2 or temporarily switch to iptables mode on AL2023 nodes. Ideally, we’d like to continue using IPVS in AL2023 if there’s a supported and stable way to bootstrap it within managed EKS nodegroups.

We use AL2-based EKS nodegroups with dual clusterDNS IPs and IPVS kube-proxy via Terraform (--cluster-dns in kubelet_extra_args and IPVS modules via user data). This works reliably.

As part of a test, we created an AL2023 nodegroup via EKS UI with a custom launch template, including:

clusterDNS in both spec.kubelet.config and --cluster-dns flag

IPVS module loading in user data shell script

Issues:

clusterDNS shows as null in .kubeletconfig

#from nodes which launched via al2023 eks ami: kubectl get --raw "/api/v1/nodes/<node-name>" | jq '.kubeletconfig | {clusterDNS}'

returns null

Pods fail readiness/liveness

Updating launch template version marks nodegroup unhealthy (Ec2LaunchTemplateVersionMismatch)

We also tried using nodeadm YAML format and MIME multipart setup for AL2023 as per AWS documentation.

Questions:

What’s the best way to inject dual clusterDNS multi IPs and IPVS setup in AL2023 while retaining EKS-managed nodegroup health?

Should we consider moving this AL2023 nodegroup to an unmanaged ASG?

Any known issues using AL2023 + IPVS + multi-DNS in EKS managed nodegroups?

Thanks in advance!

  • As part of our EKS-based container platform strategy, we’ve adopted Kubernetes with IPVS mode for kube-proxy due to its scalability and performance benefits over iptables. This has worked well in our Amazon Linux 2 (AL2) based nodegroups.

    During testing on Amazon Linux 2023 (AL2023), we noticed IPVS modules are either not present or not reliably initialized — leading to liveness/readiness failures in pods.

    At this point, we’ve had to either fallback to AL2 or temporarily switch to iptables mode on AL2023 nodes. Ideally, we’d like to continue using IPVS in AL2023 if there’s a supported and stable way to bootstrap it within managed EKS nodegroups.

2 Answers
6

Any luck to try this:

  1. Switch to Unmanaged Node Groups If you need full control over bootstrapping and kernel modules, unmanaged Auto Scaling Groups (ASGs) give you flexibility:
  • You can use custom AMIs with preloaded IPVS modules.
  • Avoid EKS-managed constraints on launch template updates.
  • Inject clusterDNS reliably via kubelet_extra_args or nodeadm YAML.
  1. Use AL2 Until AL2023 Stabilizes AL2 remains the most stable option for IPVS mode in EKS. If IPVS is critical to your architecture, sticking with AL2 may be the safest path for now.
EXPERT

answered a year ago

0

Hey,

Hope you're keeping well.

Amazon Linux 2023 AMIs for EKS have some changes compared to AL2, including differences in how kubelet configuration is generated and how kernel modules are packaged. IPVS modules are present in AL2023 but not preloaded, so you’ll need to load them via modprobe early in your bootstrap script before kube-proxy starts. For dual clusterDNS, EKS managed nodegroups don’t persist custom kubelet flags from user data in the same way as AL2; instead, you can set kubeletExtraArgs through the --kubelet-extra-args parameter in the /etc/eks/bootstrap.sh call in your launch template, ensuring it runs before node joins the cluster.

Thanks and regards,
Taz

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.