<?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 Deepak kumar on Medium]]></title>
        <description><![CDATA[Stories by Deepak kumar on Medium]]></description>
        <link>https://medium.com/@deepak.linuxredhat?source=rss-25047204f7a6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*b967Nv2CH6JnnvWO</url>
            <title>Stories by Deepak kumar on Medium</title>
            <link>https://medium.com/@deepak.linuxredhat?source=rss-25047204f7a6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:52:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deepak.linuxredhat/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[DOCKER NETWORKING & CNI(Container network interface) : docker does not have this feature.]]></title>
            <link>https://medium.com/@deepak.linuxredhat/docker-networking-cni-container-network-interface-docker-does-not-have-this-feature-e2eaf014d115?source=rss-25047204f7a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2eaf014d115</guid>
            <dc:creator><![CDATA[Deepak kumar]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 16:15:11 GMT</pubDate>
            <atom:updated>2020-09-23T16:15:11.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>DOCKER NETWORKING &amp; CNI(Container network interface) : docker does not have this feature. means we can’t attached any other network to docker.</h3><p>TYPES OF DOCKER NETWORK</p><p>i) None Network: Nobody reaches to your containers. Even your container not able to communicate with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*jIRYXSufshM3UfX9wbjvZQ.png" /></figure><p>ii) Host Network: Port will get open on the host machine. Suppose we have open nginx 80 port, it will open on host machine. Again if we want to open the same 80 port, it won’t open. Two processes can’t listion on same port at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*40FQZhdzEQDNqtVweosiuQ.png" /></figure><p>iii) Bridge Network: Bridge network is network which the docker host and container are attached too. That will provide provide private IP to container with the range 172.17.0.x.</p><figure><img alt="We can se bridge network will provide provide IP 172.17.x.x range." src="https://cdn-images-1.medium.com/max/1024/1*cwX8Mt2cSTwsQQbpzEflAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*PiOzHD877oX1gJHQ1VLHow.png" /></figure><p>Docker bridge will create as the name of docker0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*fjfQrmPUD_kBYDWYgjyqjw.png" /></figure><ul><li>ip netns : Command will show the namespace</li><li>To check container namespace</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*HnqeAWJ1GWsbV1iHFH7WmQ.png" /></figure><ul><li>Multiple Container:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*VC-f5BcGbjChqSfbbLsNnA.png" /></figure><ul><li>Port Mapping: Suppose container running on 80( nginx port). Now, any container if will curl it will work but from outside if will try it wan’t work hence will use port mapping where the outside host machine will listion 8080 to container port 80.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxBaQE7NR2Ca_J8ASwkCXg.png" /></figure><ul><li>In Iptable whatever will do docker will do same things. Check the command.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXDSvaIlL4XimO67rMklZg.png" /></figure><ul><li>We can list the rule in iptables:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I99zxO7-SxCayBpz0my_DQ.png" /></figure><ul><li>CNI: Docker does not having CNI feature, it means we can’t attached any other network with docker whereas other roket, messo and kubernates having CNI Feature. There we can any network or third party netwok.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UWbWo1df-tG9cpi3vmvEQ.png" /></figure><p>But when kubernetes create a docker network , it creates none network then it attached CNI plugin which takes care docker containers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2eaf014d115" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Network and network nam]]></title>
            <link>https://medium.com/@deepak.linuxredhat/kubernetes-network-and-network-nam-91f16b2d428a?source=rss-25047204f7a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/91f16b2d428a</guid>
            <dc:creator><![CDATA[Deepak kumar]]></dc:creator>
            <pubDate>Tue, 22 Sep 2020 05:23:50 GMT</pubDate>
            <atom:updated>2020-09-22T06:45:53.669Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes Network and network namespaces</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*QWgWsA1MW4FxpsGS_WNDHw.png" /></figure><ul><li>IP link- To see the interfaces on the hosts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oEtm8T_wwAFnre-VPEU5Rg.png" /></figure><ul><li>a router helps to connect to the network.</li></ul><p>route command to check the router.</p><ul><li>Suppose two router present one for external internet and another for internal internet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*91fBQeAo9nIAE6qx1DHMUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uRWvd_GgtfLYQnNLF4EKqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-wqHTzJeLUWA8OKfbqM-Q.png" /><figcaption>Through this one, IP and network will be reachable to another IP.</figcaption></figure><p>Network commands</p><ul><li>IP link: To list and modify the interface commands.</li><li>ip addr : To check the ip address.</li><li>The below command is used to set the IP addresses to interfaces.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*x5R08DpZb4zFVm8YpTauJQ.png" /></figure><ul><li>The below command is used to made entry inside the route command.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*0jXDG1a-DlBxcEUAR30zpQ.png" /></figure><ul><li>Enable ip4 to the host</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*NZvvxQfJw2NCFiY-Faei4w.png" /></figure><ul><li>DNS</li></ul><p>We are making entries inside /etc/hosts file so that we can ping IP&#39;s to each other. Suppose many servers having many entries, may chances of miss any IP so that reason we are maintaining one DNS server to manage all these entries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-ccwyAts5LdBAh92ZE4bA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxVzoJ1REVIWZNvMpJVH6w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91f16b2d428a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Volumes]]></title>
            <link>https://medium.com/@deepak.linuxredhat/kubernetes-volumes-3cc733bf6e1d?source=rss-25047204f7a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cc733bf6e1d</guid>
            <dc:creator><![CDATA[Deepak kumar]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 14:50:45 GMT</pubDate>
            <atom:updated>2020-09-19T15:14:31.106Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/learn/lecture/14296124#overview">https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/learn/lecture/14296124#overview</a></p><p>In case pods delete our data will get delete hence can create data-volume or attached other third party volume to copy pods data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*3LXBsDXeND3ZNmhIEVRWkg.png" /></figure><p>AWS EBS volume syntax:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3i9fZ7iSeicAmIvfbzGeaw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cc733bf6e1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes commands]]></title>
            <link>https://medium.com/@deepak.linuxredhat/kubernetes-commands-50f5e285fdc7?source=rss-25047204f7a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/50f5e285fdc7</guid>
            <dc:creator><![CDATA[Deepak kumar]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 12:58:09 GMT</pubDate>
            <atom:updated>2020-09-19T14:48:41.936Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Storage driver and Volume driver</h3><ol><li>Volume Driver</li></ol><p>Volume drivers not handled by storage drivers it handled by volume drivers plugins.</p><p>Imp for replicaset: Kubernetes replicaset work if our label will be the same and that time in case pods got deleted automatically pods will get created as we set replicaset for this. But it will happen only if all pods label will be the same.</p><p>There are two types of mounting i) Volume mounting ii)Bind mount</p><p>i) Volume mounting is nothing but default location mounting.</p><ul><li>Docker storage volumes command: The default of docker storage is /var/lib/docker. Volume driver will automatically create volume inside /var/lib/docker. Also from run command automatically storage will get create no need separately to create docker volume.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OXv8z7oN6QvZaGDFtakdrw.png" /></figure><p>ii)Bind mount: In bind mount, we can define any path for mounting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*MRMlMgisV8JeYJeWla7JYw.png" /><figcaption>mysql image</figcaption></figure><ul><li>We can also mount docker storage from the below command by defining path:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*DANTEOlOP7uNUz9llRXK2w.png" /></figure><ul><li>Volume drivers also using other cloud driver highlighted below:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WT9newKwEPoLfjYvtxbuQ.png" /></figure><ul><li>AWS Volume driver mounting:</li></ul><p>2)Storage Driver</p><ul><li>Docker uses storage drivers to manage above layers means assigning directories.</li><li>Some of the common storage drivers are:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*-CBiRvrhl1yskDp8LCMDiA.png" /><figcaption>Docker will choose the best storage driver automatically depending on the OS.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50f5e285fdc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>