fargate的aws eks -kube -system Pods不安排在Fargate节点上
我在带有Fargate概况的AWS EKS中有一个Kubernetes群集。当我尝试在Kube-System名称空间中运行AWS负载平衡器控制器或Metrics Server时,POD并未在Fargate节点上安排,而是由默认的SCHEDULER选择。但是我尝试通过Fargate-Scheduler选择的默认名称空间部署它们,正在将其部署在Fargate节点上。
这是我用于Kube-System Fargate配置文件的CF模板:
EKSFargateProfileKubeSystem:
Type: 'AWS::EKS::FargateProfile'
DependsOn:
- EKSCluster
- EKSIAMFargateRole
Properties:
FargateProfileName: kube-system
ClusterName: !Sub 'my-cluster-${Stage}'
PodExecutionRoleArn:
"Fn::GetAtt": [ "EKSIAMFargateRole", "Arn" ]
Subnets:
- !Ref PrivateSubnet01
- !Ref PrivateSubnet02
Selectors:
- Namespace: kube-system
Labels:
- Key: k8s-app
Value: kube-dns
请建议我是否缺少任何东西,以及为什么Kube-System的Fargate个人资料不起作用。
I have a kubernetes cluster in aws eks with fargate profiles. When I'm trying to run aws load balancer controller or the metrics server in the kube-system namespace, the pods are not getting scheduled on the fargate nodes and are picked by the default-scheduler. But I try to deploy them on the default namespace they are picked by the fargate-scheduler are are getting deployed on the fargate nodes.
Here is my CF template for kube-system fargate profile:
EKSFargateProfileKubeSystem:
Type: 'AWS::EKS::FargateProfile'
DependsOn:
- EKSCluster
- EKSIAMFargateRole
Properties:
FargateProfileName: kube-system
ClusterName: !Sub 'my-cluster-${Stage}'
PodExecutionRoleArn:
"Fn::GetAtt": [ "EKSIAMFargateRole", "Arn" ]
Subnets:
- !Ref PrivateSubnet01
- !Ref PrivateSubnet02
Selectors:
- Namespace: kube-system
Labels:
- Key: k8s-app
Value: kube-dns
Please suggest If I'm missing anything and why the fargate profile for kube-system is not working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有
标签
设置,这意味着仅带有标签(K8S-APP:KUBE-DNS)的POD将在Fargate上运行。删除标签
要求,并且群集中的所有PODkube-system
名称空间将在Fargate上运行。You have
Labels
setup which means only pod with the labels (k8s-app: kube-dns)will be running on Fargate. Remove theLabels
requirement and all pods in your clusterkube-system
namespace will run on Fargate.