<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sravya-07</title>
    <description>The latest articles on DEV Community by sravya-07 (@sravya07).</description>
    <link>https://dev.to/sravya07</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F874065%2F71c31640-8712-4efc-bc55-516a9f731645.jpg</url>
      <title>DEV Community: sravya-07</title>
      <link>https://dev.to/sravya07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sravya07"/>
    <language>en</language>
    <item>
      <title>Kubernetes - Part 2 - Replicas and Deployments?</title>
      <dc:creator>sravya-07</dc:creator>
      <pubDate>Mon, 21 Nov 2022 21:18:01 +0000</pubDate>
      <link>https://dev.to/sravya07/kubernetes-part-2-replicas-and-deployments-581e</link>
      <guid>https://dev.to/sravya07/kubernetes-part-2-replicas-and-deployments-581e</guid>
      <description>&lt;h2&gt;
  
  
  Replicas &amp;amp; ReplicaSets
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A replica is a nothing more than a copy. If you have your application hosted on a pod, and you want more instances of the application to be up to serve increased traffic, you can create more replicas of the pod.&lt;/li&gt;
&lt;li&gt;As the name suggests, all replicas of a pod are identical to each other&lt;/li&gt;
&lt;li&gt;Replicas of a pod are managed using replica sets&lt;/li&gt;
&lt;li&gt;A replica set is used to maintain a fixed number of copies of a pod in the Kubernetes cluster&lt;/li&gt;
&lt;li&gt;The pods that are managed by the replica set are selected using "selectors"&lt;/li&gt;
&lt;li&gt;Any pod that is selected by the selector of a replica set will now be managed by the replica set&lt;/li&gt;
&lt;li&gt;Pods will be deleted or created to match the number of replicas specified the yaml file or the cli command&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deployments
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Deployments are a way to manage stateless applications hosted on pods/replica sets&lt;/li&gt;
&lt;li&gt;They are great for scaling up/down stateless applications&lt;/li&gt;
&lt;li&gt;Deployments provide way to perform upgrades. Eg: If you want to change the underlying image in the pod, you can use various update techniques to achieve that&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>kubernetes</category>
      <category>docker</category>
      <category>deployments</category>
    </item>
    <item>
      <title>Kubernetes - Part 1 - What are Pods in Kubernetes ?</title>
      <dc:creator>sravya-07</dc:creator>
      <pubDate>Thu, 13 Oct 2022 05:13:33 +0000</pubDate>
      <link>https://dev.to/sravya07/kubernetes-what-are-pods-in-kubernetes-part-1-1dc6</link>
      <guid>https://dev.to/sravya07/kubernetes-what-are-pods-in-kubernetes-part-1-1dc6</guid>
      <description>&lt;p&gt;Pods are the most basic and the smallest unit in Kubernetes. A pod is a grouping of one or more containers.&lt;br&gt;
The container is created using a Docker image. This image can be pulled from public or private repositories.&lt;br&gt;
All the containers in a pod have shared resources. Pods are a Kubernetes abstraction over containers.&lt;/p&gt;

&lt;p&gt;In Kubernetes, we rarely work with containers, and we are mainly working with the pod that is running the container. The pod is what is the host for the application.&lt;/p&gt;

&lt;p&gt;In order to view all the pods that running in a k8s cluster, the following commands can be used&lt;br&gt;
&lt;code&gt;kubectl get pods # show pods in default namespace&lt;br&gt;
 kubectl get pods -n namespace-name # show pods in a particular namespace&lt;br&gt;
 kubectl get pods -A # show pods in all namespaces&lt;br&gt;
 kubectl get pods --all-namespaces # show pods in all namespaces&lt;/code&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>containers</category>
      <category>pods</category>
      <category>notes</category>
    </item>
    <item>
      <title>How to resolve python command not found error in Linux</title>
      <dc:creator>sravya-07</dc:creator>
      <pubDate>Fri, 17 Jun 2022 19:03:13 +0000</pubDate>
      <link>https://dev.to/sravya07/how-to-resolve-python-command-not-found-error-in-linux-1d83</link>
      <guid>https://dev.to/sravya07/how-to-resolve-python-command-not-found-error-in-linux-1d83</guid>
      <description>&lt;p&gt;I had both python3.8 and python2.7 installed on a Linux system (Ubuntu in this case, but this solution should work for other flavours of Linux too), however running &lt;code&gt;python --version&lt;/code&gt; gave a &lt;code&gt;python: command not found&lt;/code&gt; response.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwy4n41zdn7qjqyc2hu41.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwy4n41zdn7qjqyc2hu41.png" alt="Screenshot of an Ubuntu terminal. Shows the output of python --version command. The Output is Command 'python' not found."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to resolve:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Verify if any version of python was installed on the system&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I wanted to be sure that the system had some version of python installed. Using &lt;code&gt;whereis python3&lt;/code&gt; or &lt;code&gt;whereis python2&lt;/code&gt; command shows the versions and paths of python installed on the system.
The output should look something like this
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fozkkwrw2bhbcp293kv3m.png" alt="Screenshot of Ubuntu terminal that shows the output of whereis python3 command. The output shows paths we can find python3"&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If there is no version of python installed, install it using &lt;code&gt;sudo apt-get install python3.8&lt;/code&gt; or &lt;code&gt;sudo apt-get install python&amp;lt;version&amp;gt;&lt;/code&gt; (use &lt;code&gt;yum&lt;/code&gt; instead of &lt;code&gt;apt-get&lt;/code&gt; for RHEL)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;cd to /usr/bin folder and create a symlink to the version of python you want to be invoked using the python command.&lt;br&gt;
Example:&lt;br&gt;
&lt;code&gt;cd /usr/bin&lt;br&gt;
ln -s /usr/bin/python3.8 python&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Verify the if the symlink is created using &lt;code&gt;ls -l python&lt;/code&gt; and verify if the python command works and is pointing to the right version of python using &lt;code&gt;python --version&lt;/code&gt;.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvk23ga1i4ermwtzc6fet.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvk23ga1i4ermwtzc6fet.png" alt="Screenshot of Ubuntu terminal that shows the output of python command. The output is Python 3.8.10"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>python</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
