<?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>Deep &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/deep/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, 22 Jul 2021 07:14:26 +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>K8- architecture-Deep</title>
		<link>https://www.bestdevops.com/k8-architecture-deep/</link>
		
		<dc:creator><![CDATA[Deep]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 07:10:25 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18076</guid>

					<description><![CDATA[10 feature of k8 rollout container orch scaling self healing load balancing custom controller custom scheduling able to decide itself [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>10 feature of k8</strong></p>



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



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



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



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



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



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



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



<p class="wp-block-paragraph">able to decide itself on nodes to go for pod</p>



<p class="wp-block-paragraph">infra is loosely coupled</p>



<p class="wp-block-paragraph">less human intervention</p>



<p class="wp-block-paragraph">H<strong>ow k8 work</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/07/Kubernetes-architecture-2.png" alt="" /></figure>



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



<p class="wp-block-paragraph"><strong>Component of master</strong></p>



<p class="wp-block-paragraph">API Server:helps to talk to outside world also node talk to API server</p>



<p class="wp-block-paragraph">Cluster store -&gt; storing info about cluster and pass that API server</p>



<p class="wp-block-paragraph">Controller manager manager -&gt; status of cluster is informed by controller manager to api-server , act as a monitoring node</p>



<p class="wp-block-paragraph">Scheduler -&gt; creating pod , scheduler decide which node to go</p>



<p class="wp-block-paragraph"><strong>Component of worker</strong></p>



<p class="wp-block-paragraph">Kubelet- talk to api server and watches it, responsible for pod lifecycle</p>



<p class="wp-block-paragraph">Container engine – docker</p>



<p class="wp-block-paragraph">Kube proxy – assign IP to POD , load balancer across pod</p>



<p class="wp-block-paragraph"><strong>Component of workstation</strong></p>



<p class="wp-block-paragraph">Kubectl : &#8211; it’s a cli which interact with api server of master</p>



<p class="wp-block-paragraph">JSON/YAML</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Deep Docker Lab</title>
		<link>https://www.bestdevops.com/step-2-pre-test-using-lms/</link>
		
		<dc:creator><![CDATA[Deep]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 07:46:33 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17967</guid>

					<description><![CDATA[Step 1 – Register a site to POST Assigment and Share with Trainer and For Self Notes Step 2 – [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Step 1 – Register a site to POST Assigment and Share with Trainer and For Self Notes</h2>


<pre class="wp-block-code"><span><code class="hljs language-php">- How to register? - https:<span class="hljs-comment">//www.bestdevops.com/wp-login.php?action=register</span>
<span class="hljs-comment"># Check Inbox SPAM box for Activation Email.</span>
- How to login? - https:<span class="hljs-comment">//www.bestdevops.com/wp-login.php</span>
- How to write post? - https:<span class="hljs-comment">//www.bestdevops.com/wp-admin/post-new.php</span>
- How to check your Post? - https:<span class="hljs-comment">//www.bestdevops.com</span>
</code></span></pre>


<h2 class="wp-block-heading">Step 2 – Pre Test using LMS</h2>



<ul class="wp-block-list"><li>Login to https://www.devopsschool.com/lms/ using any gmail account</li><li>Try this quiz – https://www.devopsschool.com/lms/mod/quiz/view.php?id=250</li><li>Send a results to shiva@palmeto.co.in</li></ul>



<h2 class="wp-block-heading">Step 3 – Install Docker Engine in Centos#1 Vm.</h2>



<figure class="wp-block-embed"><div class="wp-block-embed__wrapper">
https://devopsschool.com/tutorial/docker/install-config/docker-install-commuityedition-centos-rhel.html
</div></figure>



<h2 class="wp-block-heading">Step 4 – Assignment#1</h2>



<ul class="wp-block-list"><li>Create a Ubuntu container<br>docker run -it ubuntu<br>It will fetch the ubuntu docker image from docker hub and you will be connected to container in detached mode.</li><li>Install Update, git &amp; apache2<br>Once your inside of your Ubintu docker container, Run<br>apt-get update –&gt; It will install the latest version of packages matches the specified group of packages.<br>apt-get install git –&gt; It will install the Git package and all it’s dependency packages</li></ul>



<p class="wp-block-paragraph">root@8196a7b58778:/# git –version<br>git version 2.25.1<br>root@8196a7b58778:/#</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apt-get install apache2 –&gt; It will install the apache2 package and all it’s dependency</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;packages</p>



<p class="wp-block-paragraph">root@8196a7b58778:/# apache2 -v<br>Server version: Apache/2.4.41 (Ubuntu)<br>Server built: 2021-07-05T07:16:56<br>root@8196a7b58778:/#</p>



<ul class="wp-block-list"><li>Run a git command in container from outside</li></ul>



<p class="wp-block-paragraph">docker exec &lt;containerId&gt; git –version<br></p>



<p class="wp-block-paragraph">[root@localhost ~]# docker ps -a<br>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES<br>73a91b4435f6 httpd “httpd-foreground” 19 minutes ago Up 19 minutes 0.0.0.0:8081-&gt;80/tcp festive_mahavira<br>8196a7b58778 ubuntu “bash” 48 minutes ago Exited (130) 22 seconds ago hungry_goldwasser<br>d1b6f4921a3e hello-world “/hello” About an hour ago Exited (0) About an hour ago epic_kirch<br>[root@localhost ~]# docker exec 8196a7b58778 git –version<br>Error response from daemon: Container 8196a7b58778f172fabd431d26a9094b022b3d9019099537b682b4586168651b is not running<br>[root@localhost ~]# docker start 8196a7b58778<br>8196a7b58778<br>[root@localhost ~]# docker exec 8196a7b58778 git –version<br>git version 2.25.1<br>[root@localhost ~]#</p>



<h2 class="wp-block-heading">Step 5 – Assignment#2</h2>



<ul class="wp-block-list"><li>Create a httpd container exposed at 80 port<br><br>docker run -d -p 80:80 httpd</li><li>Access (curl) container from node</li></ul>



<p class="wp-block-paragraph">[root@localhost ~]# curl http://192.168.33.10:80</p>



<h1 class="wp-block-heading">It wors!</h1>



<p class="wp-block-paragraph">[root@localhost ~]#</p>



<h2 class="wp-block-heading">Step 6 – Assignment#3</h2>


<pre class="wp-block-code"><span><code class="hljs language-php">Find out answer <span class="hljs-keyword">for</span> following questions
- Where is the LOCAL Registry <span class="hljs-keyword">and</span> How <span class="hljs-keyword">do</span> i find out???
When you run the docker info command it will provide all the info about your docker. In that info, You can find the root dir of docker where it<span class="hljs-string">'s being installed in your base/host machine some thing like below, 
&#91;root@localhost ~]# cd /var/lib/docker
&#91;root@localhost docker]# ls
containers  image  network  overlay2  plugins  swarm  tmp  trust  volumes
&#91;root@localhost docker]# cd image
&#91;root@localhost image]# ls
overlay2
&#91;root@localhost image]# cd overlay2/
&#91;root@localhost overlay2]# ls
distribution  imagedb  layerdb  repositories.json
&#91;root@localhost overlay2]# cd imagedb/
&#91;root@localhost imagedb]# ls
content  metadata
&#91;root@localhost imagedb]# cd content/
&#91;root@localhost content]# ls
sha256
&#91;root@localhost content]# cd sha256/
&#91;root@localhost sha256]# ls
bd29370f84eac6a9fa5373f8ed702f66820e784e5f680b62670af9f851017c96  c29284518f497b8c5f49933e74e43ca5221e69c8251e780427f7d12f716625ff  d1165f2212346b2bab48cb01c1e39ee8ad1be46b87873d9ca7a4e434980a7726
&#91;root@localhost sha256]# ls -lrt
total 20
-rw-------. 1 root root 1470 Jul 21 00:41 d1165f2212346b2bab48cb01c1e39ee8ad1be46b87873d9ca7a4e434980a7726
-rw-------. 1 root root 1462 Jul 21 00:43 c29284518f497b8c5f49933e74e43ca5221e69c8251e780427f7d12f716625ff
-rw-------. 1 root root 8701 Jul 21 01:33 bd29370f84eac6a9fa5373f8ed702f66820e784e5f680b62670af9f851017c96
&#91;root@localhost sha256]# pwd
/var/lib/docker/image/overlay2/imagedb/content/sha256
&#91;root@localhost sha256]#

- &#91;OFFLINE]Git is NOT versioning a file. So what?
Git is a distributed version control system system that records different states file/files/set of files.
It lets users to access, compare, update and distribute any of the recorded version(s) at any time.

- What is diff between docker pause and docker unpuase?

docker pause - It suspends all the processes in specified containers. It pauses(i.e sends SIGSTOP) all     
               the processes in a container and also it would stall keep memory portion while container
               is pause.  This memory is used while container is resumed.
docker unpause - When docker unpassed, SIGCONT is passed to container to restore the container process.
NOTE: You couldn'</span>t able to perform any action <span class="hljs-keyword">while</span> container is paused.

- What is significant of docker stop <span class="hljs-keyword">and</span> docker kill?
docker stop - It stops the container gracefully(In <span class="hljs-number">10</span>sec) like how shutting down your laptop instead of
              forcefully shutting down. It will send SIGTERM(terminate) to the process <span class="hljs-keyword">and</span> docker will
              have <span class="hljs-number">10</span> sec to cleanup like files <span class="hljs-keyword">or</span> other stuff.
docker kill - It will kill a container(sends SIGKILL). The main process inside the container will be sent
              SIGKILL to kill a container forcefully. 

- Create an image with base - centos <span class="hljs-keyword">and</span> git must be installed in it.

We can <span class="hljs-keyword">do</span> it using dockerfile in automation process <span class="hljs-keyword">and</span> reusable also.Below is the sample docker file
which will have centos an base image along with Git is installed in it,

FROM centos:latest

MAINTAINER Kishore Katreddy

RUN yum -y update
RUN yum -y install git
CMD &#91;<span class="hljs-string">"google.com"</span>]

Once I have dcoekr file handy. I ran below command to build an image which has base image of centos <span class="hljs-keyword">and</span> git is being installed,

 -&gt; docker build -t centos:<span class="hljs-number">1.0</span><span class="hljs-number">.0</span> .(Location of where you have dockerfile)
 -&gt; docker images - You can see the image which we built
     &#91;root@localhost kishoreLab]<span class="hljs-comment"># docker images</span>
     REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
     centos                  <span class="hljs-number">1.0</span><span class="hljs-number">.0</span>               <span class="hljs-number">56</span>f868464603        <span class="hljs-number">2</span> minutes ago       <span class="hljs-number">641</span> MB

</code></span></pre>


<h2 class="wp-block-heading">Step 7 – SHARE ASSIGNMENT WITH TRAINER</h2>



<ul class="wp-block-list"><li>Create a POST and Send a URL of post in Zoom Chat.</li><li>Of Assignment#1 – Assignment#2 – Assignment#3 in one post</li><li>Post title can be of your choise</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title></title>
		<link>https://www.bestdevops.com/17961-2/</link>
		
		<dc:creator><![CDATA[Deep]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 07:43:50 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17961</guid>

					<description><![CDATA[Docker lab -Deep Step 1 – Register a site to POST Assigment and Share with Trainer and For Self Notes [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Docker lab -Deep</p>



<p class="wp-block-paragraph">Step 1 – Register a site to POST Assigment and Share with Trainer and For Self Notes</p>



<p class="wp-block-paragraph">&#8211; How to register? &#8211; https://www.bestdevops.com/wp-login.php?action=register # Check Inbox SPAM box for Activation Email. &#8211; How to login? &#8211; https://www.bestdevops.com/wp-login.php &#8211; How to write post? &#8211; https://www.bestdevops.com/wp-admin/post-new.php &#8211; How to check your Post? &#8211; https://www.bestdevops.com</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
