Skip to content

Commit

Permalink
Deployed aa8222b with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 8, 2023
1 parent b87b587 commit eccbef6
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 9 deletions.
52 changes: 44 additions & 8 deletions patterns/karpenter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1137,18 +1137,54 @@ <h1 id="karpenter">Karpenter<a class="headerlink" href="#karpenter" title="Perma
<h2 id="deploy">Deploy<a class="headerlink" href="#deploy" title="Permanent link">&para;</a></h2>
<p>See <a href="https://aws-ia.github.io/terraform-aws-eks-blueprints/getting-started/#prerequisites">here</a> for the prerequisites and steps to deploy this pattern.</p>
<h2 id="validate">Validate<a class="headerlink" href="#validate" title="Permanent link">&para;</a></h2>
<div class="admonition danger">
<p class="admonition-title">TODO</p>
<p>Add in validation steps</p>
</div>
<ol>
<li>
<p>Test by listing the nodes in the cluster. You should see four Fargate nodes in the cluster:</p>
<div class="language-sh highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>kubectl<span class="w"> </span>get<span class="w"> </span>nodes
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>NAME<span class="w"> </span>STATUS<span class="w"> </span>ROLES<span class="w"> </span>AGE<span class="w"> </span>VERSION
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>fargate-ip-10-0-11-195.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>5m20s<span class="w"> </span>v1.28.2-eks-f8587cb
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>fargate-ip-10-0-27-183.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>5m2s<span class="w"> </span>v1.28.2-eks-f8587cb
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>fargate-ip-10-0-4-169.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>5m3s<span class="w"> </span>v1.28.2-eks-f8587cb
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a>fargate-ip-10-0-44-106.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>5m12s<span class="w"> </span>v1.28.2-eks-f8587cb
</span></code></pre></div>
</li>
<li>
<p>Provision the Karpenter <code>EC2NodeClass</code> and <code>NodePool</code> resources which provide Karpenter the necessary configurations to provision EC2 resources:</p>
<div class="language-sh highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>kubectl<span class="w"> </span>apply<span class="w"> </span>-f<span class="w"> </span>karpenter.yaml
</span></code></pre></div>
</li>
<li>
<p>Once the Karpenter resources are in place, Karpenter will provision the necessary EC2 resources to satisfy any pending pods in the scheduler's queue. You can demonstrate this with the example deployment provided. First deploy the example deployment which has the initial number replicas set to 0:</p>
<div class="language-sh highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a>kubectl<span class="w"> </span>apply<span class="w"> </span>-f<span class="w"> </span>example.yaml
</span></code></pre></div>
</li>
<li>
<p>When you scale the example deployment, you should see Karpenter respond by quickly provisioning EC2 resources to satisfy those pending pod requests:</p>
<div class="language-sh highlight"><pre><span></span><code><span id="__span-3-1"><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a>kubectl<span class="w"> </span>scale<span class="w"> </span>deployment<span class="w"> </span>inflate<span class="w"> </span>--replicas<span class="o">=</span><span class="m">3</span>
</span></code></pre></div>
</li>
<li>
<p>Listing the nodes should now show some EC2 compute that Karpenter has created for the example deployment:</p>
<div class="language-sh highlight"><pre><span></span><code><span id="__span-4-1"><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a>kubectl<span class="w"> </span>get<span class="w"> </span>nodes
</span><span id="__span-4-2"><a id="__codelineno-4-2" name="__codelineno-4-2" href="#__codelineno-4-2"></a>
</span><span id="__span-4-3"><a id="__codelineno-4-3" name="__codelineno-4-3" href="#__codelineno-4-3"></a>NAME<span class="w"> </span>STATUS<span class="w"> </span>ROLES<span class="w"> </span>AGE<span class="w"> </span>VERSION
</span><span id="__span-4-4"><a id="__codelineno-4-4" name="__codelineno-4-4" href="#__codelineno-4-4"></a>fargate-ip-10-0-11-195.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>13m<span class="w"> </span>v1.28.2-eks-f8587cb
</span><span id="__span-4-5"><a id="__codelineno-4-5" name="__codelineno-4-5" href="#__codelineno-4-5"></a>fargate-ip-10-0-27-183.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>12m<span class="w"> </span>v1.28.2-eks-f8587cb
</span><span id="__span-4-6"><a id="__codelineno-4-6" name="__codelineno-4-6" href="#__codelineno-4-6"></a>fargate-ip-10-0-4-169.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>12m<span class="w"> </span>v1.28.2-eks-f8587cb
</span><span id="__span-4-7"><a id="__codelineno-4-7" name="__codelineno-4-7" href="#__codelineno-4-7"></a>fargate-ip-10-0-44-106.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>13m<span class="w"> </span>v1.28.2-eks-f8587cb
</span><span id="__span-4-8"><a id="__codelineno-4-8" name="__codelineno-4-8" href="#__codelineno-4-8"></a>ip-10-0-32-199.us-west-2.compute.internal<span class="w"> </span>Ready<span class="w"> </span>&lt;none&gt;<span class="w"> </span>29s<span class="w"> </span>v1.28.2-eks-a5df82a<span class="w"> </span><span class="c1"># &lt;== EC2 created by Karpenter</span>
</span></code></pre></div>
</li>
</ol>
<h2 id="destroy">Destroy<a class="headerlink" href="#destroy" title="Permanent link">&para;</a></h2>
<p>Scale down the deployment to de-provision Karpenter created resources first:</p>
<div class="language-sh highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>kubectl<span class="w"> </span>delete<span class="w"> </span>deployment<span class="w"> </span>inflate
<div class="language-sh highlight"><pre><span></span><code><span id="__span-5-1"><a id="__codelineno-5-1" name="__codelineno-5-1" href="#__codelineno-5-1"></a>kubectl<span class="w"> </span>delete<span class="w"> </span>-f<span class="w"> </span>example.yaml
</span></code></pre></div>
<!-- BEGIN INCLUDE ../../docs/_partials/destroy.md -->
<div class="language-sh highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>terraform<span class="w"> </span>destroy<span class="w"> </span>-target<span class="o">=</span><span class="s2">&quot;module.eks_blueprints_addons&quot;</span><span class="w"> </span>-auto-approve
</span><span id="__span-1-2"><a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a>terraform<span class="w"> </span>destroy<span class="w"> </span>-target<span class="o">=</span><span class="s2">&quot;module.eks&quot;</span><span class="w"> </span>-auto-approve
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a>terraform<span class="w"> </span>destroy<span class="w"> </span>-auto-approve
<div class="language-sh highlight"><pre><span></span><code><span id="__span-6-1"><a id="__codelineno-6-1" name="__codelineno-6-1" href="#__codelineno-6-1"></a>terraform<span class="w"> </span>destroy<span class="w"> </span>-target<span class="o">=</span><span class="s2">&quot;module.eks_blueprints_addons&quot;</span><span class="w"> </span>-auto-approve
</span><span id="__span-6-2"><a id="__codelineno-6-2" name="__codelineno-6-2" href="#__codelineno-6-2"></a>terraform<span class="w"> </span>destroy<span class="w"> </span>-target<span class="o">=</span><span class="s2">&quot;module.eks&quot;</span><span class="w"> </span>-auto-approve
</span><span id="__span-6-3"><a id="__codelineno-6-3" name="__codelineno-6-3" href="#__codelineno-6-3"></a>terraform<span class="w"> </span>destroy<span class="w"> </span>-auto-approve
</span></code></pre></div>
<p>See <a href="https://aws-ia.github.io/terraform-aws-eks-blueprints/getting-started/#destroy">here</a> for more details on cleaning up the resources created.</p>
<!-- END INCLUDE -->
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit eccbef6

Please sign in to comment.