<?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>sujitpradh &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/sujitpradh/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, 09 Jun 2022 11:38:48 +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>Kubernet Learning- Sujit</title>
		<link>https://www.bestdevops.com/kubernet-learning-sujit/</link>
					<comments>https://www.bestdevops.com/kubernet-learning-sujit/#respond</comments>
		
		<dc:creator><![CDATA[sujitpradh]]></dc:creator>
		<pubDate>Thu, 09 Jun 2022 10:36:09 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=24575</guid>

					<description><![CDATA[&#8211; What is POD &#8211; in 10 lines with 1 YAML example A Kubernetes pod is a collection of one [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">&#8211; What is POD &#8211; in 10 lines with 1 YAML example</p>



<ol class="wp-block-list"><li>A Kubernetes pod is a collection of one or more Linux containers, and is the smallest unit of a Kubernetes application.</li><li>pod can be composed of multiple, tightly coupled containers or just a single container.</li><li>Within the kubernets system, containers in the same pod will share the same compute resources.</li><li>Kubernetes does not run containers directly, instead running pods to ensure that each container within them shares the same resources and local network.</li><li>Pods also contain shared networking and storage resources for their containers.</li><li>A Pod is meant to run a single instance of your application on your cluster</li><li>To  create pod from yaml file  we can use command kubectl create -f pod.yaml</li><li>To inspect a Pod running on your cluster we can use command kubectl get pod</li><li>To describe pod we can use kubectl describe pods sujit</li><li>To edit pod we can use command kubectl edit pods sujit</li></ol>



<p class="wp-block-paragraph">apiVersion: v1<br>kind: Pod<br>metadata:<br>name: sujit<br>labels:<br>app: helloworld</p>



<p class="wp-block-paragraph">spec:<br>containers:</p>



<p class="wp-block-paragraph">-name: devopsschool1 </p>



<p class="wp-block-paragraph">image: scmgalaxy/nginx-devopsschoolv1 </p>



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



<p class="wp-block-paragraph">-name: nginx-port<br>containerPort: 80</p>



<p class="wp-block-paragraph"><br>&#8211; What is ReplicationController &#8211; in 4 lines with 1 YAML example</p>



<p class="wp-block-paragraph">1.A <em>ReplicationController</em> ensures that a specified number of pod replicas are running at any one time</p>



<p class="wp-block-paragraph">2.A ReplicationController makes sure that a pod  is always up and available.</p>



<p class="wp-block-paragraph">3. It  is responsible for managing the pod lifecycle.</p>



<p class="wp-block-paragraph">4. It is used in time when one wants to make sure that the specified number of pod or at least one pod is running.</p>



<p class="wp-block-paragraph">5.It has the capability to bring up or down the specified no of pod.</p>



<p class="wp-block-paragraph">apiVersion: v1<br>kind: ReplicationController<br>metadata:<br>         name: replicationcontroller-example<br>spec:<br>        replicas: 3<br>        template:<br>        metadata:<br>        labels:<br>        app: nginx<br>spec:<br>         containers:<br>          &#8211; name: nginx<br>          image: scmgalaxy/nginx-devopsschoolv1</p>



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



<p class="wp-block-paragraph"><br>&#8211; What is ReplicaSets &#8211; in 4 lines with 1 YAML example</p>



<ol class="wp-block-list"><li>Replica Set ensures how many replica of pod should be running and helps with load-balancing in case of an increase in resource usage.</li><li>It can be considered as a replacement of replication controller.</li><li>A ReplicaSet is a process that runs multiple instances of a Pod</li><li>Its purpose is to maintain the specified number of Pod instances running in a cluster at any given time to prevent users from losing access to their application when a Pod fails or is inaccessible.  </li><li>ReplicaSet helps bring up a new instance of a Pod when the existing one fails.</li></ol>



<p class="wp-block-paragraph">apiVersion: v1<br>kind: ReplicaSet<br>metadata:<br>         name: my-replicaset<br>spec:<br>     replicas: 2<br>selector:<br>       matchLabels:<br>       app: my-app<br>template:<br>      metadata:<br>      labels:<br>     app: my-app<br>spec:<br>      containers:<br>      &#8211; name: my-container<br>      image: nginx</p>



<p class="wp-block-paragraph"><br>&#8211; What is Deployment &#8211; in 10 lines with 1 YAML example</p>



<ol class="wp-block-list"><li>A deployment allows us to describe an application’s life cycle, such as which images to use for the app, the number of pods there should be, and the way in which they should be updated. </li></ol>



<p class="wp-block-paragraph">     2. The Kubernetes deployment object lets us:</p>



<ul class="wp-block-list"><li>Deploy a replica set or pod</li><li>Update pods and replica sets</li><li>Rollback to previous deployment versions</li><li>Scale a deployment</li><li>Pause or continue a deployment.</li></ul>



<p class="wp-block-paragraph">   3. Kubernetes Deployment is the process of providing declarative updates to Pods and Replica sets.   </p>



<p class="wp-block-paragraph">   4.It allows users to declare the desired state in the yaml file, and the controller will change the current state to the declared        state.</p>



<p class="wp-block-paragraph">5. <em>Deployments</em> represent a set of multiple, identical Pods with no unique identities.</p>



<p class="wp-block-paragraph">6.A Deployment runs multiple replicas of your application and automatically replaces any instances that fail or become unresponsive</p>



<p class="wp-block-paragraph">7. Deployments help ensure that one or more instances of your application are available to serve user requests.</p>



<p class="wp-block-paragraph">8. Deployments are managed by the Kubernetes Deployment controller.</p>



<p class="wp-block-paragraph">9. To create deployment we can use comand kubectl create deployment my-dep &#8211;image=scmgalaxy/nginx-devopsschoolv1 -n=sujit</p>



<p class="wp-block-paragraph">10.To get deployment we can use kubectl get deploy -n=sujit</p>



<p class="wp-block-paragraph">11. To edit deployment kubectl edit deploy my-dep -n=sujit</p>



<p class="wp-block-paragraph">12. To delete deployment kubectl delete pod my-dep-747b4ffb56-2ftv5 my-dep-747b4ffb56-8nvwk my-dep-747b4ffb56-bgnhk my-dep-747b4ffb56-hxsqd my-dep-747b4ffb56-lqqm8 my-dep-747b4ffb56-ppkhg my-dep-747b4ffb56-rt977 -n=sujit</p>



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



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



<p class="wp-block-paragraph">apiVersion: v1<br>kind: Deployment<br>metadata:<br>          name: nginx-deployment<br>          labels:<br>         app: nginx<br>spec:<br>      replicas: 3<br>      selector:<br>           matchLabels:<br>           app: nginx<br>template:<br>       metadata:<br>           labels:<br>          app: nginx<br>spec:<br>         containers:<br>         &#8211; name: nginx<br>         image: nginx:1.14.2<br>         ports:<br>        &#8211; containerPort: 80</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/kubernet-learning-sujit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Docker Learning &#8211; Sujit</title>
		<link>https://www.bestdevops.com/docker-learning-sujit/</link>
					<comments>https://www.bestdevops.com/docker-learning-sujit/#respond</comments>
		
		<dc:creator><![CDATA[sujitpradh]]></dc:creator>
		<pubDate>Wed, 08 Jun 2022 04:59:18 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=24483</guid>

					<description><![CDATA[Write a 1 post with following answers.&#8211; What is Docker &#8211; in 2 lines Docker&#160;is a tool which is used [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Write a 1 post with following answers.<br>&#8211; What is Docker &#8211; in 2 lines</p>



<p class="wp-block-paragraph">Docker&nbsp;is a tool  which is used to create, deploy, and run applications by using containers.</p>



<p class="wp-block-paragraph"><br>&#8211; What is Container &#8211; in 3 lines</p>



<p class="wp-block-paragraph">Container can be used to  deploy a particular application or environment.</p>



<p class="wp-block-paragraph">containers package all the code, libraries, and dependencies together and multiple containers can run in the same host, so that we can use that host&#8217;s resources more efficiently.<br>&#8211; Top 10 commands with 1 example of using docker container.</p>



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



<p class="wp-block-paragraph">docker create &#8211;name=sujit httpd</p>



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



<p class="wp-block-paragraph">docker start sujit</p>



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



<p class="wp-block-paragraph">docker stop sujit</p>



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



<p class="wp-block-paragraph">docker restart sujit</p>



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



<p class="wp-block-paragraph">docker pause sujit</p>



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



<p class="wp-block-paragraph">docker unpause sujit</p>



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



<p class="wp-block-paragraph">docker kill sujit</p>



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



<p class="wp-block-paragraph">docker rm sujit</p>



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



<p class="wp-block-paragraph">list of containers</p>



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



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



<p class="wp-block-paragraph">docker exec container_ID ls</p>



<p class="wp-block-paragraph"><br>&#8211; 5 commands with 1 example of using docker image</p>



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



<p class="wp-block-paragraph">docker pull Imagename</p>



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



<p class="wp-block-paragraph">docker image history -h sujit</p>



<p class="wp-block-paragraph">docker image rm sujit</p>



<p class="wp-block-paragraph">docker tag sujit sujit_hello</p>



<p class="wp-block-paragraph">docker image push</p>



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



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



<p class="wp-block-paragraph"><br>&#8211; 5 commands with 1 example of using docker registry</p>



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



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



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



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



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



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



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



<p class="wp-block-paragraph">docker tag Imagename hubname</p>



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



<p class="wp-block-paragraph">docker push hubname</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/docker-learning-sujit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
