<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shoaib Khan on Medium]]></title>
        <description><![CDATA[Stories by Shoaib Khan on Medium]]></description>
        <link>https://medium.com/@shoaibjdev?source=rss-dc13d07d0638------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gphN5RthOeLwhVNc.jpg</url>
            <title>Stories by Shoaib Khan on Medium</title>
            <link>https://medium.com/@shoaibjdev?source=rss-dc13d07d0638------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:46:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shoaibjdev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[etcdctl — Error: context deadline exceeded [Accessing ETCD Control in newer versions of Kubernetes]]]></title>
            <link>https://medium.com/@shoaibjdev/etcdctl-error-context-deadline-exceeded-accessing-etcd-control-in-newer-versions-of-kubernetes-ef78c83be6ce?source=rss-dc13d07d0638------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef78c83be6ce</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[etcdctl]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[etcd]]></category>
            <dc:creator><![CDATA[Shoaib Khan]]></dc:creator>
            <pubDate>Tue, 12 Jun 2018 13:01:04 GMT</pubDate>
            <atom:updated>2018-06-12T13:01:04.225Z</atom:updated>
            <content:encoded><![CDATA[<p>In the newer versions of kubernetes, ETCD servers advertise the client address with TLS enabled by default. This sometimes become difficult for people coming from Kubernetes older version or even new comers to Kubernetes where most of the documentations/tutorials would refer <strong>etcdctl</strong> directly without addressing HTTPS endpoints.</p><p>It’s not so difficult to go through CoreOS documentations and issues list and find references to error such as one below</p><blockquote>$ etcdctl members list<br>Error: context deadline exceeded</blockquote><p>Starting point to address this issue would be to verify from the master node, how <strong>apiserver</strong> is communicating with <strong>etcd</strong></p><blockquote><strong><em>ps -ef | grep apiserver</em></strong></blockquote><blockquote><em>apiserver — advertise-address=192.168.122.243 </em><strong><em>etcd-servers</em></strong><em>=https://192.168.122.243:2379,https://192.168.122.142:2379,https://192.168.122.176:2379 — etcd-cafile=/etc/ssl/etcd/ssl/ca.pem</em><strong><em> — -etcd-certfile</em></strong><em>=/etc/ssl/etcd/ssl/node-server1.pem </em><strong><em>— etcd-keyfile</em></strong><em>=/etc/ssl/etcd/ssl/node-server1-key.pem</em></blockquote><p>Now that you are sure ETCD has advertised its members on secure HTTPS endpoints and also have highlighted above the <strong>Private Key</strong> and <strong>Certificate </strong>file it’s referencing you could use etcdctl easily by just appending key and cert files while invoking the command.</p><blockquote><em>[apizone@server1 tmp]$ </em><strong><em>etcdctl - -key /tmp/ca-key.pem — -cert /tmp/ca.pem member list</em></strong></blockquote><p>18959ed642c954627, started, etcd2, https://192.168.122.142:2380, <a href="https://192.168.122.142:2379/">https://192.168.122.142:2379</a></p><p>2ac9bc72680fa357d, started, etcd3, https://192.168.122.176:2380, <a href="https://192.168.122.176:2379/">https://192.168.122.176:2379</a></p><p>3cb57f3947153c7c7, started, etcd1, https://192.168.122.243:2380, <a href="https://192.168.122.243:2379/">https://192.168.122.243:2379</a></p><blockquote><em>Have copied the key (</em><strong><em>ca-key.pem</em></strong><em>) and cert (</em><strong><em>ca.pem</em></strong><em>) files from </em><strong><em>/etc/ssl/etcd/ssl</em></strong><em> to /tmp and assigned rights to local user as it’s usually owned by root or kube user depending on how you setup your cluster.</em></blockquote><blockquote><em>Also you could set it up as part of environment under /etc/environment to avoid referencing the keys &amp; cert every time</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef78c83be6ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>