Migrate from Amazon EKS

Move your workloads from Amazon EKS to a Better Stack cluster. The Kubernetes API is the same, so your manifests and Helm charts carry over. What changes is everything around the cluster: nodes, load balancers, storage and access.

What maps to what

Amazon EKS Better Stack What to change
EKS control plane Control plane, free Nothing. Each cluster has one control plane, and workloads keep serving if it goes down.
Managed node groups Node pools Create one node pool per node group. A pool's server type is fixed, so add a pool to change shape.
Spot node groups Spot node pools Keep at least one non-spot pool for cluster-critical workloads.
Cluster Autoscaler or Karpenter No cluster autoscaler Scale node pools on the cluster page. The HorizontalPodAutoscaler still works.
aws eks update-kubeconfig with IAM Download kubeconfig Use the downloaded kubeconfig. It holds a cluster-admin token.
IAM roles for service accounts Service-account OIDC issuer Pods don't get AWS IAM roles. External verifiers such as HashiCorp Vault can trust the cluster's tokens.
LoadBalancer Services on an AWS load balancer LoadBalancer Services on a Better Stack load balancer Replace service.beta.kubernetes.io/aws-load-balancer-* annotations with load-balancer.betterstack.com/* ones.
Ingress with the AWS Load Balancer Controller No bundled ingress controller Install an ingress controller such as Traefik behind a LoadBalancer Service, and cert-manager for TLS certificates.
EBS volumes, gp2 or gp3 StorageClass betterstack-volume StorageClass, the default Remove storageClassName: gp2 or gp3, or set it to betterstack-volume.
EFS volumes with ReadWriteMany Not available Volumes are ReadWriteOnce only.
EBS snapshots through VolumeSnapshot VolumeSnapshot with class betterstack-volume-snapshots, the default Leave out volumeSnapshotClassName, or set it to betterstack-volume-snapshots.
Amazon ECR No container registry Keep your registry and give the cluster pull credentials. ECR tokens expire after 12 hours, so refresh the pull secret on a schedule.
VPC and subnets Private networks Attach the private networks your Better Stack servers and databases are on, and every pod can reach them.
Security groups on nodes Firewall on the workers Attach one firewall per cluster.
Public endpoint access CIDRs API access Allow only your office or VPN ranges.
Node groups across availability zones One data center per cluster All nodes run in one data center.
node.kubernetes.io/instance-type with EC2 types The same label with Better Stack server types Update node selectors that pin EC2 instance types.

Migrate your workloads

  1. Create a cluster in the data center closest to your users.
  2. Add a node pool for each EKS node group, with a server type of similar vCPU and RAM.
  3. In Configure, select the Private networks your Better Stack servers and databases are on, then click Save changes.
  4. Download the kubeconfig and check that kubectl get nodes lists every node as Ready.
  5. Update your manifests and Helm values using What maps to what.
  6. Deploy your workloads with the same kubectl apply or helm install commands you use today.
  7. Copy your persistent data into the new volumes with the backup and restore tools you already use.
  8. Lower the TTL of your DNS records.
  9. Test your services on the new load balancers' IP addresses.
  10. Point your DNS records at the new load balancers.
  11. Remove the EKS cluster once traffic has moved over.

Need the client's IP address in your pods?

Better Stack load balancers pass TCP through without the client's address. Annotate the Service with load-balancer.betterstack.com/proxy-protocol: "v2" and turn on PROXY protocol in your ingress controller. See kubectl for Traefik and ingress-nginx settings.

What works differently

  • Nodes aren't reachable from the internet. NodePorts are closed on public addresses, so public traffic always arrives through a load balancer.
  • Workers are ordinary servers. They're billed as ordinary servers, but you manage them through the cluster.
  • Volumes outlive the cluster. Removing a cluster keeps its persistent volumes in your account, where they're still billed until you remove them.

Need help?

Please let us know at hello@betterstack.com.
We're happy to help! 🙏