<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/atom.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Posts tagged: kubenetes</title>
  <id>https://waylonwalker.com/tags/kubenetes/atom.xml</id>
  <updated>2025-12-08T20:59:27Z</updated>
  <subtitle>All posts with the tag &#34;kubenetes&#34;</subtitle>
  <link href="https://waylonwalker.com/tags/kubenetes/" rel="alternate" type="text/html"></link>
  <link href="https://waylonwalker.com/tags/kubenetes/atom.xml" rel="self" type="application/atom+xml"></link>
  <author>
    <name>Waylon Walker</name>
  </author>
  <generator uri="https://github.com/WaylonWalker/markata-go">markata-go</generator>
  <entry>
    <title>check your kubeconfig expire time</title>
    <id>https://waylonwalker.com/check-your-kubeconfig-expire-time/</id>
    <updated>2025-12-08T20:59:27Z</updated>
    <published>2025-12-08T20:59:27Z</published>
    <link href="https://waylonwalker.com/check-your-kubeconfig-expire-time/" rel="alternate" type="text/html"></link>
    <summary type="text">Today I learned an important lesson that you should periodically check on your kubeconfigs expiration date. It&#39;s easy to do. You can ask for the...</summary>
    <content type="html">&lt;p&gt;Today I learned an important lesson that you should periodically check on your&#xA;kubeconfigs expiration date.  It’s easy to do.  You can ask for the&#xA;client-certificate-data from your kubeconfig, decode it, and use openssl to get&#xA;the expiration date.&lt;/p&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;kubectl config view --raw -o &lt;span class=&#34;nv&#34;&gt;jsonpath&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;{.users[0].user.client-certificate-data}&amp;#39;&lt;/span&gt; &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;se&#34;&gt;&lt;/span&gt;  &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; base64 -d 2&amp;gt;/dev/null &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;se&#34;&gt;&lt;/span&gt;  &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; openssl x509 -noout -dates&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&#34;admonition note&#34;&gt;&#xA;&lt;p class=&#34;admonition-title&#34;&gt;Note&lt;/p&gt;&#xA;&lt;p&gt;This will only work for the first user, if you have more than one user or&#xA;context defined in your kubeconfig you will need to adjust.&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;</content>
    <author>
      <name>Waylon Walker</name>
      <email>hello@waylonwalker.com</email>
      <uri>https://waylonwalker.com</uri>
    </author>
  </entry>
</feed>