AWS Kubernetes:将同一命名空间中的一组 pods 部署到 Fargate 并将其他部署到 EC2 节点组?

AWS Kubernetes: Deploying set of pods in the same namespace to Fargate and others to EC2 node group?

我有一个 AWS EKS Kubernetes 集群。我有一组 EC2 节点,还配置了 Fargate 配置文件以在 Fargate 计算中启动 pods。假设我 运行 在命名空间 alex-ns 中安装一个应用程序。如果它们都驻留在 alex-ns 中,我能否以某种方式在 Fargate 中部署一组 pods 并在我的其他 EC2 节点组中部署一组不同的 pods?看来,如果我将 Fargate 配置文件设置为与命名空间 alex-ns 匹配,则一切都会在 Fargate 中启动。但是,我想根据标签或其他内容将其具体拆分。我问的原因是我必须 运行 一个需要超过 32 GB RAM 的 Pod,这在 Fargate 中可用,所以我的 Pod 必须 运行 在我的 EC2 节点组中。

Can I somehow deploy 1 set of pods in Fargate and 1 set of different pods in my other EC2 nodegroup if they all reside in alex-ns?

是的,除了命名空间 alex-ns.

之外,您还可以将 labels 添加到 Fargate Profile selector

EKS 文档提供了有关 Fargate Profiles 的更多信息,您的情况的示例选择器:

    "selectors": [
        {
            "namespace": "alex-ns",
            "labels": {
                "fargate": "yes"
            }
        }