<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>cli installation on Kubernetes Basics Training</title><link>/setup/local-usage/cli-installation/</link><description>Recent content in cli installation on Kubernetes Basics Training</description><generator>Hugo</generator><language>en</language><atom:link href="/setup/local-usage/cli-installation/index.xml" rel="self" type="application/rss+xml"/><item><title>Windows</title><link>/setup/local-usage/cli-installation/windows/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/setup/local-usage/cli-installation/windows/</guid><description>&lt;h2 id="installation-for-windows">Installation for Windows&lt;/h2>
&lt;p>Follow the steps outlined in &lt;a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" target="_blank" rel="noopener">https://kubernetes.io/docs/tasks/tools/install-kubectl/&lt;/a>
.&lt;/p>
&lt;p>In case the installation from the official package repositories didn&amp;rsquo;t work (or a specific version is needed) the static binary can be downloaded and put into the following path:&lt;/p>
&lt;pre tabindex="0">&lt;code>C:\Kubernetes\
&lt;/code>&lt;/pre>&lt;p>In Windows, the &lt;code>PATH&lt;/code> can be set in the advanced system settings. It depends on the version:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://www.thewindowsclub.com/how-to-add-edit-a-path-variable-in-windows" target="_blank" rel="noopener">Windows 10&lt;/a>
&lt;/li>
&lt;li>&lt;a href="https://thecategorizer.com/windows/how-to-add-path-and-environment-variables-in-windows/" target="_blank" rel="noopener">Windows 11&lt;/a>
&lt;/li>
&lt;/ul>
&lt;div class="alert alert-info" role="alert">
&lt;h4 class="alert-heading">Note: Windows Quick Hack&lt;/h4>
&lt;p>Copy the &lt;code>kubectl&lt;/code> binary directly into the folder &lt;code>C:\Windows&lt;/code>.&lt;/p></description></item><item><title>macOS</title><link>/setup/local-usage/cli-installation/macos/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/setup/local-usage/cli-installation/macos/</guid><description>&lt;h2 id="installation-for-macos">Installation for macOS&lt;/h2>
&lt;p>Follow the steps outlined in &lt;a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" target="_blank" rel="noopener">https://kubernetes.io/docs/tasks/tools/install-kubectl/&lt;/a>
.&lt;/p>
&lt;p>In case the installation from the official package repositories didn&amp;rsquo;t work (or a specific version is needed) the static binary can be downloaded and put into the following path:&lt;/p>
&lt;pre tabindex="0">&lt;code>~/bin
&lt;/code>&lt;/pre>&lt;h3 id="file-mode">File mode&lt;/h3>
&lt;p>The &lt;code>kubectl&lt;/code> binary has to be executable:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">cd&lt;/span> ~/bin
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>chmod +x kubectl
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="path-variable">PATH variable&lt;/h3>
&lt;p>In macOS, the directory &lt;code>~/bin&lt;/code> should already be part of the &lt;code>PATH&lt;/code> variable.
In case &lt;code>kubectl&lt;/code> is placed in a different directory, you can change the &lt;code>PATH&lt;/code> variable with the following command:&lt;/p></description></item><item><title>Linux</title><link>/setup/local-usage/cli-installation/linux/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/setup/local-usage/cli-installation/linux/</guid><description>&lt;h2 id="installation-for-linux">Installation for Linux&lt;/h2>
&lt;p>Follow the steps outlined in &lt;a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" target="_blank" rel="noopener">https://kubernetes.io/docs/tasks/tools/install-kubectl/&lt;/a>
.&lt;/p>
&lt;p>In case the installation from the official package repositories didn&amp;rsquo;t work (or a specific version is needed) the static binary can be downloaded and put into the following path:&lt;/p>
&lt;pre tabindex="0">&lt;code>~/bin
&lt;/code>&lt;/pre>&lt;h3 id="file-mode">File mode&lt;/h3>
&lt;p>The &lt;code>kubectl&lt;/code> binary has to be executable:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">cd&lt;/span> ~/bin
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>chmod +x kubectl
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="path-variable">PATH variable&lt;/h3>
&lt;p>In Linux, the directory &lt;code>~/bin&lt;/code> should already be part of the &lt;code>PATH&lt;/code> variable.
In case &lt;code>kubectl&lt;/code> is placed in a different directory, you can change the &lt;code>PATH&lt;/code> variable with the following command:&lt;/p></description></item></channel></rss>