<?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 Akshayaa on Medium]]></title>
        <description><![CDATA[Stories by Akshayaa on Medium]]></description>
        <link>https://medium.com/@akshayaa1906?source=rss-ccd98034867b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yVIZvpW2f6Lj5oMq</url>
            <title>Stories by Akshayaa on Medium</title>
            <link>https://medium.com/@akshayaa1906?source=rss-ccd98034867b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:46:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akshayaa1906/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[KUBERNETES BASICS]]></title>
            <link>https://medium.com/@akshayaa1906/kubernetes-basics-4d43c4d1ea02?source=rss-ccd98034867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d43c4d1ea02</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[services]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <dc:creator><![CDATA[Akshayaa]]></dc:creator>
            <pubDate>Sun, 07 Apr 2024 11:01:56 GMT</pubDate>
            <atom:updated>2024-04-07T11:01:56.197Z</atom:updated>
            <content:encoded><![CDATA[<p>Kubernetes is also known as k80s.Its build by Google.Its one of the best container orchestration technology.</p><p>You may have a question about what is container orchestration?</p><p>Its just nothing but ‘<em>Automating the Lifecycle of the Container</em>’. Just remember this for now.Will talk about each of these separately.</p><p>I want you to remember the word <strong>DOCKER</strong>.Its also a container technology.</p><p>Okay lets start with CONTAINERS first!</p><p>Why we need containers whats it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_--h2pYmMysWpbzJ6L9DrA.png" /><figcaption>IMG 1</figcaption></figure><p>Say that you have Webserver ,DB ,some messaging site.For this we have to build an application which is compactible for all of these.</p><p>What are the issue in setting up these in an application?</p><ol><li>Certain versions of these services are not compactible with the OS.</li><li>We have to check the compactibility b/w the libraries and dependencies.</li><li>It will take long time to setup these.</li><li>We must have a different dev / test / prod environments.Each environment may have different configurations and requirements.</li></ol><p>Here is where <strong>DOCKER</strong> comes into picture!</p><p>Docker has the ability to run all the services in the separate containers with its own dependencies but with separate container and environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*54pkqN697dtaiB7NjZyeSw.png" /><figcaption>IMG-2</figcaption></figure><p>See this is how containers will be having its separate processors , network and mounts.But they all will be sharing the same Operating System.</p><p>Ok!But,How these containers are created?</p><p>Its created using <strong>Docker Imag</strong>e,Its a VM Template.Its used to create one or more containers.</p><p>In our application we will have a file called Dockerfile to create these images.We can just deploy our application using that image.</p><p>Now we got to know about the containers.We will learn about what is <strong>ORCHESTRATION</strong> now,</p><p>Its nothing but Automatic scale up and scale down based on the load.Automatically deploying and managing the containers.</p><p>This is where ‘KUBERNETES’ comes into picture.</p><p>KUBERNETES is a Orchestration Technology.Its now supported by all cloud public servers like AWS,Azure.</p><p><strong>ARCHITECTURE OF KUBERNETES</strong></p><p>Node : Worker Machine.This is where containers is launched in kubernetes.</p><p>Cluster: C<a href="https://www.armosec.io/blog/kubernetes-cluster-architecture-best-practices/">ontain</a> one master node and any number of worker nodes, and can be either physical or virtual machines. The master node is responsible for controlling the state of the cluster and is the origin of task assignments. Worker nodes manage the components that run the applications. Namespaces allow operators to organize multiple clusters into one physical cluster and divide resources amongst different teams.</p><p>If we are installing kuberenetes means we are installing the following components,</p><p><strong>API Server —</strong> Exposes a REST interface to Kubernetes resources, essentially acting as the front end of the Kubernetes.</p><p><strong>etcd — </strong>Consistent and highly-available key value store used as Kubernetes backing store for all cluster data.</p><p><strong>Scheduler- </strong>Distributing work across multiple containers.</p><p><strong>Controller</strong> — Brain behind the orchestration.Make decision regarding the auto scaling.</p><p><strong>Container Runtime</strong> — Used to Run containers</p><p><strong>kubelet</strong> — Agent that runs on each node to ensure pods are running properly, including communications between the Master and nodes.</p><p><strong>Kube-proxy</strong> — This is a network proxy that runs inside each node, managing the networking rules within the node (between its pods) and across the entire Kubernetes cluster.</p><p>A Kubernetes node is either a virtual or physical machine that one or more Kubernetes pods run on. It is a worker machine that contains the necessary services to run pods, including the CPU and memory resources they need to run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O11DR12aOSS3M4tCNPZpAQ.png" /><figcaption>IMG-3</figcaption></figure><p><strong>PODS</strong></p><p>Containers are encapsulated in Kubernetes objects as ‘PODS’</p><p>A pod is a single instance of an application.</p><p>To scale we create new pods with new instance under same node or different node.</p><p><strong>YAML — Yet Another Markup Language</strong></p><p>YAML is a human-readable data serialization language that is often used for writing configuration files.</p><p>The Dockerfile is used to build images while the docker-compose. yaml file is used to run images. The Dockerfile uses the docker build command, while the docker-compose. yaml file uses the docker-compose up command.</p><p>Definition file must contain apiversion,kind,metadata,spec.</p><p>Eg :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GNFO98stoGbSLtCTky3dnw.png" /><figcaption>IMG-4</figcaption></figure><p><strong>Commands</strong></p><p>kubectl — help</p><p>kubectl run Hynix — image=ngnix — to create pod with img</p><p>kubectl describe pod &lt;podname&gt; — describe pod</p><p>kubectl delete pod &lt;podname&gt; — delete pod</p><p>kubectl get pods -o wide — to get info abt node</p><p>kubectl run &lt;podname&gt; — image=&lt;imagename&gt; — dry-run=client-o yaml &gt; &lt;file name .yaml&gt;- to create pod using pod definition.yaml</p><p>kubectl create -f &lt;filename.yaml&gt;(to create )</p><p>kubectl apply -f &lt;filename.yaml&gt;(to apply changes)</p><p>kubectl create -f replicationcontroller.yaml — to create replica sets</p><p>kubectl get &lt;name of kind&gt; — to know the status of replication controller</p><p>kubectl replace -f &lt;filename.yaml&gt; — to scale up replica set</p><p>kubectl scale — replicas=6 -f &lt;filename.yaml&gt; — to scale up replica set</p><p>kubectl get all — to get the deployments,pod,replica sets.</p><p>kubectl create deployment — help</p><p>kubectl rollout status &lt;deployment name&gt; — to find out rollout status</p><p>kubectl rollout undo &lt;deployment name&gt; — to rollout prev versions</p><p><strong>Replication Controller</strong></p><p>Say if you are running only pod and for some reason its crashed.This is where replication controller is helpful it helps us to create one or more pod with same instance.</p><p>It helps in load balancing and scaling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9r23fVcABYx7bQ4ClEEQQ.png" /><figcaption>IMG-5</figcaption></figure><p>Here for eg I am saving the above yaml file as replicationcontroller.yaml.</p><p>kubectl create -f replicationcontroller.yaml</p><p>kubectl get &lt;name of kind&gt; — to know the status of replication controller</p><p><strong>Replica Set</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xm2QxLqK38h7uSj7jay_0g.png" /><figcaption>IMG-6</figcaption></figure><p>The major difference between the replicacontrollers and replicaset is,</p><ol><li>apiversions.</li><li>selectors</li></ol><p><strong>Labels</strong></p><p>Say in a single cluster we are having so many pods.We need to monitor them for diff parts.Thats were Label is being used.We can easily identify them using the label name we have given while defining the pod.</p><p><strong>How to scale the replicas</strong></p><p>1)We can change in definition file and run kubectl replace -f &lt;filename.yaml&gt;</p><p>2)kubectl scale --replicas=6 -f &lt;filename.yaml&gt;</p><p><strong>Rollout and versioning</strong></p><p>When you first create a deployment it triggers rollout . A new rollout creates new deployment.</p><p><strong>Deployment Strategy</strong></p><p>RECREATE — Deleting all the older versions and implementing the newer version.</p><p>ROLLBACK — Deleting one older version and implementing newer version of it without deleting all at once.</p><p><strong>Services in kubernetes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iqr1MBqEtxbJ_GjellKTwA.jpeg" /><figcaption>IMG-7</figcaption></figure><p>NodePort — Port on the node .Here 30008 is the node port.It can range from 30000–30728.When we have more than one instance also the node port remains the same only the IP’s vary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*9wr6bKvDD3SxKJ_9FpTkBg.png" /><figcaption>IMG-8</figcaption></figure><p>cluster IP — IP on the service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*80IcA2We-h7H2BYuILpRZw.jpeg" /><figcaption>IMG-9</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*QIlFoZAe727EFmzeDcmYSw.png" /><figcaption>IMG-10</figcaption></figure><p>Here we can group all the pods into one for easier accessibility.Same way as we grouped redis and back-end services.</p><p><a href="https://medium.com/@prateekbansalind/demystifying-kubernetes-service-types-clusterip-nodeport-and-loadbalancer-88fb0c065ce9">https://medium.com/@prateekbansalind/demystifying-kubernetes-service-types-clusterip-nodeport-and-loadbalancer-88fb0c065ce9</a> — you can refer this to get a clear idea on this topic.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d43c4d1ea02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2023!- THIS TOO SHALL PASS!]]></title>
            <link>https://medium.com/@akshayaa1906/2023-this-too-shall-pass-01e2d86a1e66?source=rss-ccd98034867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/01e2d86a1e66</guid>
            <dc:creator><![CDATA[Akshayaa]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 16:24:29 GMT</pubDate>
            <atom:updated>2023-11-25T16:24:29.119Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*GKbvkmLDMwEHSPE8h9BLZw.jpeg" /></figure><p><em>“Sometimes Life gets a little harder to make us know ourselves more,to know about the realities of life,hard truths,to be patient,to accept things,to be self controlled,to know the love of people around us”</em></p><p>2023 was that year for me.From Being a girl who has not faced much difficulties and who has been exposed to only positive side of life.</p><p>I am not going to vent about my problems here.</p><p>Then you may think what am I going to tell….Right?</p><p>I am a Hope.</p><p>When you are feeling low and down when you rant about it to a friend or someone close if they share that they too have felt the same before and tell you how they overcame that.It will give you courage and hope to face it.</p><p>I am that HOPE!</p><p>Yes,Life gets miserable sometimes,It may seem difficult.You feel like you have no purpose to wake up each day.Some thoughts may be disturbing you each passing day and You will be waiting for day when you will be finally HAPPY.You cannot understand whats happening within you.You may feel restless.</p><p>Yes I had all of this.I used to wake up each day panicking.I was waiting each day to get over.I was not interested do anything.I had fear of being unproductive.Felt like people of my age were doing so good in their life and I was just thinking of passing each day without fear.</p><p>Its so unfair right….when suddenly everything changes!</p><p>But You know what….I overcame it….YES! I OVERCAME IT.</p><p>One thing I learnt is,</p><p><em>“Life has its way of teaching things to us,Life will give chance to everyone to become better person than person they already are!”</em></p><p>Never Forget WHO YOU REALLY ARE.Its the only way to shut all the things thats happening around you or happening within you.Give it sometime,Share it with someone close to you on how you are really feeling.Remember everyone goes through this.You may think I am not going to panic tomorrow and go to sleep.But Next Day you may wake up panicking.Its OKAY!I will say this again.ITS OKAY!</p><p>Question this yourself often “Whether whatever I am doing will help me in coming years.Will I be proud of What I am doing now in coming years or will I regret it ?”</p><p>If you think You will regret and You are wasting your time.Then there is your ANSWER.</p><p>Everything happening around us is in our control.Our way of reacting to our thoughts and outside world’s opinion plays a major role for our well-being.World offers you both extremes(Good and Bad).Its you who wants to decide what you want to be.</p><p>Dont Panic for “What if this bad thing happens to me?”.Panic for “What If this good thing didnt happen to me because I was wasting my energy thinking about negative result”</p><p>Whatever happens may pass.But the time its taking will create a huge impact.Sit and analyze.Recover Quickly!</p><p>I am a hope that this too shall pass.You will feel a sense of relief and real purpose after all this.Trust me It will be the best feeling.You will feel like you had rebirth.You will see the world differently after this.You will help people to overcome this.You will know how much people around you cares for you.You will be grateful for that.You will see the “NEW YOU”.Trust me “IT WILL BE SO GOOD”!</p><p>IF I CAN OVERCOME THIS ….. YOU TOO CAN ….RIGHT?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01e2d86a1e66" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>