<?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>shyam &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/shyam/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, 01 Sep 2021 07:17:41 +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>Assignment 1 Day 3</title>
		<link>https://www.bestdevops.com/assignment-1-day-3/</link>
		
		<dc:creator><![CDATA[shyam]]></dc:creator>
		<pubDate>Wed, 01 Sep 2021 07:17:39 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=20621</guid>

					<description><![CDATA[Write down 10 features of Kubernetes with image Helps manage large clusters Load balancing Service discovery Self monitoring Security Storage [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Write down 10 features of Kubernetes with image</strong></p>



<ul class="wp-block-list"><li>Helps manage large clusters</li><li>Load balancing</li><li>Service discovery</li><li>Self monitoring</li><li>Security</li><li>Storage services</li><li>Automated rollbacks</li><li>Optimum resource utilization</li><li>Auto scalable</li><li>Predictable<br></li></ul>



<p class="wp-block-paragraph"><strong>What are the components of Kubernetes master and explain each component&#8217;s function?</strong><br>API Server<br>-All requests come to API server. REST based.<br>etcd<br>-storage for cluster configuration and state<br>Controller<br>-keeps tracks of the pods and reports to API server<br>Scheduler<br>-assigns a pod to a node based on resource requirements<br></p>



<p class="wp-block-paragraph"><strong>What are the components of Kubernetes worker and explain each component&#8217;s function?</strong></p>



<p class="wp-block-paragraph">kubelet<br>-gets requests from scheduler and manages pods based on that.<br>kube-proxy<br>-handles all networking in a node, managing pod IPs.<br>Container runtime<br>-responsible for running containers<br><br></p>



<p class="wp-block-paragraph"><strong>What is Pod in kubernetes. Exaplin in 15 points with image as an example</strong><br>A Pod is the smallest deployable unit<br>Contains one or more containers<br>Each Pod has a unique IP<br>All containers running in a Pod share the same IP<br>Pods are instantiated<br>A Pod is not a process, but an environment for running containers</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Assignment 2 Day 2</title>
		<link>https://www.bestdevops.com/assignment-2-day-2/</link>
		
		<dc:creator><![CDATA[shyam]]></dc:creator>
		<pubDate>Wed, 01 Sep 2021 03:23:34 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=20405</guid>

					<description><![CDATA[List out all INSTRUCTION statement of dockerfile and give one line explanationFROMMAINTAINERRUNCMDLABELEXPOSEENVADDCOPYENTRYPOINTVOLUMEUSERWORKDIRARGONBUILDSTOPSIGNALHEALTHCHECKSHELL Q2. Build all these 5 images and run [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">List out all INSTRUCTION statement of dockerfile and give one line explanation<br>FROM<br>MAINTAINER<br>RUN<br>CMD<br>LABEL<br>EXPOSE<br>ENV<br>ADD<br>COPY<br>ENTRYPOINT<br>VOLUME<br>USER<br>WORKDIR<br>ARG<br>ONBUILD<br>STOPSIGNAL<br>HEALTHCHECK<br>SHELL<br></p>



<p class="wp-block-paragraph">Q2. Build all these 5 images and run container and observe the use cases of it.<br>https://devopsschool.com/tutorial/docker/dockerfile/dockerfile-example-sample-lab.html<br><br></p>



<p class="wp-block-paragraph">Q3. Write a example dockerfile with 2 CMD, 2 ENTRYPOINT and 1 CMD/1ENTRYPOINT and write down a behavior of it.<br>if  ENTRYPOINT  is not specified, default is /bin/sh, what is specified in CMD is passed as args.<br>2 CMD -&gt; last one is executed<br><em>CMD echo &#8220;Hello world1&#8221;<br>CMD echo &#8220;Hello world2&#8221;</em><br>Output:  <strong><em>Hello world2</em> </strong><br></p>



<p class="wp-block-paragraph">2  ENTRYPOINT  -&gt; last one is executed<br><em>ENTRYPOINT [&#8220;/bin/echo&#8221;, &#8220;Hello1&#8221;]<br>ENTRYPOINT [&#8220;/bin/echo&#8221;, &#8220;Hello2&#8221;]<br></em>Output: <strong>Hello2</strong></p>



<p class="wp-block-paragraph"><br>1 CMD/  1 ENTRYPOINT <br><em>CMD echo &#8220;Hello world&#8221;<br>ENTRYPOINT [&#8220;/bin/echo&#8221;, &#8220;Hello2&#8221;]</em><br>Output: <strong>Hello2 /bin/sh -c echo &#8220;Hello world&#8221;</strong></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"><strong>List out number of storage/volume drivers supported by docker?</strong><br>Volume driver allows  to abstract the underlying storage system. The storage can be local, network or cloud.<br>Volume driver plugins example:<br><em>Azure File Storage Plugin<br>VMware vSphere Storage Plugin<br>Netshare plugin<br>OpenStorage plugin</em></p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Assignment 1 Day 2</title>
		<link>https://www.bestdevops.com/assignment-1-day-2/</link>
		
		<dc:creator><![CDATA[shyam]]></dc:creator>
		<pubDate>Tue, 31 Aug 2021 05:44:35 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=20212</guid>

					<description><![CDATA[What is Storage Driver and types of Storage Driver? Explain with Images.A docker image can have different layers. When a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>What is Storage Driver and types of Storage Driver? Explain with Images.</strong><br>A docker image can have different layers. When a container is created out of this image it will also have a writable layer on top of all the read only layers created out of the image. A storage driver manages all these layers making it appear as a single file system to the user. Multiple implementations of storage driver are available.<br></p>



<p class="wp-block-paragraph"><strong>What is Docker Images and Explain 10 bullet lines?</strong><br>A docker image contains all the dependencies needed to run an application<br>It is created as layers of file system on top of each other<br>Layering help update easy and efficient<br>When conflict happens, topmost layer gets precedence.<br>Any no.of containers can be created out of a single image<br>`</p>



<p class="wp-block-paragraph"><strong>Create one Image which have base as centos and with git &#8211; ntp &#8211; httpd</strong></p>



<p class="wp-block-paragraph">used chrony instead of ntp<br>root@ip-172-31-28-155:/home/ubuntu# docker run -itd centos<br>793a59b5cbbebb3af8d373c20b28161cfca60e050a282a455b4349bdadb45315</p>



<p class="wp-block-paragraph">docker attach 793a59b5cbbe<br>yum install git<br>yum install chrony<br>yum install httpd<br>docker commit -m&#8221;cent-git-chrony-httpd&#8221; 793a59b5cbbe cent-git-chrony-http</p>



<p class="wp-block-paragraph">cent-git-chrony-http latest 62682df1872f 10 minutes ago 372MB<br></p>



<p class="wp-block-paragraph"><strong>Create one Image which have base as ubuntu and with git &#8211; ntp &#8211; apache2.</strong><br>root@ip-172-31-28-155:/home/ubuntu# docker run -itd ubuntu<br>254f2f37b7a7f7656d9595f2277c0ecefcf25ea9fcf3b1440055ec45b07a19fd</p>



<p class="wp-block-paragraph">docker attach 254f2f37b7a7<br>apt-get update<br>apt-get install git<br>apt-get install ntp<br>apt-get install apache2<br>docker commit -m&#8221;ubu-git-ntp-apa&#8221; 254f2f37b7a7 ubu-git-ntp-apa</p>



<p class="wp-block-paragraph">ubu-git-ntp-apa latest 43175557dca4 About a minute ago 259MB</p>



<p class="wp-block-paragraph">root@ip-172-31-28-155:/home/ubuntu# docker run -itd ubu-git-ntp-apa<br>4c7c73feedd35567edef71c35d7ad7ce42d843a0d92aa5045364607d75614f95</p>



<p class="wp-block-paragraph">root@ip-172-31-28-155:/home/ubuntu# docker exec 4c7c73feedd3 git<br>usage: git [&#8211;version] [&#8211;help] [-C ] [-c =]<br></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Assignment 2 for Docker Day 1</title>
		<link>https://www.bestdevops.com/assignment-2-for-docker-day-1/</link>
		
		<dc:creator><![CDATA[shyam]]></dc:creator>
		<pubDate>Tue, 31 Aug 2021 03:30:11 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=20194</guid>

					<description><![CDATA[Q1. &#8211; What is the use of &#8220;docker update&#8221; commands? with example and image &#8220;docker update&#8221; is used to limit [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Q1. &#8211; What is the use of &#8220;docker update&#8221; commands? with example and image</p>



<ul class="wp-block-list"><li>&#8220;docker update&#8221; is used to limit the usage of resources a container can use.</li><li>CPU usage can be limited by CPU time, no.of CPUs used, or which CPUs are used.</li><li>Memory usage can be limited for Main Memory as well as Swap</li><li>Disk IO can be limited by specifying a relative weight.</li><li>No.of PIDs container can allocate can be limited.</li><li>This command can also be used to specify the restart policy when container exits.</li></ul>



<p class="wp-block-paragraph">Q2. &#8211; What is the use of &#8220;docker wait&#8221; commands? with example and image<br>&#8220;docker wait&#8221; waits till the container exits and then prints its exit code.<br>The exit code indicates what was returned by the parent process (PID 1) in the container.<br>In success case, exit code is 0.</p>



<p class="wp-block-paragraph">Q3. &#8211; List of Top 5 docker images from hub.docker.com and create a running container of it and try to use it<br>nginx, alpine, python, httpd, rabbitmq</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Assignment for Docker Day 1</title>
		<link>https://www.bestdevops.com/assignment-for-docker-day-1-7/</link>
		
		<dc:creator><![CDATA[shyam]]></dc:creator>
		<pubDate>Mon, 30 Aug 2021 07:26:36 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=19893</guid>

					<description><![CDATA[Q1. Explain What is Docker Container with image?A docker image contains all the dependencies needed to make an application runA [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Q1. Explain What is Docker Container with image?<br>A docker image contains all the dependencies needed to make an application run<br>A docker image is run in a docker container. Any no.of containers can run the same image.</p>



<p class="wp-block-paragraph">Q2. What is the differenece between docker stop and docker kill?<br>Docker stop is gracefully stopping a container, first SIGTEM is sent for cleanup and then SIGKILL<br>Docker kill is forcefully terminating a container directly sending SIGKILL</p>



<p class="wp-block-paragraph">Q3. What is the difference between docker pause and docker unpause?<br>Docker pause pauses the execution of container, suspends all processes<br>Docker unpuase resumes the execution of all processes</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
