<?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/">
  <channel>
    <title>Forem: Renan Ferreira</title>
    <description>The latest articles on Forem by Renan Ferreira (@relferreira).</description>
    <link>https://forem.com/relferreira</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F151300%2Fc9fc7e8a-0880-497d-b5e0-c10126a48bfe.jpg</url>
      <title>Forem: Renan Ferreira</title>
      <link>https://forem.com/relferreira</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/relferreira"/>
    <language>en</language>
    <item>
      <title>Simple Kubernetes Dashboard - KubeDev</title>
      <dc:creator>Renan Ferreira</dc:creator>
      <pubDate>Tue, 25 Feb 2020 14:13:13 +0000</pubDate>
      <link>https://forem.com/relferreira/simple-kubernetes-dashboard-kubedev-38pb</link>
      <guid>https://forem.com/relferreira/simple-kubernetes-dashboard-kubedev-38pb</guid>
      <description>&lt;p&gt;TL;DR: check out the &lt;a href="https://github.com/relferreira/kubedev"&gt;GitHub Page&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Kubernetes has been in my life since 2018, and it transformed the way I develop and maintain software. It not only made the life of my team much easier, but it also helped us scale our services elastically and decreased our costs with infrastructure.&lt;/p&gt;

&lt;p&gt;As you can see, I’m a big fan of this project and the community around it. So I decided to try to give back something in return, and at the same time, improve one area that frustrated me.&lt;/p&gt;

&lt;p&gt;The concepts around Kubernetes and Docker are not that easy, and the tasks involved in managing the services deployed in a cluster are repetitive and not optimized for day-to-day use. I found myself doing the same &lt;code&gt;kubectl&lt;/code&gt; commands every day at work.&lt;/p&gt;

&lt;p&gt;So I decided to create a Kubernetes Dashboard, called &lt;a href="https://github.com/relferreira/kubedev"&gt;KubeDev&lt;/a&gt;, that would help beginners to have a better view of the services running in the cluster and, at the same time, simplify the life of the people responsible for keeping everything running.&lt;/p&gt;

&lt;h1&gt;
  
  
  Installation
&lt;/h1&gt;

&lt;p&gt;The simplest way to run Kubedev is with docker. Just run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run --rm -it -v ~/.kube/:/root/.kube/ --net=host relferreira/kubedev:1.0.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;and visit localhost:9898&lt;/p&gt;

&lt;p&gt;Unfortunately, on macOS the --net=host does not work correctly, so I suggest downloading the binary kubedev_darwin in this &lt;a href="https://github.com/relferreira/kubedev/releases"&gt;PAGE&lt;/a&gt;, and running the following command in the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./kubedev_darwin
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  Search
&lt;/h1&gt;

&lt;p&gt;One of the first areas that I would like to address was the easiness of finding resources by a name search. Usually, to get the logs of a running service, I would list the deployments to remember its name, list the pods, search for the one that I was looking for and then run the logs command.&lt;/p&gt;

&lt;p&gt;With Kubedev all of your deployments, services and pods are searchable. Just reach out for the search box or press cmd + k and start typing the name of your resource.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hI_0jHQE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zhoux7tebpb86rg22fpb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hI_0jHQE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zhoux7tebpb86rg22fpb.png" alt="Search"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All pages with tables have search functionality too, helping us filter the enormous number of pods inside a namespace (I know, bad practice).&lt;/p&gt;

&lt;h1&gt;
  
  
  Command Palette
&lt;/h1&gt;

&lt;p&gt;If you are already familiar with &lt;code&gt;kubectl&lt;/code&gt; commands, just press &lt;code&gt;cmd + shift + k&lt;/code&gt; to access the command palette mode, where most of your commands will work as if in the terminal, plus you get all the search functionality described earlier. Some examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;kubectl get svc&lt;/code&gt; will redirect you to the list of services in the namespace&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;kubectl logs POD_NAME&lt;/code&gt; to get the pod's logs&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;kubectl get deploy&lt;/code&gt; to autocomplete with the name of the resource&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;kubectl edit deploy DEPLOYMENT_NAME&lt;/code&gt; to edit the deployment YAML&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;kubectl describe deploy DEPLOYMENT_NAME&lt;/code&gt; to get the describe YAML&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those commands work for most of the Kubernetes resources.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BZxaZREM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5co39ut3pv0zrou8aita.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BZxaZREM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5co39ut3pv0zrou8aita.png" alt="Command Palette"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Editor
&lt;/h1&gt;

&lt;p&gt;Built-in Kubedev is a text editor, based in Monaco (code editor which powers &lt;a href="https://github.com/Microsoft/vscode"&gt;VS Code&lt;/a&gt;), for creating and editing YAML files. So you can edit all your Kubernetes resources using the &lt;code&gt;kubectl edit&lt;/code&gt; command, or even create new resources.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aSgszrfy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hs2gmz0s9m895j0n7uyh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aSgszrfy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hs2gmz0s9m895j0n7uyh.png" alt="Editor"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Logs
&lt;/h1&gt;

&lt;p&gt;The logs page will stream all of your pod’s logs to the browser in a way that, I hope, will not crash your tab. It even has a search box to help you debug that bug on production.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6cuqrR1t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0x62ujj6lxh65e9m4t3d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6cuqrR1t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0x62ujj6lxh65e9m4t3d.png" alt="Logs"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Port Forward
&lt;/h1&gt;

&lt;p&gt;In the Service information page, you can trigger a &lt;code&gt;port-forward&lt;/code&gt; command and keep track of all open tunnels, inside the Port Forward page&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---_zGjCyC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/m7zvx7iib0np5impn17m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---_zGjCyC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/m7zvx7iib0np5impn17m.png" alt="Port Forward"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  History
&lt;/h1&gt;

&lt;p&gt;Last but not least, the command pallet has a history mode. Just type &lt;code&gt;cmd + shift + y&lt;/code&gt; to access all of your previous commands, just like you would do in your terminal.&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/relferreira/kubedev"&gt;KubeDev&lt;/a&gt; is still in its early stages, but it is already helping me a lot. I hope that it helps others with the same problems I have.&lt;br&gt;
Feel free to contact me with issues and to request new features. I will be delighted if more people use this tool :)&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>docker</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
