<?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>godwin14 &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/godwin14/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, 15 Jul 2021 12:29:37 +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>terraform module</title>
		<link>https://www.bestdevops.com/terraform-module-2/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Thu, 15 Jul 2021 12:29:02 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17720</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<pre class="wp-block-code"><span><code class="hljs language-javascript">
provider <span class="hljs-string">"aws"</span> {
  region     = <span class="hljs-string">"us-west-2"</span>
  access_key = <span class="hljs-string">""</span>
  secret_key = <span class="hljs-string">""</span>
}


<span class="hljs-built_in">module</span> <span class="hljs-string">"moduleName"</span> {
  source  = <span class="hljs-string">"module/‪aws_test.tf"</span>
}



<span class="hljs-built_in">module</span> <span class="hljs-string">"vpc"</span> {
  source = <span class="hljs-string">"registry.terraform.io/modules/terraform-aws-modules/vpc/aws/"</span>

  name = <span class="hljs-string">"my-vpc"</span>
  cidr = <span class="hljs-string">"10.0.0.0/16"</span>

  azs             = &#91;<span class="hljs-string">"us-west-2a"</span>, <span class="hljs-string">"us-west-2b"</span>, <span class="hljs-string">"us-west-2c"</span>]
  private_subnets = &#91;<span class="hljs-string">"10.0.1.0/24"</span>, <span class="hljs-string">"10.0.2.0/24"</span>, <span class="hljs-string">"10.0.3.0/24"</span>]
  public_subnets  = &#91;<span class="hljs-string">"10.0.101.0/24"</span>, <span class="hljs-string">"10.0.102.0/24"</span>, <span class="hljs-string">"10.0.103.0/24"</span>]

  enable_nat_gateway = <span class="hljs-literal">true</span>
  enable_vpn_gateway = <span class="hljs-literal">true</span>

  tags = {
    Terraform = <span class="hljs-string">"true"</span>
    Environment = <span class="hljs-string">"dev"</span>
  }
}</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>terraform with provisioner</title>
		<link>https://www.bestdevops.com/terraform-with-provisioner/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Thu, 15 Jul 2021 11:08:01 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17685</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<pre class="wp-block-code"><span><code class="hljs language-php">




resource <span class="hljs-string">"aws_instance"</span> <span class="hljs-string">"godwin"</span> {

  ami           = <span class="hljs-string">"ami-03d5c68bab01f3496"</span>
  instance_type = <span class="hljs-string">"t2.micro"</span>
  key_name-<span class="hljs-string">"godwin_key"</span>
  
  connection {
      type     = <span class="hljs-string">"ssh"</span>
      user     = <span class="hljs-string">"ubuntu"</span>
      private_key = file(<span class="hljs-string">"godwin_key.pem"</span>)
      <span class="hljs-comment">#host = aws_instance.web.public_ip</span>
      host = <span class="hljs-keyword">self</span>.public_ip
  }

 
 
 provisioner <span class="hljs-string">"file"</span> {
    source      = <span class="hljs-string">"playbook.yml"</span>
    destination = <span class="hljs-string">"/tmp/"</span>
  }   

  provisioner <span class="hljs-string">"remote-exec"</span> {
    inline = &#91;
	  <span class="hljs-string">"sudo apt-get update"</span>,
       <span class="hljs-string">"sudo apt install software-properties-common"</span>,
<span class="hljs-string">"sudo add-apt-repository --yes --update ppa:ansible/ansible"</span>,
<span class="hljs-string">"sudo apt install ansible -y"</span>,
<span class="hljs-string">"ansible-playbook playbook.yml --check"</span>,
    ]
  }
  
  
}
</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>terraform script with veriables</title>
		<link>https://www.bestdevops.com/terraform-script-with-veriables/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Thu, 15 Jul 2021 06:07:55 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17601</guid>

					<description><![CDATA[code for creating ec2 instance and git repo git repo using string variable git repo creating using list variable]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">code for creating ec2 instance and git repo</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">terraform {
  required_providers {
    aws = {
      source = <span class="hljs-string">"hashicorp/aws"</span>
      version = <span class="hljs-string">"3.49.0"</span>
    }
    github = {
      source  = <span class="hljs-string">"integrations/github"</span>
      version = <span class="hljs-string">"~&gt; 4.0"</span>
    }
  }
}
</code></span></pre>

<pre class="wp-block-code"><span><code class="hljs language-php">provider <span class="hljs-string">"aws"</span> {
  region     = <span class="hljs-string">"us-west-2"</span>
  access_key = <span class="hljs-string">"  "</span>
  secret_key = <span class="hljs-string">" "</span>
}

resource <span class="hljs-string">"aws_instance"</span> <span class="hljs-string">"first-ec2"</span> {
  ami           = <span class="hljs-string">"ami-03d5c68bab01f3496"</span> <span class="hljs-comment"># us-west-2</span>
  instance_type = <span class="hljs-string">"t2.micro"</span>
  
  tags = {
    Name = <span class="hljs-string">"godwin"</span>
  }
}</code></span></pre>


<p class="wp-block-paragraph">git repo using string variable</p>


<pre class="wp-block-code"><span><code class="hljs language-php">provider <span class="hljs-string">"github"</span> {
  token = <span class="hljs-string">"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"</span> <span class="hljs-comment"># or `GITHUB_TOKEN`</span>
}

variable <span class="hljs-string">"reponame"</span> {
  type = string
  description = <span class="hljs-string">"This is for demo of string variable"</span>
  <span class="hljs-keyword">default</span> = <span class="hljs-string">"test_repo"</span>
}

resource <span class="hljs-string">"github_repository"</span> <span class="hljs-string">"example"</span> {
  name        = <span class="hljs-string">"${var.reponame}"</span>
  description = <span class="hljs-string">"My awesome codebase"</span>
  <span class="hljs-keyword">private</span> = <span class="hljs-keyword">false</span>
}</code></span></pre>


<p class="wp-block-paragraph">git repo creating using list variable</p>


<pre class="wp-block-code"><span><code class="hljs language-php">variable <span class="hljs-string">"gitrepos"</span> {
    type    = <span class="hljs-keyword">list</span>
    <span class="hljs-keyword">default</span> = &#91;<span class="hljs-string">"my_test1"</span>,<span class="hljs-string">"my_test2"</span>,<span class="hljs-string">"my_test3"</span>]
    description = <span class="hljs-string">"This is for demo of list variable"</span>
}






resource <span class="hljs-string">"github_repository"</span> <span class="hljs-string">"repo1"</span> {
  name = <span class="hljs-string">"${var.gitrepos&#91;0]}"</span>
  description = <span class="hljs-string">"My awesome codebase"</span>
  <span class="hljs-keyword">private</span> = <span class="hljs-keyword">false</span>
}



resource <span class="hljs-string">"github_repository"</span> <span class="hljs-string">"repo2"</span> {
  name = <span class="hljs-string">"${var.gitrepos&#91;1]}"</span>
  description = <span class="hljs-string">"My awesome codebase"</span>
  <span class="hljs-keyword">private</span> = <span class="hljs-keyword">false</span>
}
</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Terraform comparison and example code</title>
		<link>https://www.bestdevops.com/terraform-comparison-and-example-code/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Wed, 14 Jul 2021 11:12:59 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17556</guid>

					<description><![CDATA[Docker vs Ansible vs Terraform Docker is particularly a container technology while Ansible are tools for configuration management. Terraform, created [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Docker vs Ansible vs Terraform</strong></p>



<ul class="wp-block-list"><li>Docker is particularly a container technology while Ansible are tools for configuration management.</li><li>Terraform, created by HashiCorp, provides a syntax to define infrastructure and services that can be hosted either on premises or in the cloud</li><li>ansible and terraform both are opensource.</li><li> When it comes to Ansible, it&#8217;s very similar to Terraform in terms of what you can create with it. For example, you can also create the Azure Resource Group with Terraform.</li><li> Terraform users define how to create, update, replace and delete resources with a programming language called HashiCorp configuration language (HCL). unlike Terraform, Ansible uses <a href="https://searchitoperations.techtarget.com/definition/YAML-YAML-Aint-Markup-Language">YAML</a>, </li><li>Ansible works with <a href="https://idego-group.com/python-development/">Python</a> while Docker and Kubernetes work with Go</li><li> Ansible and Terraform are complementary tools that are commonly used together.</li><li>Use Terraform to create resources and services. Then use Ansible to configure the resources Terraform created.</li></ul>



<p class="wp-block-paragraph"><strong>Terraform Sample code for creating a linux EC2 instance</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-php">terraform {
  required_providers {
    aws = {
      source = <span class="hljs-string">"hashicorp/aws"</span>
      version = <span class="hljs-string">"3.49.0"</span>
    }
    
  }
}


provider <span class="hljs-string">"aws"</span> {
  region     = <span class="hljs-string">"us-west-2"</span>
  access_key = <span class="hljs-string">""</span> <span class="hljs-comment">#type access key</span>
  secret_key = <span class="hljs-string">""</span> <span class="hljs-comment">#type secret key</span>
}


resource <span class="hljs-string">"aws_security_group"</span> <span class="hljs-string">"allow_tls"</span> {
  name        = <span class="hljs-string">"allow_tls"</span>
  description = <span class="hljs-string">"Allow TLS inbound traffic"</span>
  vpc_id      = aws_vpc.main.id


}


resource <span class="hljs-string">"aws_key_pair"</span> <span class="hljs-string">"deployer"</span> {
  key_name   = <span class="hljs-string">"deployer-key"</span>
  public_key = <span class="hljs-string">"ssh-rsa email@example.com"</span>
}

</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Jenkins an overview</title>
		<link>https://www.bestdevops.com/jenkins-an-overview/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 11:33:40 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17501</guid>

					<description><![CDATA[jenkins is an open-source automation tool it is an continues integration tool. It lets you execute a series of actions to [&#8230;]]]></description>
										<content:encoded><![CDATA[
<ul class="wp-block-list"><li>jenkins is an open-source automation tool</li><li>it is an continues integration tool.</li><li>It lets you execute a series of actions to achieve the continuous integration process.</li><li>it can perform automatically the build and test and gives immediate feedback</li><li> making it easier for users to obtain a fresh build.</li><li>jenkins can integrate every devops tools such as jira,git,sonarqube etc.</li><li>it can also schedule and gives feedback.</li><li>jenkins releases are, jenkins, enterprise jenkins, jenkinsx, and blueocean. </li><li>jenkins is the community version and free.</li><li>it is developed in java.</li><li> platform independent.</li><li>powered by very strong community.</li><li>powered by 1000+ plugins(100+ features)</li><li>in jenkins everything is optional</li><li>it is extremely easy to install and use</li></ul>



<p class="wp-block-paragraph"><strong>TOP 10  Jenkins Plugins</strong></p>



<ul class="wp-block-list"><li>Metrics.</li><li>Mailer.</li><li>pipeline</li><li>SCM API.</li><li>Git.</li><li>GitHub Integration.</li><li>Subversion.</li><li>bootstrapped-multi-test-results-report.</li><li>JUnit.</li><li>green balls</li><li>docker plugin</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Time series data &#038; Prometheus</title>
		<link>https://www.bestdevops.com/time-series-data-prometheus/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 10:52:11 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17461</guid>

					<description><![CDATA[time series data base sequence of data points collected at regular intervals over a period of time how prometheus good [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong> time series data base</strong></p>



<ul class="wp-block-list"><li>sequence of data points collected at regular intervals over a period of time</li></ul>



<p class="wp-block-paragraph"><strong>how prometheus good for time series metrics</strong></p>



<ul class="wp-block-list"><li>Prometheus fundamentally stores all data as time series: streams of timestamped values belonging to the same metric and the same set of labeled dimensions</li></ul>



<p class="wp-block-paragraph"><strong>components of prometheus</strong></p>



<ul class="wp-block-list"><li>prometheus server</li><li>client libraries</li><li>push gateway</li><li>exporters</li><li>alert manager</li></ul>



<p class="wp-block-paragraph"><strong>How does prometheus work</strong></p>



<ul class="wp-block-list"><li><strong>by pushgateway</strong>:-The Pushgateway is an intermediary service which allows you to push metrics from jobs which cannot be scraped</li><li><strong>by prebuilt exporters</strong>:- You can write your own exporter/custom collector or use the prebuilt exporters which will collect data from your infrastructure and send it to Prometheus</li><li><strong>by instrumenting:</strong>&#8211; is the use of a library in an application&#8217;s code base in order to expose and update metrics about it for a Prometheus instance to scrape.</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ansible playbook Excercise</title>
		<link>https://www.bestdevops.com/ansible-playbook-excercise/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Fri, 09 Jul 2021 12:04:46 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17388</guid>

					<description><![CDATA[Write a Ansible Playbook to create a group called “deploy” Write a Ansible Playbook to create a user called “deploy-user” [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Write a Ansible Playbook to create a group called “deploy”</p>


<pre class="wp-block-code"><span><code class="hljs language-css"><span class="hljs-selector-tag">tasks</span>:
   <span class="hljs-selector-tag">-</span> <span class="hljs-selector-tag">name</span>: <span class="hljs-selector-tag">create</span> <span class="hljs-selector-tag">group</span>
     <span class="hljs-selector-tag">group</span>:
       <span class="hljs-selector-tag">name</span><span class="hljs-selector-pseudo">:deploy</span>
       <span class="hljs-selector-tag">state</span>: <span class="hljs-selector-tag">present</span></code></span></pre>


<p class="wp-block-paragraph">Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell.</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">- name: create user
     <span class="hljs-attr">user</span>:
       name: deploy-user
       <span class="hljs-attr">group</span>: deploy
       <span class="hljs-attr">shell</span>: <span class="hljs-regexp">/bin/</span>bash
    
      </code></span></pre>


<p class="wp-block-paragraph">Write a Ansible Playbook to install package named “httpd” in RHEL/centos.</p>


<pre class="wp-block-code"><span><code class="hljs language-css"><span class="hljs-selector-tag">-</span> <span class="hljs-selector-tag">name</span>: <span class="hljs-selector-tag">Install</span> <span class="hljs-selector-tag">the</span> <span class="hljs-selector-tag">package</span>
  <span class="hljs-selector-tag">ansible</span><span class="hljs-selector-class">.builtin</span><span class="hljs-selector-class">.package</span>:
    <span class="hljs-selector-tag">name</span>:
      <span class="hljs-selector-tag">-</span> <span class="hljs-selector-tag">httpd</span>
    <span class="hljs-selector-tag">state</span>: <span class="hljs-selector-tag">latest</span>
</code></span></pre>


<p class="wp-block-paragraph">Write a Ansible Playbook to start and enable the service named “httpd”</p>


<pre class="wp-block-code"><span><code class="hljs language-css"><span class="hljs-selector-tag">-</span> <span class="hljs-selector-tag">name</span>: <span class="hljs-selector-tag">Install</span> <span class="hljs-selector-tag">the</span> <span class="hljs-selector-tag">package</span>
  <span class="hljs-selector-tag">ansible</span><span class="hljs-selector-class">.builtin</span><span class="hljs-selector-class">.package</span>:
    <span class="hljs-selector-tag">name</span>:
      <span class="hljs-selector-tag">-</span> <span class="hljs-selector-tag">httpd</span>
    <span class="hljs-selector-tag">state</span>: <span class="hljs-selector-tag">started</span>
</code></span></pre>


<p class="wp-block-paragraph">Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents.</p>


<pre class="wp-block-code"><span><code class="hljs language-php">---

- hosts: all
  tasks:
  - name: Creating an <span class="hljs-keyword">empty</span> file
    file:
      path: <span class="hljs-string">"/var/www/html"</span>
      state: touch</code></span></pre>


<p class="wp-block-paragraph">Write a Ansible Playbook to reboot a self machine.</p>


<pre class="wp-block-code"><span><code class="hljs"></code></span></pre>


<p class="wp-block-paragraph">Write a Ansible Playbook to install a package called “git”, “wget”</p>


<pre class="wp-block-code"><span><code class="hljs"></code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ansible Adhoc commands</title>
		<link>https://www.bestdevops.com/ansible-adhoc-commands-3/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Fri, 09 Jul 2021 10:09:43 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17348</guid>

					<description><![CDATA[Ansible Adhoc commands for create an group called deploy &#160;Write a Ansible Adhoc Commands to create a user called “deploy-user” [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Ansible Adhoc commands for create an group called deploy</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">ansible all -m ansible.builtin.group -a<span class="hljs-string">"name=deploy"</span>
</code></span></pre>


<p class="wp-block-paragraph"><strong>&nbsp;Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell.</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-php">ansible all -m ansible.builtin.user -a<span class="hljs-string">"name=deploy-user"</span> shell=/bin/bash group=deploy<span class="hljs-string">"
</span></code></span></pre>


<p class="wp-block-paragraph"><strong>&nbsp;Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos</strong>.</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">ansible localhost -m yum -a<span class="hljs-string">"name=httpd state=present"</span>
</code></span></pre>


<p class="wp-block-paragraph"><strong>&nbsp;Write a Ansible Adhoc commands to start and enable the service named “httpd”</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">ansible localhost -m service -a<span class="hljs-string">"name=httpd state=started"</span></code></span></pre>


<p class="wp-block-paragraph"><strong>Write a Ansible commands to create a file called “index.html” in /var/www/html with some dummy html contents.</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">ansible localhost -m copy -a<span class="hljs-string">"src=index.html dest=/var/www/html/index.html"</span></code></span></pre>


<p class="wp-block-paragraph"><strong>&nbsp;Write a Ansible commands to copy a file called “second.html” in /var/www/html/second.html with some dummy html contents.</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">ansible localhost -m copy -a<span class="hljs-string">"src=index.html dest=/var/www/html/second.html"</span> -u root -k</code></span></pre>


<p class="wp-block-paragraph"><strong>&nbsp;Write a Ansible commands to install a package called “git”, “wget”.</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">ansible all -m ansible.builtin.git -a<span class="hljs-string">"name=git"</span></code></span></pre>


<p class="wp-block-paragraph"><strong>Write a Ansible Adhoc commands to clone git repo. https://github.com/scmgalaxy/ansible-role-template.</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">ansible all -m ansible.builtin.git -a<span class="hljs-string">"repo=https://github.com/scmgalaxy/ansible-role-template clone=yes"</span></code></span></pre>


<p class="wp-block-paragraph"><strong>Write a Ansible commands to reboot a self machine</strong></p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>services(kubernet)</title>
		<link>https://www.bestdevops.com/serviceskubernet/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Thu, 08 Jul 2021 12:13:54 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17301</guid>

					<description><![CDATA[What is a Service? An abstract way to expose an application running on a set of Pods as a network service. With [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>What is a Service?</strong></p>



<ul class="wp-block-list"><li>An abstract way to expose an application running on a set of <a href="https://kubernetes.io/docs/concepts/workloads/pods/" target="_blank" rel="noreferrer noopener">Pods</a> as a network service.</li><li>With Kubernetes you don&#8217;t need to modify your application to use an unfamiliar service discovery mechanism. Kubernetes gives Pods their own IP addresses and a single DNS name for a set of Pods, and can load-balance across them.</li></ul>



<p class="wp-block-paragraph"><strong>What is the types Services?</strong></p>



<ul class="wp-block-list"><li><strong>ClusterIP</strong>: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster. This is the default Service Type</li><li><strong>NodePort</strong>: Exposes the service on each Node’s IP at a static port (the NodePort)</li><li><strong>LoadBalancer</strong> : Exposes the service externally using a cloud provider’s load balance</li><li><strong>EternalName</strong> :which will redirect a request to a domain specified in its <code>external Name</code> parameter:</li></ul>



<p class="wp-block-paragraph"><strong>What is the use of service named with &#8220;kubernetes&#8221; in default namespace?</strong></p>



<ul class="wp-block-list"><li>it is a service which forwards requests to the Kubernetes master .</li><li>So all the requests to the kubernetes.default service from the cluster will be routed to the configured Endpoint IP.</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>pod.yaml file(multi-containers)</title>
		<link>https://www.bestdevops.com/pod-yaml-filemulti-containers/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Thu, 08 Jul 2021 06:32:10 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17248</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<pre class="wp-block-code"><span><code class="hljs">apiVersion: v1
kind: Pod
metadata:
  name: nodehelloworld.example.com
  labels:
    app: helloworld
    server: abhishek
spec:
  containers:
  - name: abhishek
    image: scmgalaxy/nginx-devopsschoolv1
    ports:
    - name:nginx-port
      containerPort: 80
  - name: abhishek1
    image: webimp/mysql-56-slim
    ports:
    - name: mysql- port
      containerPort: 3306</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Declarative language -overview</title>
		<link>https://www.bestdevops.com/declarative-language-overview/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 10:30:15 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17161</guid>

					<description><![CDATA[Difference between Compiled , Interpreted vs declarative Language compiled language :-implementations are typically compilers and not interpreters. eg: java,c,c++ Interpreter [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Difference between Compiled , Interpreted  vs declarative Language</strong></p>



<ul class="wp-block-list"><li><strong>compiled language </strong>:-implementations are typically compilers and not interpreters. eg: java,c,c++</li><li><strong>Interpreter language</strong> :- execute instructions directly and freely without compilation. eg: python</li><li><strong>declarative language</strong> :- program specifies what is to be done rather than how to do it. expresses logic of a computation</li></ul>



<p class="wp-block-paragraph"><strong>Example of Declarative language</strong></p>



<ul class="wp-block-list"><li>JSON </li><li>YAML</li></ul>



<p class="wp-block-paragraph"><strong>Pros and Cons of Declarative Language</strong></p>



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



<ul class="wp-block-list"><li>short</li><li>efficient code can written</li><li>high level of abstraction</li></ul>



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



<ul class="wp-block-list"><li>hard to understand </li><li></li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PODS In Kubernets</title>
		<link>https://www.bestdevops.com/pods-in-kubernets/</link>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 10:07:03 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17094</guid>

					<description><![CDATA[What is POD and what is POD contain? atomic units of scheduling pods contain one or more containers all containers [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>What is POD and  what is POD contain?</strong></p>



<ul class="wp-block-list"><li>atomic units of scheduling</li><li>pods contain one or more containers</li><li>all containers in pod shares the same pod environment.</li><li>pod is running, containers in pod  also running</li></ul>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="591" src="https://www.bestdevops.com/wp-content/uploads/2021/07/networking-overview-1-1024x591.png" alt="" class="wp-image-17130" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/networking-overview-1-1024x591.png 1024w, https://www.bestdevops.com/wp-content/uploads/2021/07/networking-overview-1-300x173.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/07/networking-overview-1-768x443.png 768w, https://www.bestdevops.com/wp-content/uploads/2021/07/networking-overview-1-1536x886.png 1536w, https://www.bestdevops.com/wp-content/uploads/2021/07/networking-overview-1-2048x1182.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>pod</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="530" height="300" src="https://www.bestdevops.com/wp-content/uploads/2021/07/5ef61a1e36a59ccc8182185b_thumb-container-volume.png" alt="" class="wp-image-17126" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/5ef61a1e36a59ccc8182185b_thumb-container-volume.png 530w, https://www.bestdevops.com/wp-content/uploads/2021/07/5ef61a1e36a59ccc8182185b_thumb-container-volume-300x170.png 300w" sizes="(max-width: 530px) 100vw, 530px" /><figcaption>pod container</figcaption></figure>



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



<ul class="wp-block-list"><li>pending -&gt; running -&gt;  succeeded/failed</li></ul>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="768" src="https://www.bestdevops.com/wp-content/uploads/2021/07/3kfhr014pwme691k7yqm.jpeg" alt="" class="wp-image-17117" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/3kfhr014pwme691k7yqm.jpeg 1024w, https://www.bestdevops.com/wp-content/uploads/2021/07/3kfhr014pwme691k7yqm-300x225.jpeg 300w, https://www.bestdevops.com/wp-content/uploads/2021/07/3kfhr014pwme691k7yqm-768x576.jpeg 768w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>pod lifecycle</figcaption></figure>



<p class="wp-block-paragraph"><strong>type of PODS</strong></p>



<p class="wp-block-paragraph">basically two types</p>



<ul class="wp-block-list"><li>single container pod</li><li>multiple container pod</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>kubernet with in 5 mintus</title>
		<link>https://www.bestdevops.com/kubernet-with-in-5-mintus/</link>
					<comments>https://www.bestdevops.com/kubernet-with-in-5-mintus/#respond</comments>
		
		<dc:creator><![CDATA[godwin14]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 07:47:41 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=16982</guid>

					<description><![CDATA[What is Kubernetes kubernetes is a open source container orchestration,for container scalability and workload placement,desired stare Why Kubernetes for overcomes [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>What is Kubernetes</strong></p>



<p class="wp-block-paragraph">kubernetes is a open source container orchestration,for  container scalability and workload placement,desired stare</p>



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



<p class="wp-block-paragraph">for overcomes some challenges</p>



<p class="wp-block-paragraph">*we can start starting  to view data center as a computer</p>



<p class="wp-block-paragraph">*containers scalability challenge</p>



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



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="498" src="https://www.bestdevops.com/wp-content/uploads/2021/07/1_svd2l7yAE-8LV7pR4bnVIA-1024x498.png" alt="" class="wp-image-17008" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/1_svd2l7yAE-8LV7pR4bnVIA-1024x498.png 1024w, https://www.bestdevops.com/wp-content/uploads/2021/07/1_svd2l7yAE-8LV7pR4bnVIA-300x146.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/07/1_svd2l7yAE-8LV7pR4bnVIA-768x373.png 768w, https://www.bestdevops.com/wp-content/uploads/2021/07/1_svd2l7yAE-8LV7pR4bnVIA-1536x747.png 1536w, https://www.bestdevops.com/wp-content/uploads/2021/07/1_svd2l7yAE-8LV7pR4bnVIA-2048x996.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



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



<p class="wp-block-paragraph">*kubernet control plane</p>



<p class="wp-block-paragraph">*high availability(one master goes down other will came)</p>



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



<p class="wp-block-paragraph">       *front end to control plane</p>



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



<p class="wp-block-paragraph">        *cluster store &amp; configure</p>



<p class="wp-block-paragraph">        *persistent storage</p>



<p class="wp-block-paragraph">        * uses kubctl</p>



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



<p class="wp-block-paragraph">       *controller of all controllers(node,endpoint&#8230;.)</p>



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



<p class="wp-block-paragraph">       *assign works to nodes</p>



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



<p class="wp-block-paragraph">    *do the works(managing containers)</p>



<p class="wp-block-paragraph">    *it contain  kublet,container engine,container proxy</p>



<p class="wp-block-paragraph">    *pods are inside node</p>



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



<p class="wp-block-paragraph">    *tracks the state of a pod </p>



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



<p class="wp-block-paragraph">     *Kube proxy routes traffic coming into a node from the service</p>



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



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



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="914" height="495" src="https://www.bestdevops.com/wp-content/uploads/2021/07/01-rancher-k8s-node-components-architecture-1.png" alt="" class="wp-image-17027" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/01-rancher-k8s-node-components-architecture-1.png 914w, https://www.bestdevops.com/wp-content/uploads/2021/07/01-rancher-k8s-node-components-architecture-1-300x162.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/07/01-rancher-k8s-node-components-architecture-1-768x416.png 768w" sizes="auto, (max-width: 914px) 100vw, 914px" /></figure>



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



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



<p class="wp-block-paragraph"><strong>How Kubernetes Works</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="478" src="https://www.bestdevops.com/wp-content/uploads/2021/07/full-kubernetes-model-architecture-1.png" alt="" class="wp-image-17038" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/full-kubernetes-model-architecture-1.png 800w, https://www.bestdevops.com/wp-content/uploads/2021/07/full-kubernetes-model-architecture-1-300x179.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/07/full-kubernetes-model-architecture-1-768x459.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/kubernet-with-in-5-mintus/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
