[英]AWS EKS Fargate and Nodegroup
I have an AWS EKS with Fargate Profiles and Nodegroup with EC2 instances.我有一个带有 Fargate 配置文件的 AWS EKS 和带有 EC2 实例的节点组。 I have a Fargate Profile that select "kube-system" namespace.
我有一个 Fargate 配置文件,它是 select “kube-system” 命名空间。
For some reason kube-proxy
POD is running under Nodegroup and not fargate, and this POD is under kube-system namespace.出于某种原因
kube-proxy
POD 在 Nodegroup 下运行而不是 fargate,并且此 POD 在 kube-system 命名空间下。 I noted that all pods with type DaemonSet is running under Nodegroup, and ignoring Fargate Profile.我注意到所有类型为 DaemonSet 的 pod 都在 Nodegroup 下运行,并且忽略了 Fargate Profile。 Any explanation for this?
对此有何解释? I didn't found in AWS Docs.
我没有在 AWS Docs 中找到。
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).如何配置 AWS EKS 以在“kube-system”命名空间下将特定 POD 部署到节点组而不是 fargate(请记住,我有一个带有 kube-system 选择器的 fargate 配置文件)。
Daemonsets are not supported on Fargate.
Fargate 不支持守护程序集。 If your application requires a daemon, you should reconfigure that daemon to run as a sidecar container in your pods.
如果您的应用程序需要守护程序,您应该重新配置该守护程序以在您的 pod 中作为 sidecar 容器运行。
kube-system
create pod selector computation-mode: fargate
in AWS UI or by any CLI.kube-system
创建 pod 选择器computation-mode: fargate
。 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.computation-mode: fargate
label 到每个 k8s controller 例如deployment
AWS EKS 知道你想使用 Fargate 解决方案。 So answering your question:所以回答你的问题:
How to configure AWS EKS to deploy a specific POD to nodegroup instead fargate
如何配置 AWS EKS 以将特定 POD 部署到节点组而不是 fargate
Just do not provide any pod selector on k8s controller.只是不要在 k8s controller 上提供任何 pod 选择器。 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.
但是请记住,如果您在 Fargate 配置文件中没有针对特定命名空间的任何 pod 选择器,那么默认情况下,所有 pod 都应尝试通过 Fargate 执行此操作。
Hope it makes any sense.希望它有任何意义。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.