<?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>chekkizhar &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/chekkizhar/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>Thu, 19 Aug 2021 04:20:32 +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>What is the architecture and components of Kubernetes?</title>
		<link>https://www.bestdevops.com/what-is-the-architecture-and-components-of-kubernetes-3/</link>
		
		<dc:creator><![CDATA[chekkizhar]]></dc:creator>
		<pubDate>Thu, 19 Aug 2021 03:32:35 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=19428</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="741" height="738" src="https://www.bestdevops.com/wp-content/uploads/2021/08/Screenshot_20210818-171151.png" alt="" class="wp-image-19429" srcset="https://www.bestdevops.com/wp-content/uploads/2021/08/Screenshot_20210818-171151.png 741w, https://www.bestdevops.com/wp-content/uploads/2021/08/Screenshot_20210818-171151-300x300.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/08/Screenshot_20210818-171151-150x150.png 150w" sizes="(max-width: 741px) 100vw, 741px" /></figure>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>What is POD? define in  bullets points</title>
		<link>https://www.bestdevops.com/what-is-pod-define-in-bullets-points/</link>
		
		<dc:creator><![CDATA[chekkizhar]]></dc:creator>
		<pubDate>Wed, 18 Aug 2021 11:51:26 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=19404</guid>

					<description><![CDATA[virtual entity. Can not be started. Only can be instantiated K8 manages pods Pods have unique IP in that particular [&#8230;]]]></description>
										<content:encoded><![CDATA[
<ol class="wp-block-list"><li>virtual entity.</li><li>Can not be started. Only can be instantiated</li><li>K8 manages pods</li><li>Pods have unique IP in that particular cluster</li><li>Pods can have multiple container ( not same image) in a single pod</li><li>Pods talk with other pods using pod network which is provided by kubeproxy</li><li>pods are atomic ( either  ready or pending ) </li><li>they are unique in a cluster they are in</li><li>life cycle : pending&#8211;&gt; running&#8211;&gt;success or fail at the exit</li><li>pods are used in master plane also to deploy apiserver,scheduler etc</li></ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Chekkizhar-assignments</title>
		<link>https://www.bestdevops.com/posts-chekkizhar/</link>
		
		<dc:creator><![CDATA[chekkizhar]]></dc:creator>
		<pubDate>Mon, 16 Aug 2021 10:24:32 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=19187</guid>

					<description><![CDATA[Day-3 What is POD? define in bullets points virtual entity. Can not be started. Only can be instantiated K8 manages [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-primary-color has-text-color has-large-font-size wp-block-paragraph"><strong>Day-3</strong></p>



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



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



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



<p class="has-primary-color has-text-color has-medium-font-size wp-block-paragraph">What is POD? define in  bullets points</p>



<ol class="wp-block-list"><li>virtual entity.</li><li>Can not be started. Only can be instantiated</li><li>K8 manages pods</li><li>Pods have unique IP in that particular cluster</li><li>Pods can have multiple container ( not same image) in a single pod</li><li>Pods talk with other pods using pod network which is provided by kubeproxy</li><li>pods are atomic ( either  ready or pending ) </li><li>they are unique in a cluster they are in</li><li>life cycle : pending&#8211;&gt; running&#8211;&gt;success or fail at the exit</li><li>pods are used in master plane also to deploy apiserver,scheduler etc</li><li>pods are accessible only inside cluster</li><li>static pod : first instantiated pods in master plane which are  not managed by K8</li></ol>



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



<p class="has-primary-color has-text-color has-medium-font-size wp-block-paragraph">What is the architecture and components of Kubernetes<strong>?</strong></p>



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



<figure class="wp-block-image size-full"><img decoding="async" width="741" height="738" src="https://www.bestdevops.com/wp-content/uploads/2021/08/Screenshot_20210818-171151-1.png" alt="" class="wp-image-19432" srcset="https://www.bestdevops.com/wp-content/uploads/2021/08/Screenshot_20210818-171151-1.png 741w, https://www.bestdevops.com/wp-content/uploads/2021/08/Screenshot_20210818-171151-1-300x300.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/08/Screenshot_20210818-171151-1-150x150.png 150w" sizes="(max-width: 741px) 100vw, 741px" /></figure>



<p class="has-primary-color has-text-color has-large-font-size wp-block-paragraph"><strong>Day-2</strong></p>



<ol class="wp-block-list"><li><strong>benefit of using CMD</strong> <ol><li>option to run program when docker is attached</li><li>dynamically the default PID-0 pgm can be changed without building image again</li><li>PID-0 pgm can be replaced</li></ol></li><li><strong>benefit of using ENTRYPOINT</strong><ol><li>option to run program when docker is attached</li><li>must to run program , always get run as PID-0. Users can not change</li><li>further program to be run at start, can be added</li></ol></li></ol>



<hr class="wp-block-separator" />



<p class="has-primary-color has-text-color wp-block-paragraph">What happens When i specify 2 CMD in one dockerfile?<br>                        last entry CMD got executed</p>



<p class="wp-block-paragraph">FROM ubuntu<br>MAINTAINER chekkizhar<br>ENV APP_HOME=/tmp<br>RUN apt-get update<br>RUN apt-get install git -y<br>RUN touch /tmp/test1.txt &amp;&amp; touch /tmp/test2.txt &amp;&amp; touch /tmp/test3.txt<br>COPY sampleText.txt /tmp/sampleText.txt<br>CMD echo &#8220;Hello world&#8221;</p>



<p class="wp-block-paragraph">CMD echo &#8220;Hello world again&#8221;</p>



<h2 class="wp-block-heading"></h2>



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



<p class="has-primary-color has-text-color wp-block-paragraph">What happens When i specify 2 ENTRYPOINT in one dockerfile?<br>last entry got executed</p>



<p class="wp-block-paragraph">FROM ubuntu<br>MAINTAINER chekkizhar<br>ENV APP_HOME=/tmp<br>RUN touch /tmp/test1.txt &amp;&amp; touch /tmp/test2.txt &amp;&amp; touch /tmp/test3.txt<br>COPY sampleText.txt /tmp/sampleText.txt<br>ENTRYPOINT [&#8220;/bin/echo&#8221;, &#8220;Hello&#8221;]</p>



<h2 class="has-small-font-size wp-block-heading" id="block-678c81d5-1bcb-4168-ab0b-ea17ad97ba4d">ENTRYPOINT [&#8220;/bin/echo&#8221;, &#8220;Hello again&#8221;]</h2>



<h2 class="wp-block-heading"></h2>



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



<p class="has-primary-color has-text-color wp-block-paragraph">What happens When i specify 1 ENTRYPOINT &amp; 1 CMD in one dockerfile?<br>                               both are executing</p>



<p class="wp-block-paragraph">FROM ubuntu<br>MAINTAINER chekkizhar<br>ENV APP_HOME=/tmp<br>RUN touch /tmp/test1.txt &amp;&amp; touch /tmp/test2.txt &amp;&amp; touch /tmp/test3.txt<br>COPY sampleText.txt /tmp/sampleText.txt<br>CMD echo &#8220;Hello world CMD&#8221;<br>ENTRYPOINT [&#8220;/bin/echo&#8221;, &#8220;Hello entry point&#8221;]</p>



<p class="has-black-color has-text-color wp-block-paragraph">Successfully built b91cd489d83d<br>Successfully tagged chekki-1-cmd-1-entry-point:latest<br>root@sindhu-Lenovo:/home/slacker/dockerExp# docker images<br>REPOSITORY TAG IMAGE ID CREATED SIZE<br>chekki-1-cmd-1-entry-point latest b91cd489d83d 6 seconds ago 72.8MB<br>chekki-2-entry-point latest 9f24f501ae34 3 minutes ago 72.8MB<br>chekki-2-cmd-entry latest d10e00dc7cce 10 minutes ago 204MB<br>chekki-lh-1 latest c44c86a023dc 13 minutes ago 204MB<br>ubuntu latest 1318b700e415 3 weeks ago 72.8MB<br>root@sindhu-Lenovo:/home/slacker/dockerExp# docker run chekki-1-cmd-1-entry-point</p>



<p class="has-primary-color has-text-color wp-block-paragraph"><br>Hello entry point /bin/sh -c echo &#8220;Hello world CMD&#8221;<br>root@sindhu-Lenovo:/home/slacker/dockerExp#</p>



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



<figure class="wp-block-table"><table><tbody><tr><td>S.no</td><td>CMD</td><td>ENTRYPOINT</td></tr><tr><td>1</td><td>run time can change the PID-0 w/o building image</td><td>Not possible. Rebuild of image needed</td></tr><tr><td>2</td><td>replace the PID-0</td><td>append to start apps list</td></tr></tbody></table></figure>



<hr class="wp-block-separator" />



<p class="wp-block-paragraph"><strong>sample 1:</strong><br>Apache running at start<br>Interactive mode not able to stop. Container exitted</p>



<p class="has-small-font-size wp-block-paragraph">                                </p>



<p class="wp-block-paragraph"><strong>Points about docker images</strong></p>



<ol class="wp-block-list"><li>selected s/w pieces put together in layered way to cater the need</li><li>light weight , modular s/w tool</li><li>top layer has priority in case of conflict</li><li>identification is done using UUID which is generated using SHA256</li><li>docker image is same as any linux system, which has added s/w layers</li><li>docker image to docker imagedirect copy not possible.</li><li>through port forwarding applications runing inside docker image can be reached</li></ol>



<p class="has-normal-font-size wp-block-paragraph"><strong>wait</strong>: waitingfor container to finish and get the error code</p>



<p class="wp-block-paragraph">[root@ip-172-31-4-11 ~]# docker wait u1</p>



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



<p class="wp-block-paragraph">sending <strong>stop </strong>from other terminal,</p>



<p class="wp-block-paragraph">sudo su &#8211;<br>Last login: Tue Aug 17 04:59:29 UTC 2021 on pts/0<br>[root@ip-172-31-4-11 ~]# docker stop u1<br>u1</p>



<p class="wp-block-paragraph"><strong>Update:</strong> to dynmically update container params</p>



<p class="wp-block-paragraph"><strong>before</strong>:</p>



<p class="wp-block-paragraph"><strong>docker stats u1</strong><br>CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS<br>cb87a82d7de4 u1 0.00% <strong>1.633MiB / 1.793GiB</strong> 0.09% 656B / 0B 0B / 0B 3<br>CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS<br>cb87a82d7de4 u1 0.00% 1.633MiB / 1.793GiB 0.09% 656B / 0B 0B / 0B 3</p>



<p class="wp-block-paragraph"><strong>After:</strong></p>



<p class="wp-block-paragraph">docker update &#8211;memory=&#8221;1g&#8221; &#8211;memory-swap=&#8221;1g&#8221; u1<br>u1<br>[root@ip-172-31-4-11 ~]# docker stats u1<br>CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS<br>cb87a82d7de4 u1 0.00% <strong>1.633MiB / 1GiB</strong> 0.16% 656B / 0B 0B / 0B 3</p>



<p class="has-primary-color has-text-color has-huge-font-size wp-block-paragraph"><strong>Day 1 &#8211; assignment</strong></p>



<p class="has-large-font-size wp-block-paragraph">Pros &amp; cons of container</p>



<p class="wp-block-paragraph">1.easy &amp; quick to deploy<br>2.ready to use containers are available for most use cases<br>3.modular approach for development<br>4.seperation of concerns</p>



<p class="wp-block-paragraph">5. cost saving</p>



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



<p class="wp-block-paragraph">1.extra step to take backup ??<br>2.no GUI</p>



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



<p class="has-large-font-size wp-block-paragraph"><strong>pause vs unpause</strong></p>



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



<p class="wp-block-paragraph">d<strong>ocker pause 34c06d63dade</strong><br>Error response from daemon: Cannot pause container 34c06d63dade48e38fd01df747fc29566fb2783e2e2eb8060d2ea254857d796d: OCI runtime pause failed: unable to freeze: unknown</p>



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



<p class="wp-block-paragraph">pause might keep the container from releasing full resources. Just put the process inside them to pause</p>



<p class="wp-block-paragraph">Unpause &#8211; will resume the processes</p>



<p class="has-large-font-size wp-block-paragraph"><strong>Stop vs kill</strong></p>



<p class="wp-block-paragraph"><strong>command:</strong></p>



<p class="wp-block-paragraph">d<strong>ocker ps -a</strong><br>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAM ES<br>34c06d63dade jenkins/jenkins &#8220;/sbin/tini &#8212; /usr/…&#8221; 18 minutes ago Exited (143) 7 seconds ago ped antic_pare<br>896c9e81c886 hello-world &#8220;/hello&#8221; 40 minutes ago Exited (0) 22 minutes ago rev erent_cray<br><strong>[root@ip-172-31-4-11 ~]# docker start 34c06d63dade</strong><br>34c06d63dade<br><strong>[root@ip-172-31-4-11 ~]# docker ps -a</strong><br>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES<br>34c06d63dade jenkins/jenkins &#8220;/sbin/tini &#8212; /usr/…&#8221; 22 minutes ago Up 3 seconds 8080/tcp, 50000/tcp pedantic_pare<br>896c9e81c886 hello-world &#8220;/hello&#8221; 44 minutes ago Exited (0) 26 minutes ago reverent_cray<br>[<strong>root@ip-172-31-4-11 ~]# docker kill 34c06d63dade</strong><br>34c06d63dade<br>[r<strong>oot@ip-172-31-4-11 ~]# docker ps -a</strong><br>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES<br>34c06d63dade jenkins/jenkins &#8220;/sbin/tini &#8212; /usr/…&#8221; 22 minutes ago Exited (137) 2 seconds ago pedantic_pare<br>896c9e81c886 hello-world &#8220;/hello&#8221; 44 minutes ago Exited (0) 27 minutes ago reverent_cray</p>



<p class="wp-block-paragraph">docker stop 34c06d63dade<br>34c06d63dade<br><strong>[root@ip-172-31-4-11 ~]# docker kill 34c06d63dade</strong><br>Error response from daemon: Cannot kill container: 34c06d63dade: Container 34c06d63dade48e38fd01df747fc29566fb2783e2e2eb8060d2ea254857d796d is not running</p>



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



<p class="wp-block-paragraph">stop can be given to already stopped container. kill can be sent only when container is running</p>



<p class="wp-block-paragraph">kill and stop recorded 2 different exit codes.</p>



<p class="wp-block-paragraph">inside the application we can catch the signal delivered to the processes and handle</p>



<p class="wp-block-paragraph">typically stop is proper shutdown and kill is force shutdown</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
