<?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 alexos.dev</title>
    <link>https://alexos.dev/tags/kubectl/</link>
    <description>Recent content in Kubectl on alexos.dev</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Tue, 02 Feb 2021 18:00:00 -0100</lastBuildDate>
    <atom:link href="https://alexos.dev/tags/kubectl/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to connect to Google Kubernetes clusters in parallel</title>
      <link>https://alexos.dev/2021/02/02/how-to-connect-to-google-kubernetes-clusters-in-parallel/</link>
      <pubDate>Tue, 02 Feb 2021 18:00:00 -0100</pubDate>
      <guid>https://alexos.dev/2021/02/02/how-to-connect-to-google-kubernetes-clusters-in-parallel/</guid>
      <description>&lt;figure&gt;&lt;img src=&#34;https://alexos.dev/images/kube.jpg?width=800px&amp;amp;classes=shadow&#34;&gt;&lt;figcaption&gt;&#xA;      &lt;p&gt;&#xA;          &lt;a href=&#34;https://unsplash.com/photos/4eTnTQle0Ks&#34;&gt;Photo by Alvaro Reyes on Unsplash&lt;/a&gt;&lt;/p&gt;&#xA;    &lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;In this post I&amp;rsquo;m going to talk through the approach I use to switch between multiple Google Kubernetes Engine clusters on the command line. I&amp;rsquo;d expect a lot of the stuff in here has some benefit for non-GCP Kubernetes clusters too, but the ones I use on a day-to-day basis are all hosted there.&lt;/p&gt;&#xA;&lt;p&gt;Key outcomes for me were:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;To be able to switch from one cluster to another with only a small number of commands, even if I have to authenticate with different user accounts (as primarily a GCP user, this means different email addresses / GCP projects).&lt;/li&gt;&#xA;&lt;li&gt;To be connected to different Kubernetes in different windows - for example tailing logs in a Prod &amp;amp; Non-Prod cluster at the same time - and for that connection to persist across multiple &lt;code&gt;kubectl&lt;/code&gt; commands.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Spoiler Alert:&lt;/strong&gt; I solved this with a bit of fiddling of &lt;code&gt;~/.kube/config&lt;/code&gt; plus the marvellous &lt;a href=&#34;https://blog.sbstp.ca/introducing-kubie/&#34;&gt;kubie&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
