<?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>Harish &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/harish/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:34:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>
	<item>
		<title>Terraform Script for Modules</title>
		<link>https://www.bestdevops.com/terraform-script-for-modules/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Thu, 15 Jul 2021 12:34:21 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17715</guid>

					<description><![CDATA[Terraform Script to setup web server ( using local module) and setup VPC module (using remote module)]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Terraform Script to setup web server ( using local module) and setup VPC module (using remote module)</strong></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">"~&gt; 3.0"</span>
    }
   github = {
      source  = <span class="hljs-string">"integrations/github"</span>
      version = <span class="hljs-string">"~&gt; 4.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>
  secret_key = <span class="hljs-string">" "</span>
}

<span class="hljs-built_in">module</span> <span class="hljs-string">"harish"</span>{

  source = <span class="hljs-string">"./harish"</span>

}

<span class="hljs-built_in">module</span> <span class="hljs-string">"vpc"</span> {
  source = <span class="hljs-string">"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">"eu-west-1a"</span>, <span class="hljs-string">"eu-west-1b"</span>, <span class="hljs-string">"eu-west-1c"</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 Script to Ec2 instance and Copy-Install-Run Ansible</title>
		<link>https://www.bestdevops.com/terraform-script-to-ec2-instance-and-copy-install-run-ansible/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Thu, 15 Jul 2021 10:18:01 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17657</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<pre class="wp-block-code"><span><code class="hljs language-php">&lt;strong&gt;Step <span class="hljs-number">1</span> - Create ec2-instance with key <span class="hljs-keyword">and</span> group&lt;/strong&gt;

terraform {
  required_providers {
    aws = {
      source  = <span class="hljs-string">"hashicorp/aws"</span>
      version = <span class="hljs-string">"~&gt; 3.0"</span>
    }
  }
}
provider <span class="hljs-string">"aws"</span> {
  region = <span class="hljs-string">"us-west-2"</span>

  access_key = <span class="hljs-string">"my-access-key"</span>
  secret_key = <span class="hljs-string">"my-secret-key"</span>
}
resource <span class="hljs-string">"aws_instance"</span> <span class="hljs-string">"hari-first-ec2"</span> {
  ami           = <span class="hljs-string">"ami-03d5c68bab01f3496"</span>
  instance_type = <span class="hljs-string">"t2.micro"</span>
  key_name = <span class="hljs-string">"harish_pwc"</span>

    tags = {
    Name = <span class="hljs-string">"Harish"</span>
  }
connection {
	
      type     = <span class="hljs-string">"ssh"</span>
      user     = <span class="hljs-string">"ubuntu"</span>
      private_key = file(<span class="hljs-string">"harish_pwc.pem"</span>)
      host = <span class="hljs-keyword">self</span>.public_ip
}

&lt;strong&gt;Step <span class="hljs-number">2</span> - Copy Ansible playbook using file Provisioner&lt;/strong&gt; 

 provisioner <span class="hljs-string">"file"</span> {

    source      = <span class="hljs-string">"C:\Users\Dilip\Desktop\Training\Ansible Playbook.yaml"</span>
    destination = <span class="hljs-string">"/tmp/"</span>
  
} 

&lt;strong&gt;Step <span class="hljs-number">3</span> - Install Ansible using remote Provisioner &lt;/strong&gt;
 provisioner <span class="hljs-string">"remote-exec"</span> {

    inline = &#91;
                 <span class="hljs-string">"sudo apt update"</span>,
                  <span class="hljs-string">"sudo apt install ansible"</span>,
	          <span class="hljs-string">"sudo systemctl start ansible"</span>,
 
             ] 
}

&lt;strong&gt;Step <span class="hljs-number">4</span> - Run Ansinle playbook command using remote Provisioner &lt;/strong&gt;

provisioner <span class="hljs-string">"remote-exec"</span> {

    inline = &#91;

                  <span class="hljs-string">"ansible all -a "</span>df -h<span class="hljs-string">" -u root"</span>,
             ] 
}

}
</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Terraform Scripts On Variables</title>
		<link>https://www.bestdevops.com/terraform-scripts-on-variables/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Thu, 15 Jul 2021 06:25:30 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17599</guid>

					<description><![CDATA[Number String List Map Boolean]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Number</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">variable <span class="hljs-string">"num_of_groups"</span> {
  type = number
  description = <span class="hljs-string">"Number variable"</span>
  <span class="hljs-keyword">default</span> = <span class="hljs-number">3</span>
}

resource <span class="hljs-string">"aws_iam_group"</span> <span class="hljs-string">"developers"</span> {

  count = <span class="hljs-string">"${var.num_of_groups}"</span>
  name = <span class="hljs-string">"developers.${count.index}"</span>

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


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


<pre class="wp-block-code"><span><code class="hljs language-javascript">variable <span class="hljs-string">"instance_name"</span> {
  description = <span class="hljs-string">"Value of the Name tag for the EC2 instance"</span>
  type        = string
  <span class="hljs-keyword">default</span>     = <span class="hljs-string">"ExampleAppServerInstance"</span>
}
 resource <span class="hljs-string">"aws_instance"</span> <span class="hljs-string">"app_server"</span> {
   ami           = <span class="hljs-string">"ami-08d70e59c07c61a3a"</span>
   instance_type = <span class="hljs-string">"t2.micro"</span>

   tags = {
-    Name = <span class="hljs-string">"ExampleAppServerInstance"</span>
   Name = <span class="hljs-keyword">var</span>.instance_name
   }
 }</code></span></pre>


<p class="wp-block-paragraph"><strong>List</strong></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">"harish_1"</span>, <span class="hljs-string">"harish_2"</span>, <span class="hljs-string">"harish_3"</span>]
    description = <span class="hljs-string">"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">"creating first repository"</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">"creating secondrepository"</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">"repo3"</span> {
  name = <span class="hljs-string">"${var.gitrepos&#91;2]}"</span>
  description = <span class="hljs-string">"creating third repository"</span>
  <span class="hljs-keyword">private</span> = <span class="hljs-keyword">false</span>
}</code></span></pre>


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


<pre class="wp-block-code"><span><code class="hljs language-javascript">variable <span class="hljs-string">"user_name"</span> {
   type = map
  <span class="hljs-keyword">default</span> = {
      <span class="hljs-string">"user1"</span> = <span class="hljs-string">"hari_1"</span>
      <span class="hljs-string">"user2"</span> = <span class="hljs-string">"hari_2"</span>
      <span class="hljs-string">"user3"</span> = <span class="hljs-string">"hari_3"</span>
}
}
resource <span class="hljs-string">"aws_iam_user"</span> <span class="hljs-string">"iamuser"</span> {
  for_each = <span class="hljs-keyword">var</span>.user_name
  name = <span class="hljs-string">"${each.value}-iam"</span>
}</code></span></pre>


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


<pre class="wp-block-code"><span><code class="hljs language-javascript">variable <span class="hljs-string">"set_password"</span> {
  type    = bool
  <span class="hljs-keyword">default</span> = <span class="hljs-literal">false</span>
}

resource <span class="hljs-string">"git_password"</span> <span class="hljs-string">"example"</span> {
  create_password = <span class="hljs-string">"${var.set_password}"</span>
}</code></span></pre>


<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Terraforms</title>
		<link>https://www.bestdevops.com/terraforms/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Wed, 14 Jul 2021 11:14:56 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17555</guid>

					<description><![CDATA[Comparison B/W Ansible, Docker and Terraform Ansible Docker Terraform Ansible is a configuration management tool Docker is a container tool [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Comparison B/W Ansible, Docker and Terraform</strong> </p>



<figure class="wp-block-table"><table><tbody><tr><td>                                   <strong> Ansible</strong></td><td>                            <strong>       Docker</strong></td><td>                                     <strong>Terraform</strong></td></tr><tr><td>Ansible is a configuration management tool</td><td>Docker is a container tool</td><td>Terraform is an Orchestration tool</td></tr><tr><td>It provides support for mutable infrastructure</td><td>It provides support for immutable infrastructure</td><td>It provides support for immutable infrastructure</td></tr><tr><td>It follows a procedural language</td><td>It follows a declarative language</td><td>It follows a declarative language</td></tr><tr><td>It provides complete support for packaging and templating </td><td>It provides support for packaging and templating</td><td>It provides partial support for packaging and templating</td></tr><tr><td>It does not have lifecycle management</td><td>It follows lifecycle</td><td>It depends on  lifecycle and state management</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"><strong>Terraform Script to create linux  Ec2 instance  with security groups</strong></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">"~&gt; 3.0"</span>
    }
  }
}
provider <span class="hljs-string">"aws"</span> {
  region = <span class="hljs-string">"us-west-2"</span>
  access_key = <span class="hljs-string">"my-access-key"</span>
  secret_key = <span class="hljs-string">"my-secret-key"</span>
}
resource <span class="hljs-string">"aws_instance"</span> <span class="hljs-string">"hari-first-ec2"</span> {
  ami           = <span class="hljs-string">"ami-03d5c68bab01f3496"</span>
  instance_type = <span class="hljs-string">"t2.micro"</span>

    tags = {
    Name = <span class="hljs-string">"Harish"</span>
  }
}
resource <span class="hljs-string">"aws_security_group"</span> <span class="hljs-string">"ResourceGroup"</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

  tags = {
    Name = <span class="hljs-string">"harishResourceGroup"</span>
  }
}
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">""</span>
}</code></span></pre>


<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Introduction For Jenkins</title>
		<link>https://www.bestdevops.com/introduction-for-jenkins/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 11:52:09 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17519</guid>

					<description><![CDATA[What is Jenkins ? Jenkins is an open-source automation tool it is an continues integration tool. It lets you execute a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>What is Jenkins ?</strong></p>



<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>Jenkins can integrate every Devops tools such as Jira, git,Sonarqube etc.</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>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>in Jenkins everything is optional</li><li>it is extremely easy to install and use</li><li>powered by 1000+ plugins(100+ features)</li></ul>



<p class="wp-block-paragraph"><strong>Most  Popular Plugins in Jenkins</strong></p>



<ul class="wp-block-list"><li>Kubernetes.</li><li>Swarm.</li><li>Amazon Elastic Container Service.</li><li>Azure Container Service.</li><li>Dashboard View.</li><li>View Job Filters.</li><li>Folders.</li><li>Jira.</li><li>Performance</li><li>Performance Publisher</li><li>Build Pipeline</li><li>Mailer</li><li>Monitor</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Introduction To Prometheus</title>
		<link>https://www.bestdevops.com/introduction-to-prometheus-2/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 10:39:22 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17456</guid>

					<description><![CDATA[What is Time Series database ? A time series database is a database optimized for time stamped or time series [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>What is Time Series database ?</strong></p>



<p class="wp-block-paragraph">A time series database is a database optimized for time stamped or time series data. This could be server metrics, application performance monitoring, network data, sensor data, events, clicks, trades in a market, and many other types of analytics data. A time series database is built specifically for handling metrics and events or measurements that are time-stamped.</p>



<p class="wp-block-paragraph"><strong>How Prometheus is good for time series metrics ?</strong></p>



<p class="wp-block-paragraph">Prometheus&nbsp;fundamentally stores all data as&nbsp;time series: streams of timestamped values belonging to the same&nbsp;metric&nbsp;and the same set of labeled dimensions. Besides stored&nbsp;time series,&nbsp;Prometheus&nbsp;may generate temporary derived&nbsp;time series&nbsp;as the result of queries.</p>



<p class="wp-block-paragraph"><strong>What are components of Prometheus</strong> <strong>?</strong></p>



<p class="wp-block-paragraph">The Prometheus consist of multiple components:</p>



<ul class="wp-block-list"><li>Prometheus Server &#8211;  which scrapes and stores time series data</li><li>Client Libraries &#8211;  used for instrumenting application code</li><li>Push gateway &#8211;  used for supporting short-lived jobs</li><li>Exporters &#8211;   used for services like HAProxy, StatsD, Graphite, etc.</li><li>Alert Manager &#8211; which handle alerts</li></ul>



<p class="wp-block-paragraph"><strong>How Prometheus works?</strong></p>



<p class="wp-block-paragraph">Prometheus&nbsp;scrapes metrics from instrumented&nbsp;jobs, either directly or via an intermediary push gateway for short-lived&nbsp;jobs. It stores all scraped samples locally and runs rules over this data to either aggregate and record new time series from existing data or generate alerts.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ansible Playbooks</title>
		<link>https://www.bestdevops.com/ansible-playbooks/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Fri, 09 Jul 2021 11:59:32 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17379</guid>

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


<pre class="wp-block-code"><span><code class="hljs language-javascript">- name: Create a group
  <span class="hljs-attr">hosts</span>: group
  <span class="hljs-attr">tasks</span>:
   - name: Add group <span class="hljs-string">"deploy"</span>
     <span class="hljs-attr">group</span>:
       name: deploy
       <span class="hljs-attr">state</span>: present</code></span></pre>


<p class="wp-block-paragraph">2.<strong>Write a Ansible Playbook 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-javascript">- name: Create a user
  <span class="hljs-attr">hosts</span>: user
  <span class="hljs-attr">tasks</span>:
    - name: Add user <span class="hljs-string">"deploy-user"</span>
      <span class="hljs-attr">user</span>: 
        name=deploy-user groups=deploy password=<span class="hljs-string">""</span> shell=<span class="hljs-regexp">/bin/</span>bash 
        append=yes 
        state=present</code></span></pre>


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


<pre class="wp-block-code"><span><code class="hljs">- name: To install  an httpd webserver
  hosts: web
  tasks:
  - name: Install httpd packages 
    yum:
      name: httpd
      state: present</code></span></pre>


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


<pre class="wp-block-code"><span><code class="hljs">- name: To start and enable an httpd webserver
  hosts: web
  tasks
    - name: start httpd
    service:
      name: httpd 
      state: started


  - name: enable httpd
    service:
      name: httpd 
      enabled: yes</code></span></pre>


<p class="wp-block-paragraph"><strong>5. Write a Ansible Playbook 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">- name: creating a file
  <span class="hljs-attr">hosts</span>: all
    <span class="hljs-attr">tasks</span>:
    - name: create a file index.html
      <span class="hljs-attr">file</span>:
        path: <span class="hljs-string">"/var/www/htmlindex.html"</span>
        <span class="hljs-attr">state</span>: touch

    - name: adding contents to indexfile
    <span class="hljs-attr">blockinfile</span>:
      dest: <span class="hljs-regexp">/var/</span>www/html/index.html
      <span class="hljs-attr">block</span>: |
        <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span> Welcome to HP Ansible class <span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span></span></code></span></pre>


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


<pre class="wp-block-code"><span><code class="hljs language-php">- name: rebooting <span class="hljs-keyword">self</span> machine
  hosts: web
    task:
    - name: Reboot a Linux machine 
        reboot:
        reboot_timeout: <span class="hljs-number">1800</span></code></span></pre>


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


<pre class="wp-block-code"><span><code class="hljs language-javascript">- name: To install a package <span class="hljs-string">"git"</span> and <span class="hljs-string">"wget"</span>
  <span class="hljs-attr">hosts</span>: web
  <span class="hljs-attr">tasks</span>:
  - name: Install git packages 
    <span class="hljs-attr">yum</span>:
      name: git
      <span class="hljs-attr">state</span>: present
 
  - name: Install wget packages 
    <span class="hljs-attr">yum</span>:
      name: wget
      <span class="hljs-attr">state</span>: present</code></span></pre>


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


<pre class="wp-block-code"><span><code class="hljs language-php">- name: Cloning git repo
  hosts: web
  environment:
      http_proxy: <span class="hljs-string">'http://web-proxy:8080'</span>
      https_proxy: <span class="hljs-string">'http://web-proxy:8080'</span>
  tasks:
  - name: cloning....
    git: 
      repo=https:<span class="hljs-comment">//github.com/scmgalaxy/ansible-role-template</span>
      <span class="hljs-keyword">clone</span>=yes 
      dest=./ansible-role-template</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Basic Commands In Ansible</title>
		<link>https://www.bestdevops.com/basic-commands-in-ansible/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Fri, 09 Jul 2021 10:13:31 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17340</guid>

					<description><![CDATA[Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy&#8221; $ ansible -m groupadd -a&#8221;name=deploy &#8220; [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong> Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy&#8221;</strong></p>



<p class="wp-block-paragraph">$ ansible -m groupadd  -a&#8221;name=deploy &#8220;</p>



<p class="wp-block-paragraph"><strong>Program 2 – 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>



<p class="wp-block-paragraph">$ ansible  -m usseradd -a&#8221;name=deploy-user  group=deploy&#8221;</p>



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



<p class="wp-block-paragraph">$ ansible localhost -m yum -a &#8220;name=httpd  state=present&#8221;</p>



<p class="wp-block-paragraph"><strong> 4. Ansible Adhoc commands to start and enable the service named “httpd&#8221;</strong></p>



<p class="wp-block-paragraph">$ ansible localhost -m service -a&#8221;name=httpd state=started enabled=yes&#8221;</p>



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



<p class="wp-block-paragraph">$ ansible localhost -m copy -a&#8221;src=index.html dest=/var/www/html&#8221;</p>



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



<p class="wp-block-paragraph">$ ansible localhost -m copy -a&#8221;src=second.html destination=/var/www/html/second.html</p>



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



<p class="wp-block-paragraph">$ ansible all -m ansible.builtin.git -a&#8221;name=git&#8221;</p>



<p class="wp-block-paragraph">$ ansible all -m ansible.builtin.git -a&#8221;name=wget&#8221;</p>



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



<p class="wp-block-paragraph">$ ansible all -m ansible.builtin.git -a&#8221;repo=https://github.com/scmgalaxy/ansible-role-template clone=yes&#8221;</p>



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



<p class="wp-block-paragraph">$ ansible all -m ansible.builtin.reboot -a&#8221;name=reboot the machine&#8221;</p>



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



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Kubernetes Services</title>
		<link>https://www.bestdevops.com/kubernetes-services/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Thu, 08 Jul 2021 12:21:05 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17309</guid>

					<description><![CDATA[What is a Service ?  A service is responsible for enabling network access to a set of pods. The set [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is a Service ?</h2>



<p class="wp-block-paragraph"> A service is responsible for enabling network access to a set of pods. The set of Pods targeted by a Service is usually determined by a selector.</p>



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



<p class="wp-block-paragraph">1.<strong>Cluster Ip</strong> : A service which is only accessible within the cluster.</p>



<p class="wp-block-paragraph">2.<strong>NodePort</strong> : A service which is accessible outside the cluster via node ip.</p>



<p class="wp-block-paragraph">3.<strong>NodePort</strong> :  A service which is accessible via the cloud provider&#8217;s load balancer.</p>



<p class="wp-block-paragraph">4.<strong>ExternalName </strong>: External names are ones that are visible to other compilation units.</p>



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



<p class="wp-block-paragraph">The most basic type of load balancing in Kubernetes is actually load distribution, which is easy to implement at the dispatch level. Kubernetes uses two methods of load distribution, both of them operating through a feature called kube-proxy, which manages the virtual IPs used by services.</p>



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



<p class="wp-block-paragraph">The kubernetes service in the default namespace is a service which forwards requests to the Kubernete API server. All the requests to the kubernetes default service from the cluster will be routed to the configured Endpoint IP</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Pod with Two container</title>
		<link>https://www.bestdevops.com/pod-with-two-container/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Thu, 08 Jul 2021 06:54:08 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17274</guid>

					<description><![CDATA[Creating a Pod with two containers in yaml]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Creating a Pod with two containers in yaml</h2>


<pre class="wp-block-code"><span><code class="hljs">apiVersion:v1
kind: Pod
metadata:
  name: nodehelloworld.example.com

  labels:
    app: helloworld
spec:
  containers:
  - name:devopsschool1 
    image:scmgalaxy/nginx-devopsschoolv1

    ports:
    - name: nginx-port
      containerPort: 80

  - name:devopsschool2
    image: webimp/mysql-56-slim

    ports:
    - name: mysql-port
      containerPort: 3306</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Differences B/W Compiled, Interpreted and Declarative Language</title>
		<link>https://www.bestdevops.com/differences-b-w-compiled-interpreted-and-declarative-language/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 10:31:41 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17157</guid>

					<description><![CDATA[Compiled Language: It executes entire program in a single shot It is faster and more effecient eg : c, c++ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Compiled Language:</h2>



<ul class="wp-block-list"><li>It executes entire program in a single shot</li><li>It is faster and more effecient</li><li>eg : c, c++ &#8230;</li></ul>



<h2 class="wp-block-heading">Interpreted Language:</h2>



<ul class="wp-block-list"><li>It executes one line at a time</li><li>It is slow compare to complied language</li><li>eg: python, &#8230;</li></ul>



<h2 class="wp-block-heading">Declarative Language:</h2>



<ul class="wp-block-list"><li>it is non-procedular language</li><li>declarative languages are fact oriented</li><li>eg : json, xml, sql</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Beginning For Pod</title>
		<link>https://www.bestdevops.com/beginning-for-pod/</link>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 10:06:48 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17097</guid>

					<description><![CDATA[What is Pod ? Pod is atomic unit of scheduling in the Kubernetes, It contains one or more containers. Types [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is Pod ?</h2>



<p class="wp-block-paragraph">Pod is atomic unit of scheduling in the Kubernetes, It contains one or more containers.</p>



<figure class="wp-block-image"><img decoding="async" src="https://eadn-wc03-4064062.nxedge.io/cdn/wp-content/uploads/2020/09/Screenshot-258.png" alt="Pods | Kubernetes Pods |- Cloud Training Program" /></figure>



<h2 class="wp-block-heading">Types Of Pods :</h2>



<p class="wp-block-paragraph">There are two methods in pods :</p>



<ol class="wp-block-list"><li>loose coupling   &#8211;   Pod with one container</li></ol>



<p class="wp-block-paragraph">2. tight coupling  &#8211;   pod with multiple containers</p>



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



<h2 class="wp-block-heading">What pod contains ?</h2>



<p class="wp-block-paragraph">Inside a Pod we can have one or more containers .</p>



<figure class="wp-block-image"><img decoding="async" src="https://i2.wp.com/goglides.io/wp-content/uploads/2020/06/kubernetes-pod-architecture.png?fit=1546%2C1032&amp;ssl=1" alt="Understanding Kubernetes: Part 1-Pods – Goglides Tech blog" /></figure>



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



<h2 class="wp-block-heading">Life cycle of Pod :</h2>



<p class="wp-block-paragraph">There are three stages in life cycle of pod:</p>



<p class="wp-block-paragraph">1.pending &#8211; when the pod is added newly</p>



<p class="wp-block-paragraph">2.running &#8211; when the container execute without issues</p>



<p class="wp-block-paragraph">3.succeeded/failed &#8211; when the container finishes its execution</p>



<figure class="wp-block-image"><img decoding="async" src="https://drek4537l1klr.cloudfront.net/luksa3/v-4/Figures/6.1.png" alt="6 Managing the lifecycle of the Pod&#039;s containers - Kubernetes in Action,  Second Edition MEAP V07" /></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Introduction To Kubernetes</title>
		<link>https://www.bestdevops.com/introduction-to-kubernetes/</link>
					<comments>https://www.bestdevops.com/introduction-to-kubernetes/#respond</comments>
		
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 07:47:44 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=16990</guid>

					<description><![CDATA[What is Kubernetes ? Kubernetes is a open source container orchestration platform and supports datacenters outsourcing to public cloud service [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is Kubernetes ?</h2>



<p class="wp-block-paragraph">Kubernetes is a open source container orchestration platform and supports datacenters outsourcing to public cloud service providers</p>



<figure class="wp-block-image"><img decoding="async" src="https://analyticsindiamag.com/wp-content/uploads/2020/12/Kubernetes_AIM.jpg" alt="Kubernetes v1.20 Released: Major Features &amp; Updates Introduced" /></figure>



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



<p class="wp-block-paragraph">Kubernetes provides services, support and tools are widely used.</p>



<figure class="wp-block-image"><img decoding="async" src="https://cdn-images-1.medium.com/max/1600/1*jrfUIO2Fhn3S2_qGABY4SA.png" alt="Understanding Kubernetes from Real-world Use Cases - DZone Cloud" /></figure>



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



<p class="wp-block-paragraph">Kubernetes Architecture contains Master Node composed of etcd cluster, api-server, controller manager, scheduler and nodes composed of kublet and kube-proxy</p>



<figure class="wp-block-image"><img decoding="async" src="https://gonorthforge.com/wp-content/uploads/2019/08/how-kubernetes-works.png" alt="Kubernetes and the cloud-native evolution on Telecom | Northforge" /></figure>



<h2 class="wp-block-heading">How Kubernetes Works ?</h2>



<p class="wp-block-paragraph">Kubernetes keeps track of container application that are deployed into the cloud and it restarts, shutdown the containers .</p>



<figure class="wp-block-image"><img decoding="async" src="https://www.whizlabs.com/blog/wp-content/uploads/2019/05/Kubernetes_Architecture.png" alt="An Introduction to Kubernetes: Learn the Basics - Whizlabs Blog" /></figure>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/introduction-to-kubernetes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
