<?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>nagendra &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/nagendra/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 16:15:53 +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>Kubernetes Introduction-Nagendra</title>
		<link>https://www.bestdevops.com/kubernetes-introduction-nagendra/</link>
		
		<dc:creator><![CDATA[nagendra]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 07:03:05 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18088</guid>

					<description><![CDATA[Features of containers &#160;collection of containers Replication Controller Storage Management Resource Monitoring Health Checking Networking Helm Charts POD Distrubution Cluster [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Features of containers</h2>



<p class="wp-block-paragraph">&nbsp;collection of containers</p>



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



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



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



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



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



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



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



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



<h2 class="wp-block-heading">How kubernates works?</h2>



<p class="wp-block-paragraph">Kubernetes supports several base container engines, and Docker is just one of them. The two technologies work great together, since Docker containers are an efficient way to distribute packaged applications, and Kubernetes is designed to coordinate and schedule those applications.</p>



<h2 class="wp-block-heading">What are the components in master?</h2>



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



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



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



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



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



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



<h2 class="wp-block-heading">What are the component of workers?</h2>



<p class="wp-block-paragraph">A Kubernetes cluster consists of a set of worker machines, called&nbsp;<a href="https://kubernetes.io/docs/concepts/architecture/nodes/" target="_blank" rel="noreferrer noopener">nodes</a>, that run containerized applications. Every cluster has at least one worker node</p>



<ul class="wp-block-list"><li>kubelet</li><li>kube-proxy</li><li>and PODS. Each POD can have multiple containers as required</li></ul>



<h2 class="wp-block-heading">Components of Workstation</h2>



<ul class="wp-block-list"><li>kubectl</li><li>creation of json/yaml file</li></ul>



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



<p class="wp-block-paragraph"><strong>Pods</strong>&nbsp;are the smallest, most basic deployable objects in Kubernetes. A Pod represents a single instance of a running process in your cluster.</p>



<p class="wp-block-paragraph">Pods contain one or more <em>containers</em>, such as Docker containers. When a Pod runs multiple containers, the containers are managed as a single entity and share the Pod&#8217;s resources. Generally, running multiple containers in a single Pod is an advanced use case.</p>



<ul class="wp-block-list"><li>Pods represent the processes running on a cluster. By limiting pods to a single process, Kubernetes can report on the health of each process running in the cluster</li><li>a unique IP address (which allows them to communicate with each other)</li><li>persistent storage volumes</li><li>configuration information that determine how a container should run</li><li>Pods are created by workload resources called controllers, which manage rollout, replication, and health of pods in the cluster. For example, if a node in the cluster fails, a controller detects that the pods on that node are unresponsive and creates replacement pod(s) on other nodes</li><li>Although most pods contain a single container, many will have a few containers that work closely together to execute a desired function.</li><li>Pods are almost always created by controllers which then can automatically manage the pod lifecycle, including replacing failed pods, replicating pods when necessary, and evicting the pod from cluster nodes when they are complete or no longer needed</li></ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Nagendra- Docker LAB</title>
		<link>https://www.bestdevops.com/nagendra-docker-lab/</link>
		
		<dc:creator><![CDATA[nagendra]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 06:49:20 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17885</guid>

					<description><![CDATA[Install Docker Engine in Centos#1 Vm. [root@localhost ~]# history1 ifconfig2 sudo yum install -y yum-utils device-mapper-persistent-data lvm3 udo yum-config-manager &#8211;add-repo [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Install Docker Engine in Centos#1 Vm.</strong></p>



<p class="wp-block-paragraph">[root@localhost ~]# history<br>1 ifconfig<br>2 sudo yum install -y yum-utils device-mapper-persistent-data lvm<br>3 udo yum-config-manager &#8211;add-repo https://download.docker.com/linux/centos/docker-ce.repo<br>4 sudo yum-config-manager &#8211;add-repo https://download.docker.com/linux/centos/docker-ce.repo<br>5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.r<br>6 sudo yum-config-manager &#8211;enable rhui-REGION-rhel-server-extras<br>7 sudo yum install -y docker-ce<br>8 sudo yum install docker-ce<br>9 docker -v<br>10 &#8211; Enable Docker<br>11 Start Docker<br>12 Start Docker<br>13 start docker<br>14 sudo systemctl enable docker<br>15 sudo systemctl start docker<br>16 history</p>



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



<p class="wp-block-paragraph">root@720751c45f2c:/# ps -eaf | grep dockerd<br>root 3672 1 0 13:38 pts/0 00:00:00 grep &#8211;color=auto dockerd</p>



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



<p class="wp-block-paragraph">[root@localhost ~]# ps -eaf | grep containerd<br>root 3110 3032 0 02:41 pts/1 00:00:00 grep &#8211;color=auto containerd<br>root 30400 1 0 01:36 ? 00:00:00 /usr/bin/containerd<br>root 30409 1 0 01:36 ? 00:00:04 /usr/bin/dockerd -H fd:// &#8211;containerd=/run/containerd/containerd.sock</p>



<p class="wp-block-paragraph">Assignment#1</p>



<p class="wp-block-paragraph">[root@localhost ~]# docker ps -a<br>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES<br>720751c45f2c ubuntu &#8220;bash&#8221; 46 minutes ago Exited (1) 4 minutes ago dazzling_aryabhata<br>684695c21d76 ubuntu &#8220;bash&#8221; About an hour ago Exited (0) About an hour ago happy_kepler</p>



<p class="wp-block-paragraph">[root@localhost ~]# docker run -itd ubuntu<br>cb56e4630dfba75663fd09174bf1d2d555b0258a6197bdf50c7ae2173d2d5ff4<br>[root@localhost ~]# docker ps -a<br>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES<br>cb56e4630dfb ubuntu &#8220;bash&#8221; 15 seconds ago Up 14 seconds eloquent_hopper<br>720751c45f2c ubuntu &#8220;bash&#8221; 46 minutes ago Exited (1) 5 minutes ago dazzling_aryabhata<br>684695c21d76 ubuntu &#8220;bash&#8221; About an hour ago Exited (0) About an hour ago happy_keple</p>



<p class="wp-block-paragraph">[root@localhost ~]# ^C<br>[root@localhost ~]# docker pull httpd<br>Using default tag: latest<br>latest: Pulling from library/httpd<br>b4d181a07f80: Pull complete<br>4b72f5187e6e: Pull complete<br>12b2c44d04b2: Pull complete<br>35c238b46d30: Pull complete</p>



<p class="wp-block-paragraph">[root@localhost ~]# docker images|grep httpd<br>httpd latest bd29370f84ea 12 days ago 138MB</p>



<p class="wp-block-paragraph">[root@localhost ~]# docker attach cb56e4630dfb<br>root@cb56e4630dfb:/#</p>



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



<p class="wp-block-paragraph">git version 2.25.1</p>



<h2 class="wp-block-heading"><strong>Create an image with base – centos and git must be inst</strong></h2>


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@localhost ~]<span class="hljs-comment"># cat dockerfile</span>
&#91;root@localhost ~]<span class="hljs-comment"># vi dockerfile</span>
&#91;root@localhost ~]<span class="hljs-comment"># cat dockerfile</span>

M ubuntu
MAINTAINER Nagendra
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y install tzdata
RUN apt-get update &amp;&amp; apt-get install git -y &amp;&amp; apt-get install -yq apache2
CMD /usr/sbin/apache2ctl -D FOREGROUND

&#91;root@localhost ~]<span class="hljs-comment"># docker images</span>
REPOSITORY   TAG       IMAGE ID       CREATED          SIZE
ub-up-git    latest    <span class="hljs-number">14</span>ca71c606d1   <span class="hljs-number">28</span> seconds ago   <span class="hljs-number">259</span>MB
ubuntu       latest    c29284518f49   <span class="hljs-number">7</span> days ago       <span class="hljs-number">72.8</span>MB
httpd        latest    bd29370f84ea   <span class="hljs-number">12</span> days ago      <span class="hljs-number">138</span>MB
</code></span></pre>


<h2 class="wp-block-heading"><strong>Push a docker image to hub.docker.com</strong></h2>


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@localhost ~]<span class="hljs-comment"># docker tag ub-up-git nag9779/nagendra01</span>
&#91;root@localhost ~]<span class="hljs-comment"># docker images</span>
REPOSITORY           TAG       IMAGE ID       CREATED         SIZE
ub-up-git            latest    <span class="hljs-number">14</span>ca71c606d1   <span class="hljs-number">5</span> minutes ago   <span class="hljs-number">259</span>MB
nag9779/nagendra01   latest    <span class="hljs-number">14</span>ca71c606d1   <span class="hljs-number">5</span> minutes ago   <span class="hljs-number">259</span>MB
ubuntu               latest    c29284518f49   <span class="hljs-number">7</span> days ago      <span class="hljs-number">72.8</span>MB
httpd                latest    bd29370f84ea   <span class="hljs-number">12</span> days ago     <span class="hljs-number">138</span>MB
&#91;root@localhost ~]<span class="hljs-comment"># docker login</span>
Login with your Docker ID to push <span class="hljs-keyword">and</span> pull images from Docker Hub. <span class="hljs-keyword">If</span> you don<span class="hljs-string">'t have a Docker ID, head over to https://hub.docker.com to create one.
Username: nag9779
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https:&#47;&#47;docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
&#91;root@localhost ~]#
</span></code></span></pre>


<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
