<?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 Aathith Rajendran | DevOps__Guy on Medium]]></title>
        <description><![CDATA[Stories by Aathith Rajendran | DevOps__Guy on Medium]]></description>
        <link>https://medium.com/@aathith2?source=rss-b2a83f7784e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*aVJQPtfx1bjyMcoybr-7Vw.png</url>
            <title>Stories by Aathith Rajendran | DevOps__Guy on Medium</title>
            <link>https://medium.com/@aathith2?source=rss-b2a83f7784e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:37:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aathith2/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[Understanding the Kubernetes Probes]]></title>
            <link>https://medium.com/@aathith2/understanding-the-kubernetes-probes-2ac9a6cbd30e?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ac9a6cbd30e</guid>
            <category><![CDATA[health]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Tue, 10 Dec 2024 03:32:16 GMT</pubDate>
            <atom:updated>2024-12-10T03:32:16.540Z</atom:updated>
            <content:encoded><![CDATA[<p>A simple explanation of the different Probes and their combination in Kubernetes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yRc9YqsBalbRD_2-" /><figcaption>Photo by <a href="https://unsplash.com/@marceloleal80?utm_source=medium&amp;utm_medium=referral">Marcelo Leal</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Ha ha hallo! If you’re diving into the world of Kubernetes, you can not have missed something called <strong>probes</strong>. They might sound confusing at times, but don’t worry! In this guide, we’ll break down what probes are, why they matter, and how you can use them to keep your applications running smoothly. (This blog focuses more on the Startup Probe)</p><h4>What Are Probes?</h4><p>Imagine you’re a doctor checking on patients in a hospital. You want to make sure everyone is healthy and getting the care they need. In the world of Kubernetes, probes play a similar role for your applications. They regularly check the health of your containers (the lightweight environments where your apps run) and help Kubernetes decide what to do if something goes wrong.</p><p>There are three main types of probes: <strong>liveness, readiness, and startup</strong>. Let’s explore each one!</p><h4>1. Liveness Probe: Keeping Your App Alive</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4o3mOgDHX7V3HAfK" /><figcaption>Photo by <a href="https://unsplash.com/@joshua_chehov?utm_source=medium&amp;utm_medium=referral">Joshua Chehov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Think of the liveness probe as a life support system for your application. It checks whether your app is still alive and functioning correctly by using various protocols(HTTP, HTTPS, cmds, gRPC). If it finds that something’s gone wrong (like if your app is stuck and not responding to the calls), Kubernetes will automatically restart the container to get things back on track.</p><p>Let’s say you have a Nginx web server running in a container. You can set up a liveness probe like this:</p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br> name: liveness-probe-example<br>spec:<br> containers:<br> — name: nginx<br>   image: nginx:1.21.6<br>   livenessProbe:<br>     httpGet:<br>       path: /healthz<br>       port: 80<br>     initialDelaySeconds: 5<br>     periodSeconds: 10</pre><p>In this setup, Kubernetes will check the `/healthz` endpoint every 10 seconds after waiting for an initial 5 seconds. If it detects any issues, it restarts the container — like giving your app a little nudge to wake it up!</p><p><strong>2. Readiness Probe: Is Your App Ready for Traffic?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GdEF583tCqRGi-1b" /><figcaption>Photo by <a href="https://unsplash.com/@dmacros?utm_source=medium&amp;utm_medium=referral">Diego Vitali</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Now, let’s talk about the readiness probe. This one checks if your application is ready to handle incoming traffic. Imagine you’re opening a new restaurant; you wouldn’t want customers walking in before everything is set up, right? The readiness probe ensures that traffic is only sent to fully prepared containers.</p><p>Using our Nginx example again, here’s how you’d set up a readiness probe:</p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br> name: readiness-probe-example<br>spec:<br> containers:<br> — name: nginx<br>   image: nginx:1.21.6<br>   readinessProbe:<br>     httpGet:<br>       path: /ready<br>       port: 80<br>     initialDelaySeconds: 5<br>     periodSeconds: 10</pre><p>Kubernetes will check the `/ready` endpoint every 10 seconds after an initial delay of 5 seconds. If it finds that the app isn’t ready, it won’t send any traffic there — keeping your users happy and avoiding downtime.</p><p><strong>3. Startup Probe: Giving Your App Time to Start</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E7zTGtjf5hv4waXo" /><figcaption>Photo by <a href="https://unsplash.com/@heftiba?utm_source=medium&amp;utm_medium=referral">Toa Heftiba</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Finally, we have the Startup Probe. Some applications take longer or shorter to start(think of those fancy EV Cars vs the massive Ship Engines). The startup probe runs first to check whether the app is responding to the check or not. In this probe, we’ll configure a higher failure threshold than the other two probes which means we are just giving more time for the app to respond. Once the app responds to the check be it at the 10th call or at the 1st call K8s moves on to the Liveness and Readiness probes. That means immediately and only after the Startup Probe succeeds, the Livenes and Readiness probes kick in according to their specified delays.</p><p>Here’s how you can set up a startup probe:</p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br> name: startup-probe-example<br>spec:<br> containers:<br> — name: nginx<br>   image: nginx:1.21.6<br>   startupProbe:<br>     httpGet:<br>       path: /start<br>       port: 80<br>     periodSeconds: 10<br>     failureThreshold: 30  # Allows for up to 300 seconds of startup time (30 * 10)</pre><p>In this case, Kubernetes will check the `/start` endpoint every 10 seconds up to 30 times. If succeed it starts checking the liveness and readiness probes.</p><h4>Are you not confused with the existence of the Startup Probe?</h4><p>The <em>Startup probe</em> is for probes same as the <em>initContainers</em> is for containers.</p><p>The containers will only start if the <em>initContainers</em> succeed.<br>Similarly, the Startup probe will check the health and only if it succeeds, the other probes will start the Checks.</p><p>Why can’t we just use the initial delay in Liveness/Readiness Probes? We can but the <strong><em>Startup Probe is more flexible</em></strong> and you don’t have to keep updating your <em>initialDelay</em> based on your app’s startup time, just set up a <em>failureThreshold</em> such as 30 in the Startup Probe and it will take care of it. If your app started in 10secs, your Probe will move on to the Liveness/Readiness instead of waiting for the whole initialDelay time mentioned in the config. If your app is not responding even after 30 tries(with periodSeconds: 10), your Startup Probe will mark the pod as stuck and the pod will get restarted.</p><p>You can use all three probes together in one pod definition to cover all bases:</p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br> name: combined-probe-example<br>spec:<br> containers:<br> — name: nginx<br>   image: nginx:1.21.6<br>   startupProbe:<br>     httpGet:<br>       path: /start<br>       port: 80<br>     periodSeconds: 10 <br>   livenessProbe:<br>     httpGet:<br>       path: /healthz <br>       port: 80 <br>     periodSeconds: 20 <br>   readinessProbe:<br>     httpGet:<br>       path: /ready <br>       port: 80 <br>     periodSeconds: 10</pre><p>This way, Kubernetes knows exactly when to check for health and readiness at different stages of your application’s lifecycle.</p><h4>Fun Exercises to Try</h4><p><strong>Add Both the `initialDelaySeconds` and `Startup Probe`:</strong> See whether the <em>initialDelaySeconds</em> is adding more delay on top of the Startup Probe or the pod is starting immediately after the Startup Probe is completed</p><h4>Wrapping Up</h4><p>Kubernetes probes are essential tools that help keep your applications healthy and responsive in production environments. By using liveness, readiness, and startup probes wisely, you can ensure that your services remain resilient against failures while providing a seamless experience for users.</p><h4>References</h4><p>- [Kubernetes Probes Explained](<a href="https://semaphoreci.com/blog/kubernetes-probes">https://semaphoreci.com/blog/kubernetes-probes</a>) <br>- [Understanding Readiness Probes](<a href="https://kodekloud.com/blog/kubernetes-readiness-probe/">https://kodekloud.com/blog/kubernetes-readiness-probe/</a>) <br>- [Best Practices for Liveness Probes](<a href="https://www.fairwinds.com/blog/a-guide-to-understanding-kubernetes-liveness-probes-best-practices">https://www.fairwinds.com/blog/a-guide-to-understanding-kubernetes-liveness-probes-best-practices</a>) <br>- [A Guide to Kubernetes Probes](<a href="https://kubeops.net/blog/kubernetes-probes">https://kubeops.net/blog/kubernetes-probes</a>) <br>- [Practical Guide to Kubernetes Probes](<a href="https://www.civo.com/learn/practical-guide-to-the-kubernetes-probes">https://www.civo.com/learn/practical-guide-to-the-kubernetes-probes</a>) <br>- [Configuring Liveness and Readiness Probes](<a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/?120e38f1_page=4&amp;8a8870c5_page=5&amp;e69ebb3a_page=3">https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/?120e38f1_page=4&amp;8a8870c5_page=5&amp;e69ebb3a_page=3</a>) <br>- [Complete Guide to Liveness Probes](<a href="https://www.qovery.com/blog/kubernetes-liveness-probes-a-complete-guide/">https://www.qovery.com/blog/kubernetes-liveness-probes-a-complete-guide/</a>) <br>- [Kubernetes Probes Documentation](<a href="https://kubernetes.io/docs/concepts/configuration/liveness-readiness-startup-probes/">https://kubernetes.io/docs/concepts/configuration/liveness-readiness-startup-probes/</a>) <br>- [Practical Guide on Readiness Probes](<a href="https://komodor.com/learn/kubernetes-readiness-probes-a-practical-guide/">https://komodor.com/learn/kubernetes-readiness-probes-a-practical-guide/</a>)</p><p>Contact me 📱 any time on LinkedIn 👇🏻<br><a href="https://www.linkedin.com/in/aathith-rajendran">https://linkedin.com/in/aathith-rajendran</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ac9a6cbd30e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Two Sad Stories!]]></title>
            <link>https://medium.com/@aathith2/two-sad-stories-ef9dd0ad7f56?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef9dd0ad7f56</guid>
            <category><![CDATA[miscellaneous]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Thu, 05 Sep 2024 19:34:29 GMT</pubDate>
            <atom:updated>2024-09-05T19:34:29.794Z</atom:updated>
            <content:encoded><![CDATA[<p>Swimming in Water is easy but not in Swamps.</p><p>The whole world is focusing on money as it is the only thing that should matter when living!</p><p>Even if someone creates something that doesn’t focus on money they will either end up as nothing or they will turn into the rest of the world as just another paper in a notebook.</p><p>YouTube’s core reward system is based on the views a page gets.<br>Instagram posts reach more only if that post makes people spend more time on it.</p><p>Not just YouTube and Instagram, all the other social media sites, blogs, and newspapers are all designed to reward people who can make other people spend as much time on their platforms(like an MLM Scheme). This leads to Hooks, Click baits, and Misleading Titles just to gain views.</p><p>This reward system is making people make other people waste their time in this endless loop.</p><p>Just like how the world is focusing on money, these sites focus on keeping people hooked.</p><p>People should not just focus on money!<br>Social media should not just focus on Views and Engagement!</p><p>Take life in the village, for example; money may be less, but the people live their life to its fullest through all the ups and downs. Now compare it to life in a city(like Bengaluru) where the only focus is money. There is little to nothing else that matters in these cities other than Money, and the sad part is only people with money are getting better treatment, which makes other people end up focusing on making money.</p><p>These social media, newspapers and everyone should reconsider the reward system.</p><p>These two things with one focus is like a person who is not blind. They usually don’t care about the other senses as long it is working just fine. But on the other hand, a blind person values all of his other senses!</p><p>Just like that when there are so many aspects of life which can bring value to our life, why should we focus only on Money which is not even real?</p><p>And these social media companies are hiding behind ‘making the world a better place’, but they are focusing only better on hooking down the people to their sites. Why don’t they make this world a better place for real?</p><p>These are just my random thoughts and not fully formed writing which hooks the people down till here coz I’m not to focus only on making money!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef9dd0ad7f56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Super-User-Like Permission on One Database in Postgresql]]></title>
            <link>https://medium.com/@aathith2/create-super-user-like-permission-on-one-database-in-postgresql-9ffcdb481ac2?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ffcdb481ac2</guid>
            <category><![CDATA[create-user]]></category>
            <category><![CDATA[psql]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[commands]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Fri, 24 Feb 2023 08:55:17 GMT</pubDate>
            <atom:updated>2023-02-24T08:55:17.620Z</atom:updated>
            <content:encoded><![CDATA[<h3>Create Super-User-Like Permission For a User in Postgres Database</h3><p>You don’t want a super user but want powers like that user only on one db?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SSwBAyk4qE43IJqR" /><figcaption>Photo by <a href="https://unsplash.com/es/@raphi_rawr?utm_source=medium&amp;utm_medium=referral">Raphael Renter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ol><li>Connect to your PostgreSQL server with psql or PGAdmin.</li><li>Create a new user:<br>`CREATE USER username WITH PASSWORD ‘password’;`<br>Do not forget to replace username with your user name, and password with a different one.</li><li>Connect to the specific database you want to grant privileges for:<br>`\c database_name`</li><li>Grant the Privileges to that `new user` on that specific database:<br>```<br>GRANT CONNECT ON DATABASE database_name TO username;<br>GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO username;<br>GRANT USAGE, SELECT, UPDATE ON ALL SEQUENCES IN SCHEMA public TO username;<br>```</li></ol><p>Note:<br>The public schema is the default schema in PostgreSQL. If your database has a different default schema, replace publicwith the name of your schema in the above commands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ffcdb481ac2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Shortcuts and Tips that save me a ton of time.]]></title>
            <link>https://medium.com/@aathith2/my-version-of-linux-shortcuts-and-tips-bcd5e8d720ff?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcd5e8d720ff</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[shortcuts]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Sat, 06 Aug 2022 07:08:04 GMT</pubDate>
            <atom:updated>2024-07-15T17:43:54.897Z</atom:updated>
            <content:encoded><![CDATA[<p>Shortcuts and commands I love and use the most daily</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0Qhg9vRWqC-zO1Oh" /><figcaption>Photo by <a href="https://unsplash.com/@dkfra19?utm_source=medium&amp;utm_medium=referral">Dimitri Karastelev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Cut-Copy-Paste</h4><p>ctrl+w — cut one word left<br>ctrl+u — cut all words left<br>alt+d — cut one word right<br>ctrl+k — cut all words right</p><p>Ok, you know how to cut. But, how to paste? 🤔<br>ctrl+y will paste whatever you have cut with the above commands.</p><h4>Log out</h4><p>`ctrl+d`<br>This combo will log you out from the server and also from cli tools like MySQL, Psql, Telnet, etc. In simple words, if you log into something this will log out from that something.</p><h4>Grep</h4><p>`cat somefilename.log | grep “expressiontofind\|$”`<br><strong>\|$ </strong>— This will only highlight the matching expression in `somefilename.log` instead of filtering.</p><h4><strong>Nano</strong></h4><p>ctr+w — to search for a word<br>ctrl+w+r — to search for a phrase to replace<br>You can also use ctrl+\ to find and replace<br>alt+-(minus) — to scroll down without moving the cursor position on the page<br>alt++(plus) — to scroll up without moving the cursor position on the page<br>ctrl+space — to move one word front<br>esc+space — to move one word back<br>esc+3 — to comment out the selected lines</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcd5e8d720ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Copy to AWS S3 from the remote server using SCP from middle server]]></title>
            <link>https://medium.com/@aathith2/copy-to-aws-s3-from-the-remote-server-using-scp-from-middle-server-b723b72ba6bd?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b723b72ba6bd</guid>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[scp]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Mon, 19 Oct 2020 15:33:12 GMT</pubDate>
            <atom:updated>2024-07-15T17:36:33.372Z</atom:updated>
            <content:encoded><![CDATA[<h3>Copy to AWS S3 from the remote server using SCP using the middle server</h3><p><em>Remote server-&gt;scp in middle server-&gt;s3 bucket</em></p><p>This post will show you how to copy files directly from the remote server to S3 without copying them locally first.</p><p>For easy understanding, I’m going to rename,<br><strong>Remote Server </strong>as<strong> Source,<br>Bastion Host(Middle Server) </strong>as<strong> Middle,<br>AWS S3 </strong>as<strong> Destination.</strong></p><p><strong>Before:</strong></p><p><em>copy from Source-&gt;Middle then Middle-&gt; Destination.</em></p><p>You may think, why does someone want to copy like this? The reason may be because <strong>Source</strong> is in a private network and can only be accessed using <strong>Middle</strong>(Bastion host, jump-box, etc.) or the servers in the same private network. It is best practice to use DB in a setup like this.</p><p><strong>Now:</strong></p><p><em>copy from Source-&gt;Destination by running SCP in the Middle</em></p><p>Now we are going to use <strong>S</strong>ecure <strong>C</strong>opy <strong>P</strong>rotocol to copy files directly from the <em>Remote server</em> <em>-&gt; Destination</em></p><p>scp user@ip-of-source-server:/path/to/file &gt;(aws s3 cp - s3://s3uri/)</p><p>This cmd is just like normal SCP to copy from remote to local with a little change. <br>Here - represents the stdin that is passed to aws cli using bash&#39;s process substitution &lt;()and this -will be replaced with the file mentioned in /path/to/file source part of the SCP command.</p><p>To change the file name at the time of copying, add the file name to the S3 URI like this:</p><p>scp user@ip-of-A:/path/to/file &gt;(aws s3 cp - s3://s3uri/<strong>filename</strong>)</p><p>replace the filename with your desired name.</p><p>Great!!! Now you know how to copy files from a private server to S3 through a Bastion Host.</p><p>Contact me 📱 any time on any of the social media inside this link 👇🏻<br>Let’s stay connected on <a href="https://aathith.github.io/connect/">https://aathith.github.io/connect/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b723b72ba6bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install ‘locate Command’ to Find Files in Linux]]></title>
            <link>https://medium.com/@aathith2/install-locate-command-to-find-files-in-linux-130dfb1e698e?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/130dfb1e698e</guid>
            <category><![CDATA[centos]]></category>
            <category><![CDATA[locate]]></category>
            <category><![CDATA[linux-tool]]></category>
            <category><![CDATA[devopsguy]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Sat, 17 Oct 2020 10:09:50 GMT</pubDate>
            <atom:updated>2020-10-19T14:19:30.497Z</atom:updated>
            <content:encoded><![CDATA[<p>You may have used the builtin ‘find’. This post is here to show you how to install one of its best alternative, the ‘locate’ command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iFElhPMHjwSba1l_" /><figcaption>Photo by <a href="https://unsplash.com/@amartino20?utm_source=medium&amp;utm_medium=referral">Anthony Martino</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The <strong>locate</strong> command reads one or more databases prepared by <strong>updatedb</strong> and writes file names matching at least one of the patterns to standard output, one per line.</p><p><strong>mlocate</strong> package will provide the <strong>locate</strong> and <strong>updatedb</strong> commands.<br>Use the <a href="https://www.tecmint.com/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement/">YUM</a> package manager to install <strong>mlocate</strong>, as shown.</p><pre>[root@host ~]# sudo yum install mlocate</pre><p><strong>mlocate</strong> also installs a cron job that will run daily to update search databases at: /etc/cron.daily/mlocate.cron</p><p>After installing <strong>mlocate</strong>, you need to update the <strong>updatedb</strong>, which is used by <strong>locate</strong> command. Otherwise, you will get an error.</p><pre>[root@host ~]# locate nginx<br>locate: can not stat () `/var/lib/mlocate/mlocate.db&#39;: No such file or directory</pre><p>The default database storage location is <strong>/var/lib/mlocate/mlocate.db</strong>.</p><pre>[root@host ~]# sudo updatedb</pre><p>Once the database is updated, now try to run the <strong>locate</strong> command, which should work this time around.</p><pre>[root@host ~]# locate nginx</pre><p>that&#39;s it for the post</p><p><strong>some `locate` commands:</strong></p><pre>Find the exact match to the pattern you enter<br>[root@host ~]# locate -b &#39;\nginx.conf&#39;</pre><pre>Display number of entries<br>[root@host ~]# locate -c [text]*</pre><pre>Ignore Case sensitive outputs<br>[root@host ~]# locate -i *text.txt*</pre><p>Do check out my other <a href="https://medium.com/@aathith2">POSTS</a> and you can Contact me 📱 any time on any of the social media inside this link 👇🏻<br>Let’s stay connected on <a href="https://aathith.github.io/connect">Social Media</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=130dfb1e698e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to become a Certified Kubernetes Administrator]]></title>
            <link>https://medium.com/@aathith2/how-to-become-a-certified-kubernetes-administrator-bbb85bed9558?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbb85bed9558</guid>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[cka]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Fri, 07 Aug 2020 05:00:08 GMT</pubDate>
            <atom:updated>2024-07-15T17:44:38.135Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to become a Certified Kubernetes Administrator (in 15 days)</h3><p>This post Includes Useful links, How I prepared and Tips during the exam.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMaMUxtT4GNIjf_RgQ2c6A.png" /><figcaption>AATHITH RAJENDRAN’s CKA certificate</figcaption></figure><blockquote>Connect me, on <a href="https://www.linkedin.com/in/aathith-rajendran/">LinkedIn</a>.</blockquote><p>Many of you may have heard that CKA is one of the toughest exams to crack. That is not true. Not even close to true. This exam focuses on your ability to perform on a practical level within a given time.</p><p>With clear planning and practice, you can clear the exam saying “CKA is easy peasy lemon squeezy”(I have completed my exam in 2hr15mins, could have completed even before that).</p><p>I have been working on k8s for the last two years(means I have already practised enough)so I didn’t spend a long time on preparation. I have spent only 2 weeks for filling the missing pieces I’m not familiarised with.</p><h4>Understand the Official Curriculum and Create a Plan:</h4><p>You should understand the <a href="https://github.com/cncf/curriculum">Curriculum</a>. With that understanding create a plan first on what needs do be done on what and how. Walidshaari has a very great <a href="https://github.com/walidshaari/Kubernetes-Certified-Administrator/blob/master/README.md">repo</a> with full list of useful links for preparation. If you don’t have time to make a plan simply buy <a href="https://www.udemy.com/share/101WmEAEMed19RR3gF/">this</a> amazing course by <a href="https://medium.com/u/66bce4899d7b">Mumshad Mannambeth</a> on udemy and start preparing right away.</p><blockquote>Sharp your axe before chopping the tree</blockquote><h4>Get familiarised with these:</h4><ol><li>Installing and using kubeadm.</li><li>Install a networking plugin(without installing this your cluster won’t be in a ready state).</li><li>Practice upgrading the Kubernetes cluster until you do it flawless and quick at the same time.</li><li>Run through backup and restore using etcd snapshot(This one is actually simple).</li><li>Know how to get logs, monitor pods and nodes.</li><li>How to configure multi-container pods, a pod with init containers. Also, practice a shared volume between containers.</li><li>How to do a Rolling update, Rollback that update.</li><li>How to use imperative commands.</li><li>Exposing Deployments/Pods using Services.</li><li>Configuring the Service types.</li><li>How to effectively utilise the allowed resources(eg. kubernetes docs)</li><li>Certification Signing Requests.</li><li>JSON Path outputs</li><li>Finally, to dive deep and sharp your already sharpen understanding on K8s do one of these <a href="https://github.com/kelseyhightower/kubernetes-the-hard-way">Try Kubernetes the Hard Way by Kelsy on GCP</a> or <a href="https://github.com/mmumshad/kubernetes-the-hard-way">Kubernetes the Hard Way by Mumshad on Virtual Box</a></li><li>And all the other topics in <a href="https://kubernetes.io/docs/tasks/">https://kubernetes.io/docs/tasks/</a></li></ol><p>Completing all these will be enough for gaining experience in Kubernetes.</p><h4><strong>Where can you practice?</strong></h4><ol><li>You can simply go to <a href="https://www.katacoda.com/">https://www.katacoda.com/</a> and start practising C</li><li>Create your server on <a href="https://m.do.co/c/58f9b574e8be">Digital Ocean</a> (signup &amp; get $100 credit)</li><li>Install <a href="https://kubernetes.io/docs/tasks/tools/install-minikube/">Minikube</a> in your local system.</li></ol><h4>Bookmark important pages for referencing during Exam:</h4><p>CKA exam allows you to have one additional tab opened during the exam. I strongly advise you to utilise this option. This will save a lot of time and avoid confusion during the exam. You can access these pages and its subdomains.<br>1. https://kubernetes.io/docs/ <br>2. <a href="https://github.com/kubernetes/">https://github.com/kubernetes/</a> <br>3. <a href="https://kubernetes.io/blog/">https://kubernetes.io/blog/</a><br>You can use this bookmarks to quickly copy the YAML for creating POD, Deployments, Configuring Pod with PV, etc. or you can utilise the search feature in kubernetes docs page to get some hints on questions you have no idea about. Copying YAML will definitely avoid some indentation and spelling mistake in your YAML. You can see the way I bookmarked the contents for quick references. Each folder contains the bookmarks corresponding to each curriculum topic. You can import my <a href="https://github.com/AATHITH/CKA/blob/master/Bookmarks(kubernetes%20docs%20only).html">bookmarks</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9yxauTl93dZqbJLjPZyrg.png" /><figcaption>Note that Bookmark bar</figcaption></figure><h4>Test Environment:</h4><p>You don’t have to worry about How the Test environment will be? Will that be easy to use? because It is extremely user friendly, you will get used to it within seconds and there will be a Proctor available for you all the time. If you still want to have your hands on exam environment before entering the real one, you can create one similar to the original using this <a href="https://github.com/arush-sal/cka-practice-environment">https://github.com/arush-sal/cka-practice-environment</a></p><p>Some Final Words:<br>1. Book the exam before you start preparing otherwise preparation will drag on forever.<br>2. This exam is not as tough as you think.<br>3. Kubernetes is a bunch of components running together. Break down the components first, it will help you understand quickly. <br>4. Look out! the exam curriculum is changing this September. Start now, you can clear the exam before the curriculum changes.<br>5. Certification is not the destination, its the beginning of your journey.</p><h4>Some Quotes:</h4><blockquote>“Learn enough to practice, Practice enough to understand, Understand enough to Perform.”</blockquote><blockquote>Three-time Super Bowl winner Bill Walsh, “The score takes care of itself.” <br>The same is true here.</blockquote><blockquote>“Doubt is only removed by action.” Conor McGregor</blockquote><p>I’m not a writer, but I put down most information in a way that you can understand. If this article needs improvements let me know, so that others won’t find it difficult to understand.</p><blockquote>You can contact me anytime with the topic #kubernetes.<br>Connect me on <a href="https://aathith.github.io/connect">https://aathith.github.io/connect</a> or on <a href="https://www.linkedin.com/in/aathith-rajendran/">LinkedIn</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbb85bed9558" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I became an AWS SYSOPS ADMINISTRATOR ASSOCIATE in 15 days.]]></title>
            <link>https://medium.com/@aathith2/how-i-became-an-aws-sysops-administrator-associate-in-15-days-a327f4d44b21?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a327f4d44b21</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws-certified]]></category>
            <category><![CDATA[aws-sysops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[sysops]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Sun, 28 Jun 2020 18:11:30 GMT</pubDate>
            <atom:updated>2020-06-29T04:24:23.854Z</atom:updated>
            <content:encoded><![CDATA[<p>It&#39;s not as simple as I thought it would be. But I’m also not an easily giving up person too. I took that challenge and completed it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*185AOmRRAJv9q8GwkUlDNA.jpeg" /><figcaption>My AWS SysOps Administrator Associate certificate</figcaption></figure><p>Hey, before you start reading let&#39;s get <a href="https://aathith.github.io/connect/">connected</a>.</p><p><strong>Day 0: Accepting Challenge<br></strong>I have completed my CKA last month with just 2weeks of practice(but I have work experience with k8 for 2yrs so 2 weeks i was able to accomplish that). This one is different, AWS exam is different than CKA. It is not a practical exam, it is to Choose the best answer. AWS doesn&#39;t offer a second free attempt too. I already have worked on many tools including DigitalOcean, Terraform, Ansible, Grafana, Prometheus, Elastic Stack etc. but, I didn’t get any chance to get my hands dirty with AWS. So, I took this as the next challenge. <strong>Achieve a Certification from AWS within 10DAYS</strong>(but later it become a 15days challenge).</p><p><strong>Day 1: Planning &amp; Buying<br></strong>I saw many posts saying that Sysops is the toughest of those three associate-level certs(Solution Architect, Developer, SysOps Admin). That gave me slight blues but I said to myself “you are CKA, You still fear this?”. I didn’t attempt any other certs (including cloud practitioner) and went for this directly as I’m on my way to become a certified Professional DevOps Engineer.<br>I know buying a course is better than preparing myself. I bought the<a href="https://www.udemy.com/share/1020yWAEMed19RR3gF/"> Stephane Maarek’s course</a>. I read the reviews on his course, watched some preview videos and it was simple, clean and looked crisp so I bought it.</p><p><strong>Day 2–5: Preparation Phase I<br></strong>I watched all the topics in his course. I have no hands-on experience in AWS before but as mentioned above I already have experience in other important tools in Cloud, that clearly helped me grab the things Stephane is explaining. I created an AWS account and followed along with him(used AWS free tier).<br>At times I’m not convinced with his explanations I go straight to <a href="https://www.youtube.com/channel/UCzpHRBVnkzBfSsXostYuW1g">KnowledgeIndia AWS Azure Tutorials</a> (this page is better than a lot of paid courses out there) that will fill in my answers.</p><p><strong>Day 6–9: Preparation Phase II<br></strong>I repeated the course 2–3 times to get a clear understanding of each topic.</p><p><strong>Day 9: Booking the exam<br></strong>I’m able to visualise the tasks I can do with AWS as a SysOps Admin but I get the feeling that there are still missing pieces(I know experience does not equal cert ready). Anyway, I booked the exam on Pearson OnVue(online proctoring) for day 15th afternoon. Then, I bought<a href="https://www.udemy.com/share/1020yWAEMed19RR3gF/"> Jon Bonso’s practice course</a>.</p><p><strong>Day 10–13: Practicing phase<br></strong>Attempted Jon Bonso’s practise question sets. The practice questions were near exam level(maybe a level above that) and I only got around 70% in 4 of 5 question sets on my first attempt. It proved that I still need to cover a little more to clear the exam. I reviewed all my answers and his explanations, mhaan, it explained why that option is correct and others were wrong (with reference links to aws as well as tutorialdojo). Also, I have gone through AWS’s official exam readiness course. These helped me learn how to choose the best answer for the given question. This took 3 days. After I reviewed all the practice set, I gave that practice questions a second attempt on Day 14 and able to get 90+ on all. That gave me a little confidence.</p><p><strong>Day 15: Exam Day<br></strong>As I booked my exam in the afternoon. I woke, as usual, the thought of having an exam is sooo stressful so didn’t even touch my laptop until before 2hrs for the exam. Final 2hrs I skim through the study resource from Stephane’s course. Finally, I logged in to the exam site and clicked “begin the exam”. Went through some photo ID, location verification. That took 20–25mins approx. My proctor said all Good and released my question.</p><p><strong>Day 15: During Exam<br></strong>The questions were easy to read and understand. After completing 40 questions in the first hour. I felt so boring(really I felt so bored maybe fatigue) but I have to complete the exam to pass. So, I didn’t do anything for 10 complete minutes. We are not allowed to move away from the screen so I stared at the screen but not the qns. I got back to my speed and completed the remaining 25 qns with 30 mins remaining. I flagged some qns during the exam in which I didn’t have complete confidence in my answer for reviewing it before submitting. I took the whole final 30 mins to review the flagged qns as well as the others. A message popped up and said time up. Before I can see whether I passed my exam or not we have to complete the feedback survey for the exam which had 9qns. I completed the survey and clicked “End the exam”. My screen loaded for a second before showing the result, which felt like a minute actually. Finally, there was a message saying “<strong>Passed</strong>”. No words to express that feeling.</p><p><strong>Tips for Preparation:<br></strong>Understand what you need to do as a SysOps Admin with AWS first. Then, start Stephane’s course, play and practice with the AWS services. Once, you get comfortable with this you will think you are ready for the exam. But stop, go ahead and buy Jon Bon’s practice qns and start practising.</p><p><strong>Tips during the Exam:<br></strong>1. Read the question clearly.<br>2. If the question is not clearly read it again.<br>3. If the question is still not clear. Stop reading the question and start reading the answer. It will give you perspective on how to approach that question.<br>4. Once you are clear with the question, Start comparing the answers to the question.<br>5. If you are not sure which one to choose, try the “Royal Rumble method”. I<br> mean start eliminating the option by choosing the most inappropriate answer first. With this method, you will end up with the correct answer or close to the correct answer.<br>6. If any of the above didn’t work out. Maintain your peace just flag the question and skip to the next one. Time is precious, man. You can come back later at the end to fix the answer.<br>7. Before Ending the exam you should definitely review your answer. No matter how sure you are on your answers. <br>8. Take breaks if you want(but you can’t go away remember that).</p><p>If any point you start to think of giving up during the preparation thinking it is a tough exam, Don’t. It’s a very simple exam and if I can do it in just 15Days you can do it too. You can take this as a 15Days challenge too. Let me know if you did ;)</p><h4>All the best :)</h4><p><strong>Courses and Materials used:<br></strong>1. <a href="https://www.udemy.com/share/1020yWAEMed19RR3gF/">Stephane Maarek’s course</a>.<br>2. <a href="https://www.udemy.com/share/1020yWAEMed19RR3gF/">Jon Bonso’s practice course</a>.<br>3. <a href="https://www.youtube.com/channel/UCzpHRBVnkzBfSsXostYuW1g">KnowledgeIndia AWS Azure Tutorials</a>.<br>4. <a href="https://www.aws.training/learningobject/video?id=27486">AWS exam readiness digital training</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a327f4d44b21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Policy in Kubernetes | simplified]]></title>
            <link>https://medium.com/@aathith2/network-policy-in-kubernetes-simplified-f1bddcef51a4?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1bddcef51a4</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[pods]]></category>
            <category><![CDATA[network-policies]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Thu, 14 May 2020 13:31:01 GMT</pubDate>
            <atom:updated>2020-05-14T13:31:01.205Z</atom:updated>
            <content:encoded><![CDATA[<p>Network policy is a pod level firewall you can use to whitelist and blacklist traffic from inside and outside of your cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*lQX9HYbP-l0ij0Ky.jpg" /></figure><p>By default, all Pods in kubernetes can talk to every other Pod in the cluster. But, what if you don&#39;t want Your FrontEnd directly talk to your DB without going through BackEnd?</p><p>Network policy can be broken down into 3 Section:</p><ol><li>Policy Types</li><li>Rules</li><li>Ports</li></ol><p><strong>Policy Types:<br></strong>1) ingress<br> ⠀⠀⠀a) Rules<br> ⠀⠀⠀ ⠀⠀⠀i) PodSelector<br> ⠀⠀⠀ ⠀⠀⠀ii) NamespaceSelector<br> ⠀⠀⠀ ⠀⠀⠀iii) NamespaceSelector with PodSelector<br> ⠀⠀⠀b) Ports</p><p>2) egress<br> ⠀⠀⠀a) Rules<br> ⠀⠀⠀ ⠀⠀⠀i) PodSelector<br> ⠀⠀⠀ ⠀⠀⠀ii) NamespaceSelector<br> ⠀⠀⠀ ⠀⠀⠀iii) NamespaceSelector with PodSelector<br> ⠀⠀⠀b) Ports</p><h3>1. Ingress:</h3><p>You can compare this with the Firewall’s inbound rules.<br>This rule tells which network, which Pod, which port can enter your Pod.</p><h4>a) Rules:</h4><p>This is a set of rules which contains information about which set of pods, which set of pods from which set of NameSpaces, IP rages are allowed to send traffic to your pod.</p><h4>i) PodSelector:</h4><p>You can compare this with a Kubernetes Service selecting pods with Labels. This section is used to apply the rules you created above to the Pods with matching labels.</p><h4>ii) NameSpaceSelectors:</h4><p>This one is similar to PodSelector but this applies to all the pods in a selected set of NameSpaces.</p><h4>iii) NameSpaceSelectors with PodSelector:</h4><p>This is similar to NameSpaceSeclector above. But with this, you can allow a set of pods within a selected set of NameSpaces.</p><h4><strong>b) Ports:</strong></h4><p>This allows traffic matching all the <strong>Rules</strong> section.</p><h4>2. Egress:</h4><p>Everything is similar to Ingress type with one change, this is a rule for outgoing traffic from your pod.<br>You can compare this with the Firewall’s outbound rules.</p><blockquote><strong>Another important thing to note is we will use another PodSelector outside these Policy types, to select the pods to which these rules are applied</strong></blockquote><p>Here is an example including all the above sections:</p><pre>apiVersion<strong>:</strong> networking.k8s.io/v1<br>kind<strong>:</strong> NetworkPolicy<br>metadata:<br>  name: test-network-policy<br>  namespace: default<br>spec:<br>  <strong>podSelector</strong>:           # this selects the pods with &quot;role: db&quot; to <br>    matchLabels:         # which these below rules applies<br>      role: db<br><strong>  policyTypes:           # type of policy<br></strong>  - Ingress<br>  - Egress<br>  <strong>ingress</strong>:                      <br>  - from:                   # <strong><em>ingress rules</em></strong> begins with &#39;from&#39;                      <br>    - ipBlock:              # this allows IP&#39;s IN<br>        cidr: 172.17.0.0/16<br>        except:             # this excludes the mentioned IP&#39;s<br>        - 172.17.1.0/24<br>    - <strong>namespaceSelector</strong>:   # selects all pods in namespaces labeled<br>        matchLabels:          # &quot;project: myproject1&quot;<br>          project: myproject1<br>    - <strong>podSelector</strong>:           # selects pods labeled &quot;role: frontend&quot;<br>        matchLabels:<br>          role: frontend<br>    - <strong>namespaceSelector</strong>:   # <em>note missing &#39;-&#39; infront of PodSelector</em><br>        matchLabels:          # this selects pods labeled <br>          project: myproject2  # &quot;role:frontend&quot; in namepaces labeled<br>      <strong>podSelector</strong>:            # &quot;project: myproject2&quot;<br>        matchLabels:<br>          role: frontend    <br>    <strong>ports</strong>:               # all above rules matched applied to ports<br>    - protocol: TCP<br>      port: 6379<br>  <strong>egress</strong>:<br>  - <strong>to</strong>:                   #<strong><em>egress rules</em></strong> begins with &#39;to&#39;<br>    - <strong>ipBlock</strong>:            # this allows IP&#39;s OUT<br>        <strong>cidr</strong>: 10.0.0.0/24<br>    <strong>ports</strong>:                # all above rules matched applied to ports <br>    - <strong>protocol</strong>: TCP <br>      <strong>port</strong>: 5978</pre><p>This above example allows IN bound traffic from<br>1. Any Pod in a Namespace label of project=myproject1<br>2. Any Pod in the default namespace with label role=frontend<br>3. Any Pod with the label role=frontend in a Namespace label of project=myproject2<br>4. IP addresses in the ranges 172.17.0.0/16 except 172.17.1.0/24.</p><p>This above example allows OUT bound traffic to<br>1. Allow connections from any pod in the default namespace with label role=db to CIDR 10.0.0.0/27 TCP port 5978</p><p>Contact me 📱 any time on any of the social media inside this link 👇🏻<br>Let’s stay connected on <a href="https://aathith.github.io/connect/">https://aathith.github.io/connect/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1bddcef51a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple explanation of the Container.]]></title>
            <link>https://medium.com/@aathith2/a-simple-explanation-of-the-container-d3544b485c10?source=rss-b2a83f7784e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3544b485c10</guid>
            <category><![CDATA[virtual-machine]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Aathith Rajendran | DevOps__Guy]]></dc:creator>
            <pubDate>Sat, 09 May 2020 11:31:00 GMT</pubDate>
            <atom:updated>2020-05-14T06:39:31.933Z</atom:updated>
            <content:encoded><![CDATA[<p>What is a Container? What is Containerisation?? Why almost everyone is talking about that?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iW2jIFM8pMH0uFCd" /><figcaption>Photo by <a href="https://unsplash.com/@thefallofmath?utm_source=medium&amp;utm_medium=referral">Upadek Matmy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you are a software engineer there are more chance for you to come across the word Container. , I would like to share what is a container in this post.<br>Let me start with an example, imagine you have two Java Apps that only works on the particular version of Java and you want to run both of these APPs simultaneously. You can have only one version of java on your computer so you can not run both of these APPs at the same time normally. What will you do in this situation? There are two ways to run your apps together without any conflicts.</p><p><strong>Method 1 is Virtual Machines:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*ZAZ7qzHxdlJiGJF4-f2V-w.png" /><figcaption>VirtualMachine: Running another computer virtually on top of your real Computer.</figcaption></figure><p>Spin up two virtual machines VM1 &amp; VM2, with a separate OS for each of your VM’s. Install Java8 in VM1 &amp; Java11 in VM2 first, then run your app inside these VM’s. But why run Two OS for two simple APPs? This is where</p><p><strong>Method 2 </strong>comes in,<strong> Containerisation</strong>:</p><p>What is containerisation?<br>It is just a method of isolating a process from other processes running in your computer.</p><p>How would you run your app a container?<br>You have to put together your Process and its dependencies and build it as a Container Image. If this runs on your system it will run anywhere. Now, you can port this container image to any computer and run it without any problems.</p><p>Container Image is kind of an instruction file that tells the underlying Container Run Time on how to handle your APP when running as a container.<br>Still, what is a Container? If your packed container image run that is what you call a container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSs7yx3xGUXEMxSS1n0-6Q.png" /><figcaption>Process+dependency+build=container image</figcaption></figure><p>Now coming back to our example, here our APP is the Process and JAVA is the dependency. Pack and build this into the container images, then execute it. Now you have both of your apps running peacefully together just like other processes in your system without consuming any additional resources like the VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnI3UAqAzuwelWgERfPG0g.png" /><figcaption>two apps running as a container in your computer on top of Container Run Time</figcaption></figure><p>Little Terms you should remember from this post:</p><p><strong>Containerisation:</strong> Method of isolating a process from others.<br><strong>Container:</strong> Running instance of Container Image<br><strong>Container Image: </strong>Package of your Process+dependencies.</p><p>One thing I missed telling in this post is about <em>Container Run Time.</em> Container Run Time is a software that handles the process of containerising and provides the necessary isolation that your process needs.<br>There are many different CRT out there and Docker, RKT &amp;LXC are the most famous ones currently.</p><p>A video version of this post is available on YouTube:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMmmW2s9uWhc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMmmW2s9uWhc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMmmW2s9uWhc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e96d4ea36b14bc9288e85f21684235c/href">https://medium.com/media/4e96d4ea36b14bc9288e85f21684235c/href</a></iframe><p>Contact me 📱 any time on any of the social media inside this link 👇🏻<br>Let’s stay connected on <a href="https://aathith.github.io/connect/">https://aathith.github.io/connect/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3544b485c10" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>