<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Prateek &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/prateek/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Wed, 18 Aug 2021 11:32:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>PODs in Kubernetes</title>
		<link>https://www.bestdevops.com/pods-in-kubernetes-2/</link>
		
		<dc:creator><![CDATA[Prateek]]></dc:creator>
		<pubDate>Wed, 18 Aug 2021 11:32:07 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=19392</guid>

					<description><![CDATA[Atomic unit of work in Kubernetes They are the application/service Can contain multiple containers Pods cannot be created/destroyed, only instantiated [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Atomic unit of work in Kubernetes</p>



<p class="wp-block-paragraph">They are the application/service</p>



<p class="wp-block-paragraph">Can contain multiple containers</p>



<p class="wp-block-paragraph">Pods cannot be created/destroyed, only instantiated</p>



<p class="wp-block-paragraph">Pod lifecycle -&gt; pending, ready, failed/succeeded</p>



<p class="wp-block-paragraph">Pods are instantiated by Kubelet in the worker nodes</p>



<p class="wp-block-paragraph">Pods can be scaled up/down</p>



<p class="wp-block-paragraph">Pods have unique IPs</p>



<p class="wp-block-paragraph">Containers within a Pod share namespace resources like network, mount, IPC, etc</p>



<p class="wp-block-paragraph">Therefore containers within a Pod can share files and communicate with each other via localhost</p>



<p class="wp-block-paragraph">Pods communicate with each other (with other pods) using the Pod network</p>



<p class="wp-block-paragraph">There is a load balancer which routes traffic coming from outside to appropriate pod (with the help of kubeproxy)</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Kubernetes architecture</title>
		<link>https://www.bestdevops.com/kubernetes-architecture/</link>
		
		<dc:creator><![CDATA[Prateek]]></dc:creator>
		<pubDate>Wed, 18 Aug 2021 11:24:08 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=19380</guid>

					<description><![CDATA[Kuberenetes consists of a master, worker nodes and workstation (pc that developer uses to send commands to control plane/master) Master [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/800/1*HHRp0HENvfAu2hXT8Gto9g.png" alt="Simplified Kubernetes Architecture | by Mohan Pawar | Medium" /></figure>



<p class="wp-block-paragraph">Kuberenetes consists of a master, worker nodes and workstation (pc that developer uses to send commands to control plane/master)</p>



<p class="wp-block-paragraph">Master has the following components:</p>



<ul class="wp-block-list"><li>API Server (Communicates with every other component in the control plane aka master)</li><li>Etcd (Cluster store -&gt; stores information about the cluster (The desired state))</li><li>Controller Manager (Probes all the pods in the cluster to check for their health)</li><li>Scheduler (Schedules tasks that are to be executed by the worker nodes)</li></ul>



<p class="wp-block-paragraph">Worker has the following components:</p>



<ul class="wp-block-list"><li>Kubelet (It&#8217;s a kuberenetes agent that instatiates pods in a node, works with API server)</li><li>Container Engine (Docker/rkt)</li><li>Kube Proxy (Works with API server to create entries in IP table -&gt; unique IP for every pod)</li></ul>



<figure class="wp-block-image"><img decoding="async" src="https://storage.googleapis.com/static.ianlewis.org/prod/img/755/kubernetes-arch.png" alt="How kubeadm Initializes Your Kubernetes Master - Ian Lewis" /></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Docker Image Definition</title>
		<link>https://www.bestdevops.com/docker-image-definition/</link>
		
		<dc:creator><![CDATA[Prateek]]></dc:creator>
		<pubDate>Tue, 17 Aug 2021 07:55:47 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=19293</guid>

					<description><![CDATA[It&#8217;s a collection of filesystems, namely =&#62; rootfs, user fs, application fs These filesystems are represented as layers. Therefore each [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">It&#8217;s a collection of filesystems, namely =&gt; rootfs, user fs, application fs</p>



<p class="wp-block-paragraph">These filesystems are represented as layers. Therefore each docker image has multiple filesystems, that is, each docker image has multiple layers</p>



<p class="wp-block-paragraph">Each layer is identified by a uuid, which is sha256 encoded.</p>



<p class="wp-block-paragraph">The lowest layer is the root filesystem. That is, it contains files under root directory</p>



<p class="wp-block-paragraph">The upper most layer is the only layer which is writeable, rest all layers are readonly</p>



<p class="wp-block-paragraph">Whenever you create any new files, the files are reflected in uppermost layer of the image</p>



<p class="wp-block-paragraph">While mounting an image to a container, all the layers in the image are merged to create a single merged layer</p>



<p class="wp-block-paragraph">The preferred storage driver for linux is overlay2. So all the layers are visible in the following location: /var/lib/docker/overlay2</p>



<p class="wp-block-paragraph">You can see the layers your docker image has by looking in the &#8220;RootFS&#8221; header when you do &#8220;docker inspect imagename&#8221;</p>



<p class="wp-block-paragraph">The files that you add, which are added to the uppermost layer get added to two locations /var/lib/docker/&lt;layer-uuid&gt;/merged and /var/lib/docker/&lt;layer-uuid&gt;/diff</p>



<p class="wp-block-paragraph">It is possible to create a container by selectively removing the top few layers of an image. This can be done to undo the changes that have been made in a layer.</p>



<p class="wp-block-paragraph">docker inspect &lt;image-name&gt;</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
