<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kubectl on Lead DevOps</title><link>https://lead-devops.blackdevhub.online/en/tags/kubectl/</link><description>Recent content in Kubectl on Lead DevOps</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 24 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://lead-devops.blackdevhub.online/en/tags/kubectl/index.xml" rel="self" type="application/rss+xml"/><item><title>kubectl cheatsheet: essential commands for Kubernetes</title><link>https://lead-devops.blackdevhub.online/en/posts/kubectl-cheatsheet/</link><pubDate>Thu, 24 Sep 2026 00:00:00 +0000</pubDate><guid>https://lead-devops.blackdevhub.online/en/posts/kubectl-cheatsheet/</guid><description>&lt;p&gt;kubectl is the primary interface to a Kubernetes cluster. This cheatheet covers routine operations — from context setup to pod debugging and namespace switching. All commands are verified against current kubectl versions (1.28+).&lt;/p&gt;&#10;&lt;h2 id="installation-and-context-setup"&gt;Installation and Context Setup&#10;&lt;/h2&gt;&#10;&lt;p&gt;Installation depends on your OS. On Linux, use the package manager or the binary directly:&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-e824e41a-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="3"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-e824e41a-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl -LO &lt;span class="s2"&gt;&amp;#34;https://dl.k8s.io/release/&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;curl -L -s https://dl.k8s.io/release/stable.txt&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;/bin/linux/amd64/kubectl&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;chmod +x kubectl &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo mv kubectl /usr/local/bin/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;kubectl version --client&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Configuration lives in &lt;code&gt;~/.kube/config&lt;/code&gt;. A context defines the cluster, user, and default namespace.&lt;/p&gt;</description></item><item><title>kubectl whoami and Service Account Permission Checks</title><link>https://lead-devops.blackdevhub.online/en/posts/kubectl-whoami-check-sa-rights/</link><pubDate>Wed, 02 Sep 2026 00:00:00 +0000</pubDate><guid>https://lead-devops.blackdevhub.online/en/posts/kubectl-whoami-check-sa-rights/</guid><description>&lt;p&gt;When deploying an application to Kubernetes, the most common failure is a service account that cannot do what it should. Permission denied when creating a secret, rejection on list pods, refusal on update. kubectl whoami and kubectl auth can-i let you quickly identify exactly who cannot do what.&lt;/p&gt;&#10;&lt;h2 id="kubectl-whoami-plugin"&gt;kubectl whoami plugin&#10;&lt;/h2&gt;&#10;&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;kubectl whoami is not a built-in kubectl command. It is a plugin from krew or a standalone binary. Install with &lt;code&gt;kubectl krew install whoami&lt;/code&gt; or download from GitHub.&lt;/p&gt;</description></item></channel></rss>