简体   繁体   中英

AWS EKS Fargate and Nodegroup

I have an AWS EKS with Fargate Profiles and Nodegroup with EC2 instances. I have a Fargate Profile that select "kube-system" namespace.

在此处输入图像描述

  1. For some reason kube-proxy POD is running under Nodegroup and not fargate, and this POD is under kube-system namespace. I noted that all pods with type DaemonSet is running under Nodegroup, and ignoring Fargate Profile. Any explanation for this? I didn't found in AWS Docs.

  2. How to configure AWS EKS to deploy a specific POD to nodegroup instead fargate, under 'kube-system' namespace (remeber that I have a fargate profile with kube-system selector).

  1. https://docs.aws.amazon.com/eks/latest/userguide/fargate.html -

Daemonsets are not supported on Fargate. If your application requires a daemon, you should reconfigure that daemon to run as a sidecar container in your pods.

  1. To schedule deployment of AWS EKS pod to Fargate you simply provide pod selector for particular namespace eg for namespace kube-system create pod selector computation-mode: fargate in AWS UI or by any CLI. Then you need to provide this computation-mode: fargate label to every k8s controller eg deployment for AWS EKS to know that you want to use Fargate solution.

So answering your question:

How to configure AWS EKS to deploy a specific POD to nodegroup instead fargate

Just do not provide any pod selector on k8s controller. But remember that if you do not have ANY pod selector on fargate profile for a particular namespace then by default all pods should TRY to do it by Fargate.

Hope it makes any sense.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM