<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yogita Kothadiya on Medium]]></title>
        <description><![CDATA[Stories by Yogita Kothadiya on Medium]]></description>
        <link>https://medium.com/@yogitakothadia?source=rss-54129ae83aaf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3-d1IUWQFcR5z99i9bcKRA@2x.jpeg</url>
            <title>Stories by Yogita Kothadiya on Medium</title>
            <link>https://medium.com/@yogitakothadia?source=rss-54129ae83aaf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 00:09:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yogitakothadia/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Persistent Volumes — Kubernetes]]></title>
            <link>https://medium.com/@yogitakothadia/persistent-volumes-kubernetes-a7e0ece56de?source=rss-54129ae83aaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7e0ece56de</guid>
            <category><![CDATA[kubernetes-volume]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <dc:creator><![CDATA[Yogita Kothadiya]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 06:33:33 GMT</pubDate>
            <atom:updated>2023-01-30T06:33:33.016Z</atom:updated>
            <content:encoded><![CDATA[<h3>Persistent Volumes — Kubernetes</h3><p>Learn about PersistentVolume, PersistentVolumeClaim and Storage Class in simple terms with examples.</p><h4>Persist Data in Kubernetes using volumes</h4><p>The article explains three Kubernetes components:</p><ul><li>PersistentVolume,</li><li>PersistentVolumeClaim, and</li><li>Storage Class</li></ul><h4>Storage Considerations</h4><p>Assume that you’re developing a web application and that your web application uses the MySQL database. You have a pod running your MySQL database. When you restart the pod, or the pod get replaced with another pod, your data will be lost as the pod restarts with a clean state. In addition, your data will not be persistent as Kubernetes will not give you the data persistent immediately. Therefore, you will have to explicitly configure using different Kubernetes components for each application that needs persistent data storage. Your storage should not depend on the pod lifecycle so that when a pod gets restarted or a new pod gets created, it will use the same storage, and you won’t lose your data.</p><p>In addition, you won’t know on which node your new pod restarts; therefore, the storage should be accessible through all nodes. Hence, it won’t be in any namespace.</p><p>Lastly, your storage must survive in case of cluster crashes. These are the requirements to keep in mind when creating/selecting persistent storage.</p><h3>Understanding <em>PersistentVolume</em>:</h3><p>A <em>PersistentVolume</em> is a Kubernetes cluster component used to store data. It’s a Kubernetes resource similar to any other resource, for example, node. The <em>PersistentVolume</em> has been created by an administrator or dynamically using a Storage Class (Explained later in this article).</p><p>A <em>PersistentVolume </em>can be created using a YAML file. A few examples of PV storage systems are NFS, iSCSI, local storage devices mounted on nodes or close storage. Visit the Kubernetes website to see the complete list of supported volumes. As an administrator, you must decide what kind of storage you need (local storage, NFS server, cloud storage, etc.). You can also configure multiple storages of different types. For instance, a few of your application uses local storage, and others use an NFS server or cloud storage. Once decided, you can create and manage them using a Kubernetes component called <em>PersistentVolume</em>.</p><p>A sample YAML file for creating a <em>PersistentVolume </em>with NFS drive configuration. The below config file defines the kind as PersistentVolume and other specifications under the spec section, like how much storage you need, i.e. capacity and a few other configurations. Depending on the storage type on the storage backend, the specifications will differ for each.</p><pre>apiVersion: v1<br>kind: PersistentVolume<br>metadata:<br>  name: example-pv-name<br>spec:<br>  capacity:<br>    storage: 5Gi<br>  volumeMode: Filesystem<br>  accessModes:<br>    - ReadWriteOnce<br>  persistentVolumeReclaimPolicy: Recycle<br>  storageClassName: slow<br>  mountOptions:<br>    - hard<br>    - nfsvers=4.1<br>  nfs:<br>    path: /nfs-server-dir-path<br>    server: ip-address-of-nfs-server</pre><h3>Understanding <em>PersistentVolumeClaim</em>:</h3><p>A <em>PersistentVolumeClaim</em> is a Kubernetes cluster component used to claim the storage by a user. The way Pods consume node resources, PVCs consume PV resources. The way a pod requests a specific amount of resources like memory and CPU, a PVC requests the specific size and access modes.</p><p>A <em>PersistentVolumeClaim </em>can be created using a YAML file. The following is an example of a <em>PersistentVolumeClaim </em>resource. You can define the storage requirements in the specification section. For example, accessModes, storage size and etc. When you create a claim using this configuration, the <em>PersistentVolume</em> that satisfies these criteria will be used as storage for your application. The user may request storage with different criteria. Therefore, administrators need to provide a variety of PVs that differ not only in size but also in access modes.</p><p>The access modes can be the following, <strong>ReadWriteOnce (</strong>RWO)<strong>, ReadOnlyMany (</strong>ROX)<strong>, ReadWriteMany (</strong>RWX) and<strong> ReadWriteOncePod (</strong>RWOP).</p><pre>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br>  name: exampleclaim # The PVC name will be used in a Pod configurations when mounting this volume<br>spec:<br>  accessModes:<br>    - ReadWriteOnce<br>  volumeMode: Filesystem<br>  resources:<br>    requests:<br>      storage: 2Gi<br>  storageClassName: slow<br>  selector:<br>    matchLabels:<br>      release: &quot;stable&quot;<br>    matchExpressions:<br>      - {key: environment, operator: In, values: [dev]}</pre><h3>Using PersistentVolumeClaim in a Pod Configuration:</h3><p>Once you have created a claim, you must declare it in your pod specifications under volumes. Now, all the containers will have access to that volumes. Then, you can mount that volume into a container.</p><p>A Pod can only access the claims that are in the same namespace. The following is an example of using the <em>PersistentVolumeClaim </em>that we have created using the previous YAML file.</p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: mypod<br>spec:<br>  containers:<br>    - name: myfrontend<br>      image: nginx<br>      volumeMounts:<br>      - mountPath: &quot;/var/www/html&quot;<br>        name: mypd # The name of the volume declared under volumes <br>  volumes:<br>    - name: mypd<br>      persistentVolumeClaim:<br>        claimName: exampleclaim  # Name of our PVC</pre><p>In the above example, we are mounting the volume at the pod level under the Pod <strong><em>volumes</em></strong> section of the Pod specification section. Then, we are mounting that volume at the container level under <strong><em>volumeMounts</em></strong></p><h3>Understanding StorageClass:</h3><p>There are two methods <em>PersistentVolume </em>can be created. It can be created <strong>statically</strong> or <strong>dynamically</strong>.</p><ul><li><strong>Static:</strong> An administrator provisions PVs by manually creating them.</li><li><strong>Dynamic: </strong>PVC can request a storage class. A cluster administrator must have created a StorageClass resource with specific configurations. StorageClass creates PVs dynamically when PVC claims them.</li></ul><p>In short, an administrator can automate the creation of PV by using a Kubernetes <em>StorageClass</em> component.</p><p>The following is an example of a <em>StorageClass </em>YAML file. You need to define the provisioned attribute according to your storage backend. Each storage backend has its own provisioner value.</p><p>For example, the below example uses the <strong><em>awsElasticBlockStore </em></strong>as the storage backend. Kubernetes offers internal provisioners, and it will be prefixed with kuberntes.io. Therefore, the below example has <strong><em>kubernetes.io/aws-ebs</em></strong> as a provisioner.</p><pre>apiVersion: storage.k8s.io/v1<br>kind: StorageClass<br>metadata:<br>  name: example-storage-class-name # The name will be used in the PVC configuration<br>provisioner: kubernetes.io/aws-ebs<br>parameters:<br>  type: io1 <br>reclaimPolicy: Retain<br>allowVolumeExpansion: true<br>mountOptions:<br>  - debug<br>volumeBindingMode: Immediate</pre><p>Once you have created the <em>StorageClass </em>resource, you can use it in your PVC configuration.</p><pre>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br>  name: exampleclaim<br>spec:<br>  accessModes:<br>    - ReadWriteOnce<br>  volumeMode: Filesystem<br>  resources:<br>    requests:<br>      storage: 2Gi<br>  storageClassName: example-storage-class-name # Reference your storage class here</pre><h3>TL;DR</h3><ul><li>An administrator creates PV either manually by creating Kubernetes’ PV resource or can create a Storage Class to create PVs when requested by any claims dynamically. Kubernetes does not limit PVs to any namespace so that Pods can request a claim for storage from any namespace.</li><li>A User then claims the volume using Kubernetes’ PVC resource. Depending on the PVCs &#39; configurations, PVC requests storage from <em>StorageClass (</em>SC) or PV.</li><li>You can then mount that volume in your Pod by referencing the PVC at the Pod level under the <strong><em>volumes</em></strong> attribute. A pod can only access PVCs that are in the same namespace.</li><li>Once mounted in the Pod, you can then mount the volume at your container level under <strong><em>volumeMounts</em></strong> attribute.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7e0ece56de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pods in Kubernetes — The Smallest Deployable Units of Computing]]></title>
            <link>https://aws.plainenglish.io/pods-in-kubernetes-the-smallest-deployable-units-of-computing-dab3bf1a2762?source=rss-54129ae83aaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/dab3bf1a2762</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Yogita Kothadiya]]></dc:creator>
            <pubDate>Thu, 23 Jun 2022 09:58:42 GMT</pubDate>
            <atom:updated>2022-06-24T04:35:36.061Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pods in Kubernetes — The Smallest Deployable Units of Computing</h3><h4>Understand the basics of pods including the pods’ lifecycle in Kubernetes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sQVLxqXnXKTV-NOOnk05jg.png" /><figcaption>Image created by the author on Canva</figcaption></figure><h3>What are Pods?</h3><p>Pods are the most <strong><em>dominant and deployable units of computing that can be created and managed in Kubernetes</em></strong>.</p><p>The Pod includes one or more containers, for example, Docker containers.</p><h4>Pods that run multiple containers:</h4><p>The containers share a Pod’s resources when a pod contains multiple containers. For instance, containers share network resources, storage resources, and container configurations.</p><ul><li><strong><em>Network Resources:</em></strong> A Pod will get its unique IP address. Containers inside a Pod will share the same namespace, including ports and IP address. Containers can communicate with each other via localhost.</li><li><strong><em>Storage Resources:</em></strong> Each Pod can have a shared storage volume attached. All containers in the Pod will share the same volume.</li></ul><h4>Pods with a single container:</h4><p>Using a pod with a single container is recommended as running more than one container in a Pod is considered an advanced use case. In simple terms, we generally wrap a single container in a Pod and Kubernetes manages Pods instead of directly working with containers.</p><p>Each Pod intends to run a single instance of our application. If we want to scale our application, the best practice is to scale it horizontally by creating a set of identical Pods, also known as replicas, to run each application instance. The deployment container should be used to create and manage Pods rather than creating Pods directly. However, we might sometimes interact directly with Pods when we want to debug, inspect or troubleshoot them.</p><p>In the Kubernetes cluster, pods run on nodes. Once we create a Pod, it remains on the node until one of the following is the case:</p><ul><li>Pod’s process is finished or,</li><li>Pod gets deleted or,</li><li>The Pod is evicted from the node because of a lack of resources or,</li><li>Node dies for any reason.</li></ul><h3>Pod’s Lifecycle</h3><p>Pods are temporary, or we can say it’s disposable entities. Therefore, they do not self-heal themselves.</p><p><em>Do not get confused with restarting a container in a Pod with restarting a Pod. If a Pod gets terminated for any reason, we cannot bring it back but can create an identical Pod. We cannot reschedule the same Pod on another node.</em></p><p>Pods pass through the defined lifecycle. For example, a Pod can be in one of the following phases:</p><ul><li><strong>Pending</strong> — A Pod will be in this phase when it gets created and accepted by the cluster but waiting for all of its containers to get ready and up running. This will also include the waiting time to get scheduled onto a node and the time spent downloading the container images.</li><li><strong>Running</strong> — When it’s been placed onto a Node and all its containers have been created. Moreover, when it’s one or more container is still getting started, running, or restarting.</li><li><strong>Succeeded</strong> — When it’s all containers have been successfully terminated and will not be restarted.</li><li><strong>Failed</strong> — When all of its containers are terminated, and at least one of them has failed.</li><li><strong>Unknown</strong> — When a Pod state cannot be derived. This could happen when having trouble communicating with a Node.</li></ul><h3>Creating Pods</h3><p>As mentioned before, <strong><em>it is not recommended to create a Pod directly; instead, we can use a deployment controller which creates and manages Pods for us</em></strong>. The following is an example of creating a Pod that contains a container running the image nginx:1.14.2.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/860095d4f4e06a616ea6e47e9bc9d9fc/href">https://medium.com/media/860095d4f4e06a616ea6e47e9bc9d9fc/href</a></iframe><p>kubectl apply -f demo-pod.yaml command will be used to deploy manifest files. <em>Remember, this is not the recommended way of deploying a Pod.</em> I just added the code for reference.</p><p>Pods request a specific amount of memory and CPU when it starts running. Then, Kubernetes uses this request data and schedule the Pod onto a Node that can fulfill the requirements. In short, Kubernetes will not schedule a Pod onto a Node that does not have enough required resources.</p><h3>Pods Termination</h3><p>When Pods’ processes are finished, Kubernetes gracefully terminate them. A default graceful termination duration of a Pod is 30 seconds which can be overridden by setting --grace-period flag with a required number of seconds.</p><p>The maximum graceful termination period is 10 minutes in case the cluster auto-scaler is used, and it will be one hour in case of node upgrades.</p><h3>Conclusion</h3><p>The main aim of this article was to help you understand the basics of Pods in Kubernetes. Thank you for reading! If you think you have learned something, please follow me.</p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a><em> and </em><a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>. Check out our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Community Discord</em></strong></a><em> and join our </em><a href="https://inplainenglish.pallet.com/talent/welcome"><strong><em>Talent Collective</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dab3bf1a2762" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/pods-in-kubernetes-the-smallest-deployable-units-of-computing-dab3bf1a2762">Pods in Kubernetes — The Smallest Deployable Units of Computing</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Manifest File in Kubernetes]]></title>
            <link>https://medium.com/@yogitakothadia/a-manifest-file-in-kubernetes-952183a508d4?source=rss-54129ae83aaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/952183a508d4</guid>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Yogita Kothadiya]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 06:53:58 GMT</pubDate>
            <atom:updated>2022-06-14T06:53:58.875Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn the basics of the manifest file in Kubernetes.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*MxoJlv0OAlQixPCZuIzR1g.png" /><figcaption>Image : <a href="https://kubernetes.io/">Kubernetes.io</a></figcaption></figure><p>A manifest file is a common name for any Kubernetes configuration file that defines the configuration of various Kubernetes components.</p><p>Here are some examples of manifest files in Kubernetes:</p><ol><li><strong>PodSpec file </strong>— contains Pod definitions</li><li><strong>Deployment file </strong>— contains deployment definition or configurations</li><li><strong>Network Policy file</strong> — contains network policies or rules</li></ol><p>We can use one of the following formats to write a manifest file:</p><ul><li><strong><em>YAML</em></strong></li><li><strong><em>JSON</em></strong></li></ul><p>Generally, people prefer to use the YAML format as it is easy to write and read.</p><p>The following is an example of a PodSpec file defining a Pod which consists of a container running the image nginx:1.14.2 using YAML format.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/860095d4f4e06a616ea6e47e9bc9d9fc/href">https://medium.com/media/860095d4f4e06a616ea6e47e9bc9d9fc/href</a></iframe><p>The same example with the JSON format:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc0fb0e965c9b0ee85081c1fdb5bbafd/href">https://medium.com/media/bc0fb0e965c9b0ee85081c1fdb5bbafd/href</a></iframe><p>As you can see, we have a simple example here: creating a Pod consisting of a single container running the image nginx:1.14.2. And it’s already looking complicated using JSON format. So imagine when we have more than one container or more writing manifest files for more complex K8s objects, it will get pretty messy. No wonder why YAML is so popular and replacing JSON so fast.</p><p>However, I would suggest using whatever format you are more comfortable with, regardless of its popularity.</p><p>kubectl apply -f demo-pod.yaml command will be used to deploy manifest files.</p><p>A resource configuration file is sometimes used to describe multiple resources in a manifest.</p><h3>Conclusion</h3><p>The aim of this article was to only help you understand what manifest files are in the Kubernetes. That’s ok if you haven’t understood everything from the example files as I will be explaining each line written in that example in a separate article about Pods.</p><p>Thank you for reading!! If you think you have learned something, please follow me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=952183a508d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Architecture]]></title>
            <link>https://aws.plainenglish.io/kubernetes-architecture-c93cb9c798d8?source=rss-54129ae83aaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/c93cb9c798d8</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Yogita Kothadiya]]></dc:creator>
            <pubDate>Mon, 13 Jun 2022 06:52:14 GMT</pubDate>
            <atom:updated>2022-06-16T03:53:22.999Z</atom:updated>
            <content:encoded><![CDATA[<h4>An overview of Kubernetes components</h4><p>In this article, we are going to go through various Kubernetes components. If you haven’t already, I would suggest quickly going through basic terminologies associated with Kubernetes.</p><p><a href="https://medium.com/@yogitakothadia/introduction-to-kubernetes-850907f54627">Introduction to Kubernetes</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVqphQ2aNKxqHPMPxjRzAA.png" /><figcaption>Image created by the author on Canva</figcaption></figure><h3>What is Kubernetes?</h3><p>Kubernetes is a portable, extensible, open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. <em>(Taken from </em><a href="https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/"><em>Kubernetes.io</em></a><em>)</em></p><h3>Kubernetes Architecture or Components</h3><p>When you deploy Kubernetes, you get a <strong>cluster</strong>.</p><p>As you can see in the architecture diagram, a Kubernetes cluster consists of a <strong>control plane and set of worker machines</strong>, called <strong>nodes</strong>. A node can be a <em>virtual machine or a physical server</em>. There should be at least one control plane node (formally called a master node) to manage the cluster and at least one worker node (or slave node). Both Control Plane Node and Worker Node have their own components.</p><h4>Control Plane Node’s Components:</h4><ul><li><em>Kube API Server</em></li><li><em>Kube Scheduler</em></li><li><em>etcd</em></li><li><em>Kube Controller Manager</em></li><li><em>Cloud Controller Manager</em></li></ul><h4>1. Kube API Server:</h4><p>The key component of the Control Plane is the Kube API Server. We can say it is the <strong>front-end of the Kubernetes Control Plane</strong>. It exposes an HTTP API that lets end users, various parts of our cluster, and external components communicate with each other.</p><p>The Kubernetes API lets us do queries and manipulate the state of different API objects in Kubernetes, it could be Pods, services, replication controllers and others.</p><p>The main implementation of a Kubernetes API server is<em> kube-apiserver</em>. A <em>kube-apiserver</em> is designed to scale horizontally, that is, it scales by deploying more instances. You can run several instances of <em>kube-apiserver</em> and balance traffic between those instances.</p><p>The interaction with the API Server can be done in three ways:</p><ol><li>UI</li><li>API</li><li>CLI Kubectl</li></ol><h4>2. Kube Scheduler</h4><p>Scheduler <strong>watches for newly created Pods</strong> that have no assigned nodes. It <em>selects a worker node for them to run on</em>.</p><h4>3. etcd</h4><p>etcd is <strong>a consistent and highly-available key-value store </strong>used as Kubernetes’ backing <em>store for all cluster data including cluster state, cluster configurations and others</em>.</p><p>We could replace etcd with other key-value stores like Zookeeper and Consul, however, etcd is the officially supported k/v store and the recommended by Kubernetes and production tested choice.</p><p>According to Kubernetes, if our Kubernetes cluster uses etcd as its backing store, make sure we have a backup plan for those data. All Kubernetes objects are stored on etcd. Periodically backing up the etcd cluster data is important to recover Kubernetes clusters under disaster scenarios, such as losing all control plane nodes.</p><h4><em>4. Kube Controller Manager</em></h4><p><em>A control loop that watches the shared state of the cluster through the apiserver and makes changes to move the current state back to the desired state.</em></p><p>Kubernetes comes with a set of built-in controllers which run under the kube-controller-manager, such as the <em>Job controller</em> and <em>Deployment controller</em>.</p><h4><em>5. Cloud Controller Manager</em></h4><p>The cloud controller manager <strong>lets us</strong> <strong>link our cluster to a specific cloud provider’s API</strong>, and separates out the components that interact with that cloud platform from components that only interact with our cluster.</p><p>The cloud-controller-manager only runs controllers that are specific to a specific cloud provider.</p><p>When running Kubernetes on our own premises, or in a learning environment inside our own machine (PC or Laptop), the cluster does not have a cloud controller manager.</p><h4>Worker Node’s Components:</h4><p><em>Node components run on each node.</em> Its job is to maintain running pods and provide the Kubernetes runtime environment.</p><ul><li><em>Kubelet</em></li><li><em>Kube Proxy</em></li><li><em>Container runtime</em></li><li><em>Containers &amp; Pods</em></li></ul><h4>1. Kubelet</h4><p>Kubelet is <strong>an agent installed on every node</strong>. <em>Its job is to make sure that the containers are running in a Pod.</em></p><p>We can provide a set of PodSpecs in various ways. Based on the container descriptions in those PodSpecs, kubelet ensures that containers are running and healthy. It doesn’t manage containers that were not created by Kubernetes.</p><h4>2. Kube Proxy</h4><p>Kube Proxy is <strong>a network proxy that runs on each node</strong>. It maintains network rules on nodes. These network rules allow network communication to our Pods from network sessions inside or outside of our cluster.</p><h4>3. Container runtime</h4><p>Container runtime, also called container engine, <strong>is a software component</strong>. <strong>Its job is to run the containers</strong>. In detail, container runtime is responsible for <strong><em>verifying and loading container images, monitoring system resources, isolating and allocating resources, and also does the management of container lifecycle</em>.</strong></p><p>To perform all these activities, container runtime uses standardized interfaces to coordinate the resources, including,</p><ul><li><strong>Container Storage Interface (CSI) </strong>manages how containers access storage equipment</li><li><strong>Container Networking Interface (CNI) </strong>states<strong> </strong>how containers communicate over a network</li></ul><p>A few examples of container runtimes are, <strong><em>containerd, CRI-O, Docker Engine, and Mirantis Container Runtime</em></strong><em>.</em></p><h4>4. Containers &amp; Pods</h4><p>Pods are the <strong>smallest unit in Kubernetes</strong>. <em>Pods abstract away the container layer so you can directly interact with the Kubernetes layer.</em></p><p>A Pod is intended to run one application in multiple containers. Examples, are DB Pod, Job Pod, Frontend App Pod, and backend API Pod. We can run multiple apps in the same Pod but those containers will be tightly coupled.</p><p>Every Pod gets its own private IP address. The container will run on different ports. Containers can communicate with each other via localhost.</p><p>Each Pod can have a shared storage volume attached. All containers in the Pod will share the same volume.</p><p>When the last remaining container dies or crashes in a Pod so does the Pod. When a new Pod is created to replace the dead or crashed one, the pod will have an IP address assigned. IP addresses are temporary for Pods, they do not by default persist.</p><p>There are other optional K8s objects mentioned in the K8s Architecture above, for example, Deployment, ReplicaSet, and others which I will explain in a separate article.</p><h3>Conclusion</h3><p>The main aim of this article is to help you understand the Kubernetes architecture components.</p><p>Thank you for reading! If you think you have learned something new today from my article, let me know in the comments section. And don’t forget to follow me!</p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a><em> and </em><a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>. Check out our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Community Discord</em></strong></a><em> and join our </em><a href="https://inplainenglish.pallet.com/talent/welcome"><strong><em>Talent Collective</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c93cb9c798d8" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/kubernetes-architecture-c93cb9c798d8">Kubernetes Architecture</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Kubernetes]]></title>
            <link>https://aws.plainenglish.io/introduction-to-kubernetes-850907f54627?source=rss-54129ae83aaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/850907f54627</guid>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-native]]></category>
            <dc:creator><![CDATA[Yogita Kothadiya]]></dc:creator>
            <pubDate>Thu, 02 Jun 2022 10:36:32 GMT</pubDate>
            <atom:updated>2022-06-15T09:37:27.562Z</atom:updated>
            <content:encoded><![CDATA[<h4>Quick Introduction of K8s, Containerization, Cloud Native, CNCF, and Linux Foundation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBpprhVFFF6Ma-S6RlGrxQ.png" /><figcaption>Image: <a href="https://kubernetes.io/">Kubernetes.io</a></figcaption></figure><p>Kubernetes, popularly known as K8s, is an open-source container orchestration (you can also say container management) system for automating the deployment, scaling, and management of containers. In simple terms, Kubernetes is a system to configure, deploy, manage, and monitor the largest-scale containerized applications. It eases the communication between multiple containers.</p><ul><li>Originally designed and developed by Google</li><li>Became open-sourced in 2014</li><li>Was donated to CNCF (Cloud Native Computing Foundation)</li><li>It’s currently maintained by CNCF</li><li>Also, known as K8s</li></ul><p>Let’s understand some terminologies,</p><h4>What is Cloud Native?</h4><p>Cloud native technologies empower organizations to build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds. Containers, service meshes, microservices, immutable infrastructure, and declarative APIs exemplify this approach.</p><h4>What is Cloud Native Computing Foundation?</h4><p>CNCF is a Linux Foundation project that was founded in 2015 to help advance container technology.</p><ul><li>Operates as an independent organisation from its parent organization</li><li>Has its own board members</li><li>Conference: KubeCon + CloudeNativeCon</li><li>Has its own certifications.</li></ul><h4>What is Linux Foundation?</h4><p>The Linux Foundation is a non-profit technology consortium founded in 2000 as a merger between Open Source Development Labs (OSDL) and Free Standards Group (FSG) to standardise Linux, support its growth, and prompt its commercial adoption. The Linux Foundation is the parent of CNCF.</p><h4>Why Containerization?</h4><p>In past, we used to use multiple Virtual Machines on a single machine to run multiple applications. However, VMs do not make the best use of space. Applications are not isolated which could cause config conflicts, security problems, or resource hogging. Containers allow you to run multiple apps which are virtually isolated from each other.</p><p>The other main difference between containers and virtual machines is that virtual machines virtualize an entire machine down to the hardware layers. That means you have to pre-allocate your hardware to VMs. Even if your VMs don’t use full resources, you won’t be able to allocate those remaining resources to others.</p><p>On the other hand, Containers only virtualize software layers above the operating system level. Hence, it will use your machine&#39;s resources as they need them and release them when they are done using them. Refer to the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kEs808dw_nFHhLt1G3ophw.png" /><figcaption>Image source: <a href="https://www.atlassian.com/microservices/cloud-computing/containers-vs-vms#:~:text=The%20key%20differentiator%20between%20containers,above%20the%20operating%20system%20level.">atlassian.com</a></figcaption></figure><h3>Addition Resource</h3><p>If you already have some experience working with Kubernetes, then I would suggest reading this article regarding <strong><em>15 Kubernetes Best Practices Every Developer Should Know</em></strong>.</p><p><a href="https://spacelift.io/blog/kubernetes-best-practices">17 Kubernetes Best Practices Every Developer Should Know</a></p><h3>Conclusion</h3><p>The main aim of this article was to get familiar with the basic terminologies such as Kubernetes, CNCF, Cloud Native, Linux Foundation, and Containerization vs VMs.</p><p>Thank you for reading! If you think you have learned something, please follow me as I am planning to write a series of Kubernetes articles. Stay tuned!</p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a><em> and </em><a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>. Check out our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Community Discord</em></strong></a><em> and join our </em><a href="https://inplainenglish.pallet.com/talent/welcome"><strong><em>Talent Collective</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=850907f54627" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/introduction-to-kubernetes-850907f54627">Introduction to Kubernetes</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>