<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Lens Kubernetes Node Shell Microk8s the command could not be located - Kubernetes and Containers				            </title>
            <link>https://www.virtualizationhowto.com/community/kubernetes-and-containers/lens-kubernetes-node-shell-microk8s-the-command-could-not-be-located/</link>
            <description>Virtualization Howto Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 10 Aug 2026 01:48:55 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Lens Kubernetes Node Shell Microk8s the command could not be located</title>
                        <link>https://www.virtualizationhowto.com/community/kubernetes-and-containers/lens-kubernetes-node-shell-microk8s-the-command-could-not-be-located/#post-1058</link>
                        <pubDate>Thu, 28 Nov 2024 01:32:16 +0000</pubDate>
                        <description><![CDATA[If you use the Lens Desktop Kubernetes IDE to work with your Kubernetes clusters (it is one of the best ones out there), you may have run into a problem when launching a node shell that give...]]></description>
                        <content:encoded><![CDATA[<p>If you use the Lens Desktop Kubernetes IDE to work with your Kubernetes clusters (it is one of the best ones out there), you may have run into a problem when launching a node shell that gives the error message:</p>
<p><strong>Command 'microk8s' is available in '/snap/bin/microk8s'</strong><br /><strong>The command could not be located because '/snap/bin' is not included in the PATH environment variable.</strong><br /><strong>microk8s: command not found</strong></p>
<p>This is what it looks like in the node shell:</p>
414
<p>There is a little workaround fix that will make it where you won't run into this issue. It involves editing your <strong>.bashrc</strong> file. </p>
<pre contenteditable="false">nano ~/.bashrc</pre>
<p>Then add the following at the bottom of the .bashrc file:</p>
<pre contenteditable="false">export PATH=$PATH:/snap/bin</pre>
415
<p>Then to make the changes active, run the following command:</p>
<pre contenteditable="false">source ~/.bashrc</pre>
<p> </p>
<p>Then you can check to see if you can run microk8s commands:</p>
416
<p> </p>
<p>Hopefully, this little fix will help anyone else that may have run into this issue working with a Microk8s cluster with Lens Desktop Kubernetes IDE.</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/kubernetes-and-containers/">Kubernetes and Containers</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/kubernetes-and-containers/lens-kubernetes-node-shell-microk8s-the-command-could-not-be-located/#post-1058</guid>
                    </item>
							        </channel>
        </rss>
		