<p>I have an AWS EKS Kubernetes cluster. I have a set of EC2 nodes and also have configured a Fargate profile to launch pods in Fargate compute. Say I am running an App in namespace <code>alex-ns</code>. 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 <code>alex-ns</code>? It appears that if I set the Fargate profile to match with namespace <code>alex-ns</code> everything is Launched in Fargate. However, I would like to split it up specifically based on labels or something. The reason I'm asking is I have to run a Pod that requires more than 32 GB of RAM that's available in Fargate so my pod must run in my EC2 node group.</p>

alex
<blockquote>
<p>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?</p>
</blockquote>
<p>Yes, you can also add <strong>labels</strong> to the <a href="https://www.eksworkshop.com/beginner/180_fargate/creating-profile/" rel="nofollow noreferrer">Fargate Profile selector</a> in addition to the namespace <code>alex-ns</code>.</p>
<p>The EKS documentation has more info about <a href="https://docs.aws.amazon.com/eks/latest/userguide/fargate-profile.html" rel="nofollow noreferrer">Fargate Profiles</a>, an example selector for your case:</p>
<pre><code>    &quot;selectors&quot;: [
        {
            &quot;namespace&quot;: &quot;alex-ns&quot;,
            &quot;labels&quot;: {
                &quot;fargate&quot;: &quot;yes&quot;
            }
        }
</code></pre>
