<?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>Vindhya &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/vindhya/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>Fri, 06 Aug 2021 07:29:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.1</generator>
	<item>
		<title>List out top 15 commands in Vmware Tanzu Application service aka PCF-Vindhya</title>
		<link>https://www.bestdevops.com/list-out-top-15-commands-in-vmware-tanzu-application-service-aka-pcf-vindhya/</link>
		
		<dc:creator><![CDATA[Vindhya]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 07:29:21 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18762</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<pre class="wp-block-code"><span><code class="hljs language-javascript">cf help
cf push
cf version
cf login
cf logout
cf passwd
cf target
cf api
cf auth
cf org-quotas
cf org-quota
cf create org-quota
cf <span class="hljs-keyword">delete</span> org-quota
cf rename-org
cf marektplace
cf services

</code></span></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Assignment for Kubernetes ReplicasSets, DeamonSets &#038; Statefulsets, &#038; Services -Vindhya</title>
		<link>https://www.bestdevops.com/assignment-for-kubernetes-replicassets-deamonsets-statefulsets-services-vindhya/</link>
		
		<dc:creator><![CDATA[Vindhya]]></dc:creator>
		<pubDate>Tue, 27 Jul 2021 11:35:11 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18460</guid>

					<description><![CDATA[Assignment – 1 1. What is ReplicasSets? A ReplicaSet is a process that runs multiple instances of a Pod and [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Assignment – 1</h2>



<p class="wp-block-paragraph">1. What is ReplicasSets?</p>



<p class="wp-block-paragraph">A ReplicaSet is a process that runs multiple instances of a Pod and keeps the specified number of Pods constant. Its purpose is to maintain the specified number of Pod instances running in a cluster at any given time</p>



<p class="wp-block-paragraph"><br>2. How to work with ReplicasSets?</p>



<p class="wp-block-paragraph">&nbsp;It is defined with fields. If we give the number of replicas in yaml file it will created those many.</p>



<p class="wp-block-paragraph">When a ReplicaSet needs to create new Pods, it uses its Pod template.</p>



<p class="wp-block-paragraph"><br>3. Example of ReplicasSets?</p>



<p class="wp-block-paragraph">Below code will help me create 2 replicas for my replicaset</p>


<pre class="wp-block-code"><span><code class="hljs">apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: my-replicaset
spec:
  replicas: 2
  selector:
    matchLabels:
      app: my-app
  template:
    metadata:
      labels:
        app: my-app
    spec:
      containers:
      - name: my-container
        image: nginx
</code></span></pre>


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



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



<ol class="wp-block-list"><li>What is DeamonSets?</li></ol>



<p class="wp-block-paragraph">A <em>DaemonSet</em> ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.</p>



<p class="wp-block-paragraph"><br>2. How to work with DeamonSets?</p>



<ul class="wp-block-list"><li>When a&nbsp;new node is added to a Kubernetes cluster, a new pod will be added to that newly attached node.</li><li>When a node is removed, the DaemonSet controller ensures that the pod associated with that node is garbage collected. Deleting a DaemonSet will clean up all the pods that DaemonSet has created.</li><li>Depending on the requirement, you can set up multiple DaemonSets for a single type of daemon, with different flags, memory, CPU, etc. that supports multiple configurations and hardware types.</li></ul>



<p class="wp-block-paragraph"><br>3. Example of DeamonSets?</p>


<pre class="wp-block-code"><span><code class="hljs language-php">apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: test-daemonset
  <span class="hljs-keyword">namespace</span>: <span class="hljs-title">test</span>-<span class="hljs-title">daemonset</span>-<span class="hljs-title">namespace</span>
  <span class="hljs-title">Labels</span>:
    <span class="hljs-title">app</span>-<span class="hljs-title">type</span>: <span class="hljs-title">test</span>-<span class="hljs-title">app</span>-<span class="hljs-title">type</span>
<span class="hljs-title">spec</span>:
  <span class="hljs-title">template</span>:
    <span class="hljs-title">metadata</span>:
      <span class="hljs-title">labels</span>:
        <span class="hljs-title">name</span>: <span class="hljs-title">test</span>-<span class="hljs-title">daemonset</span>-<span class="hljs-title">container</span>
  <span class="hljs-title">selector</span>:
    <span class="hljs-title">matchLabels</span>:
      <span class="hljs-title">name</span>: <span class="hljs-title">test</span>-<span class="hljs-title">daemonset</span>-<span class="hljs-title">container</span>
</code></span></pre>


<p class="wp-block-paragraph">The <strong>apiVersion</strong>, <strong>kind, </strong>and <strong>metadata </strong>are required fields in every Kubernetes manifest. The DaemonSet specific fields come under the spec section—these fields are both mandatory.</p>



<p class="wp-block-paragraph"><strong>Template and selector</strong></p>



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



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



<ol class="wp-block-list"><li>What is Statefulsets?</li></ol>



<p class="wp-block-paragraph">StatefulSet is the workload API object used to manage stateful applications.Manages the deployment and scaling of a set of&nbsp;<a href="https://kubernetes.io/docs/concepts/workloads/pods/" target="_blank" rel="noreferrer noopener">Pods</a>,&nbsp;<em>and provides guarantees about the ordering and uniqueness</em>&nbsp;of these Pods.</p>



<p class="wp-block-paragraph"><br>2. How to work with Statefulsets?</p>



<p class="wp-block-paragraph">StatefulSets are valuable for applications that require one or more of the following.</p>



<ul class="wp-block-list"><li>Stable, unique network identifiers.</li><li>Stable, persistent storage.</li><li>Ordered, graceful deployment and scaling.</li><li>Ordered, automated rolling updates.</li></ul>



<p class="wp-block-paragraph"><br>3. Example of Statefulsets?</p>


<pre class="wp-block-code"><span><code class="hljs language-php">apiVersion: v1
kind: Service
metadata:
  name: nginx
  labels:
    app: nginx
spec:
  ports:
  - port: <span class="hljs-number">80</span>
    name: web
  clusterIP: None
  selector:
    app: nginx
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: web
spec:
  selector:
    matchLabels:
      app: nginx <span class="hljs-comment"># has to match .spec.template.metadata.labels</span>
  serviceName: <span class="hljs-string">"nginx"</span>
  replicas: <span class="hljs-number">3</span> <span class="hljs-comment"># by default is 1</span>
  template:
    metadata:
      labels:
        app: nginx <span class="hljs-comment"># has to match .spec.selector.matchLabels</span>
    spec:
      terminationGracePeriodSeconds: <span class="hljs-number">10</span>
      containers:
      - name: nginx
        image: k8s.gcr.io/nginx-slim:<span class="hljs-number">0.8</span>
        ports:
        - containerPort: <span class="hljs-number">80</span>
          name: web
        volumeMounts:
        - name: www
          mountPath: /usr/share/nginx/html
  volumeClaimTemplates:
  - metadata:
      name: www
    spec:
      accessModes: &#91; <span class="hljs-string">"ReadWriteOnce"</span> ]
      storageClassName: <span class="hljs-string">"my-storage-class"</span>
      resources:
        requests:
          storage: <span class="hljs-number">1</span>Gi
</code></span></pre>


<p class="wp-block-paragraph">In the above example:</p>



<ul class="wp-block-list"><li>A Headless Service, named&nbsp;nginx, is used to control the network domain.</li><li>The StatefulSet, named&nbsp;web, has a Spec that indicates that 3 replicas of the nginx container will be launched in unique Pods.</li><li>The&nbsp;volumeClaimTemplates&nbsp;will provide stable storage using&nbsp;<a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/">PersistentVolumes</a>&nbsp;provisioned by a PersistentVolume Provisioner.</li></ul>



<p class="wp-block-paragraph">The name of a StatefulSet object must be a valid&nbsp;<a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/names#dns-subdomain-names">DNS subdomain name</a>.</p>



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



<ol class="wp-block-list"><li>What is Service?</li></ol>



<p class="wp-block-paragraph">A&nbsp;<strong>Kubernetes service</strong>&nbsp;is a logical abstraction for a deployed group of pods in a cluster (which all perform the same function).</p>



<p class="wp-block-paragraph">Since pods are ephemeral, a service enables a group of pods, which provide specific functions (web services, image processing, etc.) to be assigned a name and unique IP address (clusterIP).</p>



<p class="wp-block-paragraph"><br>2. How Service Works?</p>



<p class="wp-block-paragraph">A Kubernetes service can be used to easily expose an application deployed on a set of pods using a single endpoint. A service is both a REST object and an abstraction that defines:</p>



<ul class="wp-block-list"><li>A set of pods</li><li>A policy to access them</li></ul>



<p class="wp-block-paragraph"><br>3. What are the types of Service?</p>



<ul class="wp-block-list"><li><strong>ClusterIP</strong>. Exposes a service which is only accessible from within the cluster.</li><li><strong>NodePort</strong>. Exposes a service via a static port on each node’s IP.</li><li><strong>LoadBalancer</strong>. Exposes the service via the cloud provider’s load balancer.</li><li><strong>ExternalName</strong>. Maps a service to a predefined externalName field by returning a value for the CNAME record.</li></ul>



<p class="wp-block-paragraph"><br>4. Example Yaml of Service</p>


<pre class="wp-block-code"><span><code class="hljs">apiVersion: v1
kind: Service
metadata:
  name: my-service
spec:
  selector:
    app: MyApp
  ports:
    - protocol: TCP
      port: 80
      targetPort: 9376
</code></span></pre>


<p class="wp-block-paragraph">This specification creates a new Service object named &#8220;my-service&#8221;, which targets TCP port 9376 on any Pod with the <code>app=MyApp</code> label.</p>



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



<p class="wp-block-paragraph">1.What is Loadbalancer?</p>



<p class="wp-block-paragraph"><br>Load balancing is defined as&nbsp;<strong>the methodical and efficient distribution of network or application traffic across multiple servers in a server farm</strong></p>



<p class="wp-block-paragraph"><br>2. What are the types of Loadbalancer?</p>



<p class="wp-block-paragraph"><br>3. How Loadbalancer works?</p>



<p class="wp-block-paragraph">Each load balancer sits between client devices and backend servers, receiving and then distributing incoming requests to any available server capable of fulfilling them.</p>



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



<ol class="wp-block-list"><li>What is Discovery Services?</li></ol>



<p class="wp-block-paragraph">Service discovery takes advantage of the labels and selectors to associate a service with a set of pods.</p>



<p class="wp-block-paragraph"><br>2. How Discovery Services works?</p>



<p class="wp-block-paragraph">A single pod or a ReplicaSet may be exposed to internal or external clients via services, which associate a set of pods with a specific criterion. Any pod whose labels match the selector defined in the service manifest will automatically be discovered by the service. This architecture provides a flexible, loosely-coupled mechanism for service discovery.</p>



<p class="wp-block-paragraph"><br>3. What is CoreDNS?</p>



<p class="wp-block-paragraph">CoreDNS is <strong>a flexible, extensible DNS server that can serve as the Kubernetes cluster DNS</strong>. Like Kubernetes, the CoreDNS project is hosted by the CNCF.</p>



<p class="wp-block-paragraph"><br>4. Use of CoreDNS?</p>



<p class="wp-block-paragraph">CoreDNS is a <strong>flexible, extensible DNS server</strong> that can serve as the Kubernetes cluster DNS. &#8230; You can use CoreDNS instead of kube-dns in your cluster by replacing kube-dns in an existing deployment, or by using tools like kubeadm that will deploy and upgrade the cluster for you</p>



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



<h2 class="wp-block-heading"></h2>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Vindhya-Kubernetes-Assignment</title>
		<link>https://www.bestdevops.com/vindhya-kubernetes-assignment/</link>
		
		<dc:creator><![CDATA[Vindhya]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 07:08:25 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18070</guid>

					<description><![CDATA[1. What are the 10 features of Kubernetes? 1.Storage Orchestration 2.Service discovery and load balancing 3.Automated rollouts/roll backs 4. Self [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">1. What are the 10 features of Kubernetes?</h2>



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



<p class="wp-block-paragraph">1.Storage Orchestration</p>



<p class="wp-block-paragraph">2.Service discovery and load balancing</p>



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



<p class="wp-block-paragraph">3.Automated rollouts/roll backs</p>



<p class="wp-block-paragraph">4. Self healing</p>



<p class="wp-block-paragraph">5. Automatic bin packaging</p>



<p class="wp-block-paragraph">6. Secret &amp;config management</p>



<h2 class="wp-block-heading">2. Master Node components</h2>



<p class="wp-block-paragraph">1.Kube-controller &#8211; controller of ontrollers (node/endpoints/namespaces)</p>



<p class="wp-block-paragraph">2. Schedular &#8211; Assign work to nodes</p>



<p class="wp-block-paragraph">3.Api server &#8211; Front end to control plane</p>



<p class="wp-block-paragraph">4.Cluster store &#8211;</p>



<h2 class="wp-block-heading">3. Worker node components</h2>



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



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



<h2 class="wp-block-heading">4. How Kubernetes works?</h2>



<p class="wp-block-paragraph">It will work through Master and worker node. If we have 4 master components we can beome a master and node will have multiple pods and containers.</p>



<p class="wp-block-paragraph">If you are deployinga package in kubernetes with the help of 4 master components it will deploy them to PODs (2hich internally had containers)</p>



<h2 class="wp-block-heading">5. Components of workstation.</h2>



<p class="wp-block-paragraph">Comprises of Master node and worker node.</p>



<h2 class="wp-block-heading">6. What is POD? Explain in 20 BULLET LINE.</h2>



<ol class="wp-block-list" type="1"><li><em>Pods</em>&nbsp;are the deployable units that you can create and manage in Kubernetes.</li><li><em>It containes&nbsp; one or more containers</em><em></em></li><li>A Pod is a set of namespaces, cgroups,</li><li>Pods can have single container/multiple container.</li><li>A POD can have 2 different container but not the same.</li><li>A Pod is not a process, but an environment for running container(s). A Pod persists until it is deleted.</li></ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Docker-Assignment-Vindhya</title>
		<link>https://www.bestdevops.com/docker-assignment-vindhya/</link>
		
		<dc:creator><![CDATA[Vindhya]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 06:37:16 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17807</guid>

					<description><![CDATA[Step1: Register a site to POST Assigment and Share with Trainer and For Self Notes. Userid: Vindhya Step2: Pre Test [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Step1:  Register a site to POST Assigment and Share with Trainer and For Self Notes. Userid: Vindhya</strong></p>



<p class="wp-block-paragraph"><strong>Step2: Pre Test using LMS</strong>: <strong>Sent screenshot to Shiva</strong></p>



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


<pre class="wp-block-code"><span><code class="hljs language-php">&#91;root@ip<span class="hljs-number">-172</span><span class="hljs-number">-31</span><span class="hljs-number">-2</span><span class="hljs-number">-102</span> centos]<span class="hljs-comment"># history</span>
    <span class="hljs-number">1</span>  vi /etc/ssh/sshd_config
    <span class="hljs-number">2</span>  passwd centos
    <span class="hljs-number">3</span>  systemctl restart sshd
    <span class="hljs-number">4</span>  systemctl restart sshd
    <span class="hljs-number">5</span>  passwd centos
    <span class="hljs-number">6</span>  vi /etc/ssh/sshd_config
    <span class="hljs-number">7</span>  systemctl restart sshd
    <span class="hljs-number">8</span>  passwd centos
    <span class="hljs-number">9</span>  <span class="hljs-keyword">exit</span>
   <span class="hljs-number">10</span>  sudo yum install -y yum-utils device-mapper-persistent-data lvm2
   <span class="hljs-number">11</span>  sudo yum-config-manager --add-repo https:<span class="hljs-comment">//download.docker.com/linux/centos/docker-ce.repo</span>
   <span class="hljs-number">12</span>  sudo yum install –y https:<span class="hljs-comment">//dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</span>
   <span class="hljs-number">13</span>  sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
   <span class="hljs-number">14</span>  sudo yum install -y docker-ce
   <span class="hljs-number">15</span>  sudo yum install docker-ce
   <span class="hljs-number">16</span>  docker -v
   <span class="hljs-number">17</span>  sudo systemctl enable docker
   <span class="hljs-number">18</span>  ps -ef|grep docker
   <span class="hljs-number">19</span>  sudo systemctl start docker
   <span class="hljs-number">20</span>  docker info
   <span class="hljs-number">21</span>  sudo docker run hello-world
   <span class="hljs-number">22</span>  docker info
   <span class="hljs-number">23</span>  history
&#91;root@ip<span class="hljs-number">-172</span><span class="hljs-number">-31</span><span class="hljs-number">-2</span><span class="hljs-number">-102</span> centos]<span class="hljs-comment"># sudo systemctl enable docker</span>
&#91;root@ip<span class="hljs-number">-172</span><span class="hljs-number">-31</span><span class="hljs-number">-2</span><span class="hljs-number">-102</span> centos]<span class="hljs-comment"># sudo systemctl start docker</span>
&#91;root@ip<span class="hljs-number">-172</span><span class="hljs-number">-31</span><span class="hljs-number">-2</span><span class="hljs-number">-102</span> centos]<span class="hljs-comment"># sudo docker run hello-world</span>
&#91;root@ip<span class="hljs-number">-172</span><span class="hljs-number">-31</span><span class="hljs-number">-2</span><span class="hljs-number">-102</span> centos]<span class="hljs-comment"># docker ps -a</span>
CONTAINER ID   IMAGE         COMMAND    CREATED          STATUS                      PORTS     NAMES
<span class="hljs-number">3</span>c346de20dfd   hello-world   <span class="hljs-string">"/hello"</span>   <span class="hljs-number">2</span> minutes ago    Exited (<span class="hljs-number">0</span>) <span class="hljs-number">2</span> minutes ago              elastic_bardeen
<span class="hljs-number">8545</span>a66d0a03   hello-world   <span class="hljs-string">"/hello"</span>   <span class="hljs-number">14</span> minutes ago   Exited (<span class="hljs-number">0</span>) <span class="hljs-number">14</span> minutes ago             ecstatic_kilby
&#91;root@ip<span class="hljs-number">-172</span><span class="hljs-number">-31</span><span class="hljs-number">-2</span><span class="hljs-number">-102</span> centos

</code></span></pre>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
