<?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 Sathvika B on Medium]]></title>
        <description><![CDATA[Stories by Sathvika B on Medium]]></description>
        <link>https://medium.com/@sathvikab?source=rss-11434b67fd08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aL042Qfir5JejYWN</url>
            <title>Stories by Sathvika B on Medium</title>
            <link>https://medium.com/@sathvikab?source=rss-11434b67fd08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:59:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sathvikab/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[NETWORKING PART 2- IP ADDRESSES]]></title>
            <link>https://blog.stackademic.com/networking-part-2-ip-addresses-cae681c7b364?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/cae681c7b364</guid>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[ipv4-vs-ipv6]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 14:42:21 GMT</pubDate>
            <atom:updated>2026-10-09T14:42:21.071Z</atom:updated>
            <content:encoded><![CDATA[<h3>What an IPv4 address looks like</h3><p>In this Blog you will learn how an IPv4 address is written and how to see the addresses your own machine has.</p><p>Every machine on a network needs an address, so packets know where to go. The most common kind is an IPv4 address. It is four numbers separated by dots, like 192.168.1.42. Each of the four numbers is between 0 and 255. Nothing else is a valid IPv4 address: 192.168.1.300 is invalid because 300 is over 255, and 10.1.2 is invalid because it has only three numbers.</p><h3>Why 0 to 255</h3><p>Under the surface an IPv4 address is 32 bits, split into four groups of 8 bits. Eight bits can hold a number from 0 to 255, and that is exactly the range each of the four parts can use. The dotted form exists only so humans can read it.</p><h3>See your machine’s addresses</h3><p>The ip command manages everything about networking on Linux. Its addr subcommand lists every address the machine has:</p><p>COMMAND</p><pre>ip addr</pre><p>OUTPUT</p><pre>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 ...<br>    inet 127.0.0.1/8 scope host lo<br>2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 ...<br>    inet 172.16.0.2/24 scope global eth0</pre><p>Look for the lines starting with inet. Each one is an IPv4 address the machine answers to. This machine has two: the address after inet under lo, and the one under eth0. The number after the slash describes the network the address belongs to. A later topic covers it in detail, so ignore it for now.</p><p>A DevOps engineer types this command many times a day. Which address does this server have? Is it the one the load balancer expects? Almost every network question starts with reading this output.</p><p>============================================================</p><h3>Task: Find your IP address</h3><p>Find the IPv4 address of this machine’s eth0 interface, using the command from the above what-an-ipv4-address-looks-like.</p><ul><li>Write the address to /root/answers/my-ip.txt, on a single line, with nothing else.</li><li>Write only the address itself. Do not include the slash and the number after it.</li></ul><p>COMMAND</p><pre>ip addr show eth0</pre><p>OUTPUT</p><pre>3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000<br>    link/ether 06:00:ac:1e:00:02 brd ff:ff:ff:ff:ff:ff<br>    inet 172.30.0.2/30 brd 172.30.0.3 scope global eth0<br>       valid_lft forever preferred_lft forever<br>    inet6 fe80::400:acff:fe1e:2/64 scope link <br>       valid_lft forever preferred_lft forever</pre><p>COMMAND</p><pre>ip -4 addr show eth0 | awk &#39;/inet / {split($2,a,&quot;/&quot;); print a[1]}&#39; &gt; answers/my-ip.txt</pre><p>OUTPUT</p><pre>172.30.0.2</pre><p>Why this works:</p><ul><li>ip -4 addr show eth0 displays IPv4 addresses for eth0.</li><li>awk extracts the address before /.</li><li>&gt; writes the result to answers/my-ip.txt, replacing its previous contents.</li></ul><p>Haha, don’t worry about me sharing my IP address output. It’s just a dummy IP in a sandbox environment.</p><p>=====================================================</p><h3>Private and public addresses</h3><p>In this lesson you will learn which IPv4 addresses are private, which are public, and how to tell them apart at a glance.</p><p>There are not enough IPv4 addresses for every device on Earth to own a unique one. The solution: some address ranges are marked private. Private addresses are free for anyone to use inside their own network, and they are never routed on the public internet. Public addresses are the rest: globally unique, and reachable from anywhere.</p><h3>The three private ranges</h3><p>Memorize these. You will see them every day:</p><ul><li>10.0.0.0 to 10.255.255.255 - anything starting with 10.</li><li>172.16.0.0 to 172.31.255.255 - starts with 172., second number 16 through 31 only</li><li>192.168.0.0 to 192.168.255.255 - anything starting with 192.168.</li></ul><p>The middle range is the tricky one. 172.20.1.1 is private, but 172.32.1.1 is public because 32 is outside 16 to 31. Likewise 192.169.5.5 is public: only 192.168. is private, not all of 192..</p><h3>Many private devices, one public address</h3><p>A home network shows how the two kinds work together. Every device gets a private address, and the router holds the single public address the whole home shares:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjE_GeGZwtXotMFNwVm5GQ.png" /></figure><p>Millions of homes reuse 192.168.1.10 at the same time without conflict, because those addresses never appear on the internet.</p><p>Check your own machine: run the command from the earlier lesson and look at the eth0 address.</p><p>COMMAND</p><pre>ip addr show eth0</pre><p>The address falls inside one of the three private ranges. Your sandbox lives on a private network, like nearly every server a DevOps engineer touches. Cloud servers almost always have private addresses, with public ones attached only where needed.</p><p>===========================================================</p><h3>Task: Classify private and public addresses</h3><p>The file /root/addresses/list1.txt holds 8 IPv4 addresses. Decide for each one whether it is private or public, using the ranges from the private-and-public-addresses lesson.</p><ul><li>Write your answers to /root/answers/classify1.txt.</li><li>One line per address, in the same order as the list, in exactly this format: the address, a space, then the word private or public. For example:</li></ul><pre>10.4.200.7 private</pre><p>QUESTION</p><pre>cat /root/addresses/list1.txt<br><br>10.4.200.7<br>8.8.8.8<br>192.168.50.1<br>54.180.2.99<br>172.20.14.3<br>1.1.1.1<br>10.255.0.1<br>142.250.72.14</pre><p>ANSWER</p><pre>cat answers/classify1.txt <br><br>10.4.200.7 private<br>8.8.8.8 public<br>192.168.50.1 private<br>54.180.2.99 public<br>172.20.14.3 private<br>1.1.1.1 public<br>10.255.0.1 private<br>142.250.72.14 public</pre><p>========================================================</p><h3>Task: Classify more addresses</h3><p>This list is trickier. Every address in /root/addresses/list2.txt sits close to the edge of a private range, which is exactly where mistakes happen in real work.</p><ul><li>Classify all 8 addresses and write your answers to /root/answers/classify2.txt.</li><li>Same format as before: one line per address, in list order, the address, a space, then private or public.</li></ul><p>QUESTION</p><pre>cat /root/addresses/list2.txt<br>172.32.0.1<br>172.16.0.1<br>192.169.4.20<br>192.168.255.254<br>172.31.255.1<br>172.15.9.9<br>11.0.0.5<br>10.0.0.5</pre><p>ANSWER</p><pre>172.32.0.1 public<br>172.16.0.1 private<br>192.169.4.20 public<br>192.168.255.254 private<br>172.31.255.1 private<br>172.15.9.9 public<br>11.0.0.5 public<br>10.0.0.5 private</pre><p>===========================================================</p><h3>The loopback address 127.0.0.1</h3><p>In this you will learn what 127.0.0.1 means and why traffic to it never leaves your machine.</p><p>Every machine has a special address that always means “this machine itself”: 127.0.0.1, called the loopback address. The name localhost is a friendly alias for the same address. When a program sends a packet to 127.0.0.1, the operating system turns the packet straight around inside the machine. It never touches a cable, a wifi radio, or any other computer.</p><h3>What loopback is for</h3><p>Loopback lets programs on one machine talk to each other using normal networking, with no network required. A database and an application on the same server usually talk over 127.0.0.1. It is also a safety tool: a server bound to 127.0.0.1 accepts connections only from its own machine, so nothing outside can reach it, ever.</p><h3>Bind a server to loopback only</h3><p>The Python web server takes a --bind option that sets which address it listens on. Bound to loopback, it is invisible to the rest of the network:</p><p>COMMAND</p><pre>python3 -m http.server 8000 --bind 127.0.0.1 &amp;<br>curl http://127.0.0.1:8000</pre><p>OUTPUT</p><pre>&lt;!DOCTYPE HTML&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>&lt;title&gt;Directory listing for /&lt;/title&gt;<br>...</pre><p>The curl request works because it comes from the same machine. A request from any other machine would fail: the server is not listening on any address that the outside world can reach.</p><p>DevOps engineers use this deliberately all the time. An internal admin panel, a metrics endpoint, a database: bind it to 127.0.0.1 and it cannot be attacked from the network, no firewall needed. And when a service works with curl on the machine but not from outside, a loopback-only bind is one of the first things to suspect.</p><p>=========================================================</p><h3>Task: Serve and fetch on loopback</h3><p>Run a web server that only this machine can reach.</p><ul><li>Start the Python web server on port 8001, bound to 127.0.0.1 only, running in the background.</li><li>Fetch a page from it over the loopback address and save the response to /root/answers/loopback.txt.</li></ul><p>The bind option was shown in the loopback lesson. A server set up this way is a common real pattern for internal-only services.</p><p>ANSWER</p><pre>python3 -m http.server 8001 --bind 127.0.0.1</pre><p>OUTPUT</p><pre>curl http://127.0.0.1:8001 &gt; answers/loopback.txt<br>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>100   519  100   519    0     0   241k      0 --:--:-- --:--:-- --:--:--  253k<br><br>cat answers/loopback.txt<br><br>&lt;!DOCTYPE HTML&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>&lt;meta charset=&quot;utf-8&quot;&gt;<br>&lt;title&gt;Directory listing for /&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Directory listing for /&lt;/h1&gt;<br>&lt;hr&gt;<br>&lt;ul&gt;<br>&lt;li&gt;&lt;a href=&quot;.bash_history&quot;&gt;.bash_history&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.bashrc&quot;&gt;.bashrc&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.cache/&quot;&gt;.cache/&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.profile&quot;&gt;.profile&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.ssh/&quot;&gt;.ssh/&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.viminfo&quot;&gt;.viminfo&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;addresses/&quot;&gt;addresses/&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;answers/&quot;&gt;answers/&lt;/a&gt;&lt;/li&gt;<br>&lt;/ul&gt;<br>&lt;hr&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><pre>python3 -m http.server 8001 --bind 127.0.0.1<br>Serving HTTP on 127.0.0.1 port 8001 (http://127.0.0.1:8001/) ...<br>127.0.0.1 - - [09/Oct/2026 14:29:30] &quot;GET / HTTP/1.1&quot; 200 -<br>127.0.0.1 - - [09/Oct/2026 14:29:45] &quot;GET / HTTP/1.1&quot; 200 -</pre><p>=====================================================</p><h3>IPv6</h3><p>In this you will learn why IPv6 exists and how to recognize an IPv6 address when you see one. Recognition is the goal — this skill works with IPv4 everywhere else.</p><p>IPv4 addresses are 32 bits, which allows about 4.3 billion addresses. The world has far more devices than that. Private ranges stretched the supply, but the real fix is IPv6: a newer address format with 128 bits. That is enough addresses to give every grain of sand on Earth billions of them. Shortage solved permanently.</p><h3>What an IPv6 address looks like</h3><p>IPv6 addresses use hexadecimal digits (0–9 and a-f) in eight groups separated by colons:</p><p>Example</p><pre>2001:0db8:0000:0000:0000:0000:0370:7334</pre><p>Two shortening rules make them readable. Leading zeros in a group can be dropped, and one run of all-zero groups can be replaced with a double colon ::. The address above is usually written as:</p><p>Example</p><pre>2001:db8::370:7334</pre><p>So the rule of thumb: dots mean IPv4, colons mean IPv6.</p><h3>The IPv6 loopback</h3><p>IPv6 has its own loopback address, the twin of 127.0.0.1. It is one bit set and everything else zero, so the shortened form is just ::1. Your machine already has it:</p><p>COMMAND</p><pre>ip -6 addr show lo</pre><p>OUTPUT</p><pre>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 state UNKNOWN ...<br>    inet6 ::1/128 scope host</pre><p>The -6 flag tells the ip command to show only IPv6 addresses, and there it is: ::1 on the loopback interface.</p><p>For a DevOps engineer, the practical need today is recognition. When ::1 or a colon-filled address appears in a config file, a log line, or a listening-ports list, you should know you are looking at IPv6 and not be confused by it.</p><p>In the next task you ping the IPv6 loopback and confirm your machine speaks IPv6 to itself.</p><p>============================================================</p><h3>Task: Ping the IPv6 loopback</h3><p>Confirm this machine can talk to itself over IPv6.</p><ul><li>Send exactly 4 ping packets to the IPv6 loopback address ::1 and save the full output, including the statistics summary, to /root/answers/ipv6-ping.txt.</li></ul><p>The ping command accepts an IPv6 address the same way it accepts an IPv4 one. The output should show every packet received.</p><p>COMMAND</p><pre>ping -c 4 ::1</pre><p>OUTPUT</p><pre>PING ::1 (::1) 56 data bytes<br>64 bytes from ::1: icmp_seq=1 ttl=64 time=0.020 ms<br>64 bytes from ::1: icmp_seq=2 ttl=64 time=0.017 ms<br>64 bytes from ::1: icmp_seq=3 ttl=64 time=0.017 ms<br>64 bytes from ::1: icmp_seq=4 ttl=64 time=0.017 ms<br><br>--- ::1 ping statistics ---<br>4 packets transmitted, 4 received, 0% packet loss, time 3062ms<br>rtt min/avg/max/mdev = 0.017/0.017/0.020/0.001 ms</pre><h3>What’s Next? 🚀</h3><p>In the next part of our networking series, we’ll explore <strong>Network Interfaces</strong> and understand how they help devices communicate over a network.</p><p>Stay tuned for the next part!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cae681c7b364" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/networking-part-2-ip-addresses-cae681c7b364">NETWORKING PART 2- IP ADDRESSES</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NETWORKING- PART 1]]></title>
            <link>https://blog.stackademic.com/networking-part-1-8b38b92eb1e9?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b38b92eb1e9</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 17:42:19 GMT</pubDate>
            <atom:updated>2026-10-08T17:42:19.898Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>WHAT IS A NETWORK</strong></h4><p>In this lesson you will learn what a network is and the two roles every network conversation has: a client that asks and a server that answers.</p><p>A network is two or more machines connected so they can send data to each other. That is the whole definition. Your laptop and your phone on the same wifi form a network. A company’s thousand servers form a network. The internet is a network of networks.</p><p>Every useful thing a network does follows one pattern: one machine asks, another machine answers. The machine that asks is called the client. The machine that answers is called the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AX4qznxPH8MlfQSjzznX8w.png" /></figure><h3>See one conversation happen</h3><p>COMMAND</p><pre>curl http://example.com</pre><p>OUTPUT</p><pre>&lt;!doctype html&gt;&lt;html lang=en&gt;&lt;head&gt;&lt;meta charset=utf-8&gt;&lt;link rel=icon href=data:,&gt;&lt;meta name=viewport content=&quot;width=device-width,initial-scale=1&quot;&gt;&lt;title&gt;Example Domain&lt;/title&gt;&lt;style&gt;html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.&lt;/p&gt;&lt;script src=/s.js&gt;&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</pre><p>A DevOps engineer lives inside this pattern all day. A website is down? A client is asking and some server is not answering. The rest of this skill teaches you every step between the ask and the answer, so you can find the exact step that broke.</p><p>In the next task you run a server of your own and send it a request, so you play both roles on one machine.</p><p>===========================================================</p><h3>Task: Run a web server and fetch a page</h3><p>You have one terminal, and a web server never exits on its own. It waits for requests forever. If you start it normally, it takes over your terminal and you cannot type anything else. The fix is one character: put &amp; at the end of a command and the shell runs it in the background, prints a job number, and gives you the prompt back. For example:</p><pre>sleep 300 &amp;</pre><p>Python ships a tiny web server. This command serves the current folder on the port you name:</p><p>COMMAND</p><pre>python3 -m http.server 8000 &amp;</pre><p>OUTPUT:</p><pre>[2] 989<br><br>Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...</pre><p>Now do the following:</p><ul><li>Start that Python web server on port 8000, in the background, so your terminal stays usable.</li><li>Act as the client: fetch a page from the server on this machine at port 8000 and save the full response to /root/answers/page.txt.</li></ul><p><strong>ANSWER</strong></p><p>COMMAND</p><pre>curl http://0.0.0.0:8000</pre><p>OUTPUT:</p><pre> % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0127.0.0.1 - - [08/Oct/2026 16:59:05] &quot;GET / HTTP/1.1&quot; 200 -<br>100   433  100   433    0     0   118k      0 --:--:-- --:--:-- --:--:--  140k</pre><p>on doing cat answers/page.txt has below content in that</p><pre>127.0.0.1 - - [08/Oct/2026 16:58:52] &quot;GET / HTTP/1.1&quot; 200 -<br>&lt;!DOCTYPE HTML&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>&lt;meta charset=&quot;utf-8&quot;&gt;<br>&lt;title&gt;Directory listing for /&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Directory listing for /&lt;/h1&gt;<br>&lt;hr&gt;<br>&lt;ul&gt;<br>&lt;li&gt;&lt;a href=&quot;.bash_history&quot;&gt;.bash_history&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.bashrc&quot;&gt;.bashrc&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.cache/&quot;&gt;.cache/&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.profile&quot;&gt;.profile&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.ssh/&quot;&gt;.ssh/&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;answers/&quot;&gt;answers/&lt;/a&gt;&lt;/li&gt;<br>&lt;/ul&gt;<br>&lt;hr&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>===========================================================</p><h3>Task: Run the server on a different port</h3><p>A machine can run many servers at once. Each one needs its own port number, so requests for one server do not land on another. Practice the same moves as the last task on a new port:</p><ul><li>Start the Python web server on port 9090, in the background.</li><li>Fetch a page from it and save the response to /root/answers/page-9090.txt.</li></ul><p>The server from the last task can keep running. The two do not conflict because they use different ports.</p><p><strong>ANSWER:</strong></p><p>COMMAND</p><pre>python3 -m http.server 9090 &amp;</pre><p>OUTPUT</p><pre>[1] 1147<br><br>Serving HTTP on 0.0.0.0 port 9090 (http://0.0.0.0:9090/) ...</pre><p>COMMAND</p><pre>curl http://0.0.0.0:9090 &gt;answers/page-9090.txt</pre><p>OUTPUT</p><pre>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0127.0.0.1 - - [08/Oct/2026 17:08:41] &quot;GET / HTTP/1.1&quot; 200 -<br>100   484  100   484    0     0   200k      0 --:--:-- --:--:-- --:--:--  236k</pre><p>on doing cat answers/page-9090.txt has below content in that</p><pre>&lt;!DOCTYPE HTML&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>&lt;meta charset=&quot;utf-8&quot;&gt;<br>&lt;title&gt;Directory listing for /&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Directory listing for /&lt;/h1&gt;<br>&lt;hr&gt;<br>&lt;ul&gt;<br>&lt;li&gt;&lt;a href=&quot;.bash_history&quot;&gt;.bash_history&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.bashrc&quot;&gt;.bashrc&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.cache/&quot;&gt;.cache/&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.profile&quot;&gt;.profile&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;.ssh/&quot;&gt;.ssh/&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;answers/&quot;&gt;answers/&lt;/a&gt;&lt;/li&gt;<br>&lt;li&gt;&lt;a href=&quot;page-9090.txt&quot;&gt;page-9090.txt&lt;/a&gt;&lt;/li&gt;<br>&lt;/ul&gt;<br>&lt;hr&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>===========================================================</p><h3>What a packet is</h3><p>In this lesson you will learn what a packet is: the small unit that all network data travels in.</p><p>Data never crosses a network in one piece. When your machine sends a file, a web page, or even a short message, the data is cut into small pieces called packets. Each packet is typically around 1500 bytes or less. The pieces travel across the network one by one, and the receiving machine puts them back together in the right order.</p><p>Think of mailing a book one chapter at a time. Each envelope holds one chapter, and each envelope carries the full delivery address. The envelopes may arrive out of order, but the reader can rebuild the book because each chapter is numbered.</p><h3>Every packet carries its own addresses</h3><p>Each packet has two parts. The header holds the addresses: which machine sent it and which machine should receive it, plus a little bookkeeping like the packet’s position in the sequence. The payload holds the actual slice of data. Because every packet carries the full source and destination address, each one can find its own way across the network, even if packets from the same message take different paths.</p><h3>Watch packets go out and come back</h3><p>The ping command sends small test packets to an address and reports whether each one came back:</p><p>COMMAND</p><pre>ping -c 4 127.0.0.1</pre><p>OUTPUT</p><pre>PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.<br>64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.031 ms<br>64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.042 ms<br>64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.040 ms<br>64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.039 ms<br><br>--- 127.0.0.1 ping statistics ---<br>4 packets transmitted, 4 received, 0% packet loss, time 3065ms</pre><p>The -c 4 flag means send 4 packets and stop. Each line is one packet: its sequence number, its size, and how long the round trip took. The summary counts packets sent, packets received, and packet loss.</p><p>Packet loss is one of the first things a DevOps engineer checks when a connection is slow or unstable. A healthy link loses nothing. A link losing even a few percent of packets makes every application on it feel broken.</p><p>In the next task you run ping yourself and read its numbers.</p><p>===========================================================</p><h3>Task: Ping localhost and read the output</h3><p>The address 127.0.0.1 always means this machine itself. Pinging it tests your own network stack without touching any cable or wifi. The what-a-packet-is lesson showed the command and what its output means.</p><ul><li>Send exactly 4 ping packets to 127.0.0.1 and save the full output to /root/answers/ping.txt.</li><li>Then read the statistics summary in that output and create /root/answers/ping-counts.txt with two lines, in exactly this format:</li></ul><pre>sent: 4<br>received: 4</pre><ul><li>Replace the numbers with what your output actually reports.</li></ul><p><strong>ANSWER:</strong></p><p>COMMAND</p><pre>ping -c 4 127.0.0.1 &gt; answers/ping.txt</pre><p>OUTPUT on doing cat of that</p><pre>PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.<br>64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.016 ms<br>64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.016 ms<br>64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.016 ms<br>64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.015 ms<br><br>--- 127.0.0.1 ping statistics ---<br>4 packets transmitted, 4 received, 0% packet loss, time 3069ms<br>rtt min/avg/max/mdev = 0.015/0.015/0.016/0.000 ms</pre><p>COMMAND</p><pre>awk &#39;/packets transmitted/ {<br>    print &quot;sent: &quot; $1<br>    print &quot;received: &quot; $4<br>}&#39; /root/answers/ping.txt &gt; /root/answers/ping-counts.txt</pre><p>On doing cat of that file</p><pre>sent: 4<br>received: 4</pre><p>So:</p><pre>awk &#39;/packets transmitted/ {<br>    print &quot;sent: &quot; $1<br>    print &quot;received: &quot; $4<br>}&#39; /root/answers/ping.txt</pre><p>means:</p><ul><li>/packets transmitted/ → find the line containing &quot;packets transmitted&quot;</li><li>$1 → first field → 4 (sent)</li><li>$4 → fourth field → 4 (received)</li></ul><h3>Why it works</h3><p>This line in your file:</p><pre>4 packets transmitted, 4 received, 0% packet loss</pre><p>has fields:</p><pre>$1 = 4<br>$2 = packets<br>$3 = transmitted,<br>$4 = 4<br>$5 = received,</pre><p>So $1 gets the <strong>sent</strong> count, and $4 gets the <strong>received</strong> count.</p><p>===========================================================</p><h3>Clients and servers</h3><p>In this lesson you will learn which everyday tools are clients, which programs are servers, and why one machine usually plays both roles at once.</p><p>A client is any program that sends a request. A server is any program that waits for requests and answers them. These are roles that programs play, not types of machines.</p><h3>Clients you already use</h3><p>The curl command is a client: it sends one web request and prints the answer. A web browser is a client. The ssh command is a client: it asks a remote machine for a login session. The ping command is a client too: it asks an address to echo test packets back.</p><h3>Servers that answer them</h3><p>Servers are the programs waiting on the other side. The nginx program is a web server: it waits for web requests and returns pages. The sshd program is the SSH server: it waits for login requests from ssh clients. The Python server you started earlier in this topic is a small web server as well.</p><h3>One machine, both roles</h3><p>Your lab machine is running server programs right now: nginx is serving a page on port 80, and sshd is waiting for logins. The same machine acts as a client every time you run curl. You can see both roles in one command, a client on this machine talking to a server on this machine:</p><p>COMMAND</p><pre>curl http://localhost</pre><p>OUTPUT</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Welcome to nginx!&lt;/title&gt;<br>&lt;style&gt;<br>html { color-scheme: light dark; }<br>body { width: 35em; margin: 0 auto;<br>font-family: Tahoma, Verdana, Arial, sans-serif; }<br>&lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Welcome to nginx!&lt;/h1&gt;<br>&lt;p&gt;If you see this page, the nginx web server is successfully installed and<br>working. Further configuration is required.&lt;/p&gt;<br><br>&lt;p&gt;For online documentation and support please refer to<br>&lt;a href=&quot;http://nginx.org/&quot;&gt;nginx.org&lt;/a&gt;.&lt;br/&gt;<br>Commercial support is available at<br>&lt;a href=&quot;http://nginx.com/&quot;&gt;nginx.com&lt;/a&gt;.&lt;/p&gt;<br><br>&lt;p&gt;&lt;em&gt;Thank you for using nginx.&lt;/em&gt;&lt;/p&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>The curl client sent a request to port 80, the nginx server answered with its welcome page, and the whole conversation stayed inside one machine.</p><p>This matters daily in DevOps. When something is unreachable, the first question is always: which client is asking, and which server should be answering? Naming the two ends turns a vague problem into a specific one.</p><p>In the next task your machine acts as a client to a real server on the internet.</p><p>===========================================================</p><h3>Task: Send a request to a real website</h3><p>So far every conversation stayed inside your machine. This time the server is on the real internet.</p><ul><li>Fetch the page at http://example.com and save the full response to /root/answers/website.txt.</li></ul><p>The response should contain the page’s HTML, including its title. The request leaves your machine, crosses the internet, reaches a server you have never seen, and the answer comes back in under a second. The rest of this skill explains every step of that trip.</p><p>COMMAND</p><pre>curl http://example.com &gt; answers/website.txt</pre><p>OUTPUT</p><pre>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>  0     0    0     0    0     0      0      0 --:--:-- --:--:-- 100   577    0   577    0     0   8639      0 --:--:-- --:--:-- --:--:--  8742</pre><p>On doing cat of answers/website.txt</p><p>OUTPUT</p><pre>&lt;!doctype html&gt;&lt;html lang=en&gt;&lt;head&gt;&lt;meta charset=utf-8&gt;&lt;link rel=icon href=data:,&gt;&lt;meta name=viewport content=&quot;width=device-width,initial-scale=1&quot;&gt;&lt;title&gt;Example Domain&lt;/title&gt;&lt;style&gt;html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.&lt;/p&gt;&lt;script src=/s.js&gt;&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</pre><p><strong>Stay tuned for Part 2: Networking — IP Addresses 🚀</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b38b92eb1e9" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/networking-part-1-8b38b92eb1e9">NETWORKING- PART 1</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This FREE Tool Converts Docker Compose to Kubernetes in Just 30 Seconds ]]></title>
            <link>https://blog.stackademic.com/this-free-tool-converts-docker-compose-to-kubernetes-in-just-30-seconds-a07243fe06c4?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/a07243fe06c4</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kompose]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 16:35:11 GMT</pubDate>
            <atom:updated>2026-07-27T06:24:30.449Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N2kIjeMxEwjB-cfW" /></figure><p>As DevOps engineers, we’ve all been there.</p><p>A developer finishes building a new feature and pings us:</p><blockquote><strong><em>“Can you containerize these microservices?”</em></strong></blockquote><p>Without thinking twice, we start creating:</p><ul><li>Dockerfiles for every microservice</li><li>A docker-compose.yml file so developers can spin up the entire application with a single command</li></ul><p>We then hand over the compose file to the developers.</p><p>They pull the latest code, execute one command, test everything locally, and after a few hours another message pops up.</p><blockquote><strong><em>“Everything looks good. Can we move this to Kubernetes?”</em></strong></blockquote><p>And that’s where the real work usually begins.</p><p>A Docker Compose file is beautifully simple.</p><p>But Kubernetes?</p><p>Now we need to create multiple resource files like:</p><ul><li>Deployment</li><li>Service</li><li>Ingress (or Gateway API)</li><li>Persistent Volumes</li><li>Persistent Volume Claims</li><li>ConfigMaps</li><li>Secrets</li><li>Horizontal Pod Autoscaler…and depending on the application,even more.</li></ul><p>Most of us either:</p><ul><li>Write YAML files manually.</li><li>Search through Kubernetes documentation.</li><li>Or ask AI to generate the manifests.</li></ul><p>While all of these work, they still take time.</p><p>Recently, I discovered a completely <strong>FREE</strong> and <strong>Open Source</strong> tool that made me wonder…</p><blockquote><strong><em>“Why have I been writing all this YAML manually?”</em></strong></blockquote><p>Meet <strong>Kompose</strong>.</p><p>It can convert your existing <strong>Docker Compose</strong> file into Kubernetes manifests in <strong>less than 30 seconds</strong>.</p><p>No magic, no complicated configuration, just one command.</p><h3>What is Kompose?</h3><p>Kompose is an open-source utility maintained by the Kubernetes community.</p><p>It takes a Docker Compose file as input and automatically generates Kubernetes resource manifests.</p><p>GitHub Repository: <a href="https://github.com/kubernetes/kompose"><strong>https://github.com/kubernetes/kompose</strong></a></p><p>If you’re learning Kubernetes or quickly migrating Docker Compose applications, this tool can save a tremendous amount of time.</p><p>Let’s see it in action.</p><h3>Pre-Requisites</h3><p>For this demo we’ll need three things.</p><h3>1. Install Kompose</h3><p>Mac users can install it using Homebrew.</p><pre>brew install kompose</pre><p>Verify the installation.</p><pre>kompose --help</pre><h3>2. Clone or Create a Small Microservice Application</h3><p>For this demo, I have a very small application consisting of two services.</p><pre>backend/<br>frontend/</pre><p>Verify the directory.</p><pre>ls</pre><p>Output</p><pre>backend<br>frontend</pre><h3>3. Install KIND (Kubernetes in Docker)</h3><p>We’ll use KIND to create a local Kubernetes cluster.</p><p>Install it.</p><pre>brew install kind</pre><p>Create a cluster.</p><pre>kind create cluster --name=kompose-demo</pre><p>Output</p><pre>Creating cluster &quot;kompose-demo&quot; ...<br>✓ Ensuring node image<br>✓ Preparing nodes<br>✓ Writing configuration<br>✓ Starting control-plane<br>✓ Installing CNI<br>✓ Installing StorageClass</pre><p>Our Kubernetes cluster is ready.</p><h3>Microservice code</h3><p>Our application consists of a frontend and backend service.</p><p>Access my below github repo to get source code</p><pre>https://github.com/BSathvika/kompose-docker-to-kubernetes</pre><p>Nothing fancy.</p><p>Just a normal Docker Compose file that many teams already use during development.</p><h3>Step 1 — Verify Everything Works Locally</h3><p>Before converting anything to Kubernetes, always ensure the application works correctly using Docker Compose.</p><p>Run:</p><pre>docker compose up --build</pre><p>Docker builds both services.</p><pre>kompose-backend<br>kompose-frontend</pre><p>The containers start successfully.</p><pre>Backend running on port 3000</pre><pre>Frontend running on port 8081</pre><p>At this point, we know our application is working perfectly in Docker.</p><p>Now let’s move to Kubernetes.</p><h3>Step 2 — Convert Docker Compose to Kubernetes</h3><p>This is the fun part.</p><p>Run a single command.</p><pre>kompose convert -f docker-compose.yml</pre><p>Within seconds Kompose generates the Kubernetes manifests.</p><p>Output:</p><pre>INFO Kubernetes file &quot;backend-service.yaml&quot; created<br>INFO Kubernetes file &quot;frontend-service.yaml&quot; created<br>INFO Kubernetes file &quot;backend-deployment.yaml&quot; created<br>INFO Kubernetes file &quot;frontend-deployment.yaml&quot; created</pre><p>That’s it.</p><p>No YAML writing.</p><p>No copy-pasting from documentation.</p><p>No asking AI to generate Deployments and Services.</p><p>Just one command.</p><p>This is the part that genuinely impressed me.</p><h3>Step 3 — Verify the Docker Images</h3><p>Let’s verify the Docker images that were built.</p><pre>docker images</pre><p>Output</p><pre>IMAGE                       ID             DISK USAGE   CONTENT SIZE   EXTRA<br><br>kompose-backend:latest     78a35a0830d5        209MB         51.4MB    U   <br>kompose-frontend:latest    7677a678ba0c        216MB         52.9MB    U</pre><p>We’ll use these images inside Kubernetes.</p><h3>Step 4 — One Small Change</h3><p>Kompose generates almost everything automatically.</p><p>However, there is one small thing we need to update.</p><p>Open the generated Deployment.</p><pre>vi backend-deployment.yaml</pre><p>You’ll notice the image field.</p><p>Since Kompose doesn’t know which Docker image you want Kubernetes to use, simply update the image name inside:</p><ul><li>backend-deployment.yaml</li><li>frontend-deployment.yaml</li></ul><p>That’s literally the only field I changed.</p><p>Everything else remained exactly as generated by Kompose.</p><p>I found this to be a very small trade-off considering how much manual YAML writing it saves.</p><h3>Step 5 — Deploy Everything</h3><p>Now deploy the generated resources.</p><pre>kubectl apply -f .</pre><p>Verify the Pods.</p><pre>kubectl get pods</pre><p>Output</p><pre>backend-79cf8f64dd-7pfvp      Running<br>frontend-7886597dbf-tpfvm     Running</pre><p>Both Pods are running successfully.</p><h3>Step 6 — Verify the Services</h3><p>Next, verify the generated Services.</p><pre>kubectl get svc</pre><p>Output</p><pre>NAME         TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE<br>backend      ClusterIP   &lt;ip-address&gt;   &lt;none&gt;        3000/TCP   12m<br>frontend     ClusterIP   &lt;ip-address&gt;   &lt;none&gt;        8081/TCP   12m<br>kubernetes   ClusterIP   &lt;ip-address&gt;      &lt;none&gt;        443/TCP    20m</pre><p>Notice something interesting?</p><p>We didn’t manually create a single Service YAML.</p><p>Kompose generated everything automatically.</p><h3>Step 7 — Access the Application</h3><p>Since we’re using a <strong>local KIND cluster</strong>, we don’t have a Load Balancer.</p><p>So we’ll simply use Port Forwarding.</p><pre>kubectl port-forward svc/frontend 8089:8081 --address=0.0.0.0</pre><p>I intentionally added</p><pre>--address=0.0.0.0</pre><p>so there won’t be any localhost-related configuration issues.</p><p>Open your browser.</p><pre>http://localhost:8089</pre><p>And that’s it.</p><p>Your application is now running inside Kubernetes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*CD-0mpKA72AdZw8rOx7lqQ.png" /></figure><h3>But What Happens in Production?</h3><p>This is an important point.</p><p>The Port Forward command is only required because we’re running a local Kubernetes cluster.</p><p>In a real production environment, we usually expose applications through:</p><ul><li>Load Balancers</li><li>Ingress Controllers</li><li>Gateway API Controllers</li></ul><p>So you normally wouldn’t use Port Forwarding in production.</p><h3>Why I Really Liked Kompose</h3><p>I only discovered Kompose recently, and honestly, I wish I had found it earlier.</p><p>Does it replace learning Kubernetes?</p><p>Absolutely not.</p><p>Understanding Deployments, Services, Ingresses, ConfigMaps, Secrets, Persistent Volumes, and other Kubernetes resources is still essential.</p><p>But Kompose removes the repetitive work of creating the initial YAML files.</p><p>Instead of spending time writing boilerplate manifests, you can spend more time understanding how Kubernetes works and customizing the generated files based on your application’s needs.</p><p>For beginners, I think this is one of the easiest ways to bridge the gap between Docker Compose and Kubernetes.</p><h3>Things to Keep in Mind</h3><p>Like any tool, Kompose isn’t perfect.</p><p>Here are a few things to remember:</p><ul><li>You may need to update the image names in the generated Deployment manifests.</li><li>Complex production applications will still require additional customization.</li><li>Features like Ingress, Gateway API, ConfigMaps, Secrets, Autoscaling, and Persistent Volumes may need to be configured manually depending on your application.</li><li>Always review the generated YAML before deploying it to production.</li></ul><p>Think of Kompose as a fantastic starting point but not the final destination.</p><h3>Final Thoughts</h3><p>I genuinely found Kompose to be one of those tools that makes you wonder why you weren’t using it earlier.</p><p>If you’re:</p><ul><li>Learning Kubernetes</li><li>Practicing DevOps</li><li>Migrating applications from Docker Compose</li><li>Building Proof of Concepts</li><li>Teaching Kubernetes</li></ul><p>then Kompose is definitely worth trying.</p><p>A simple Docker Compose file can become Kubernetes manifests in under 30 seconds, saving you a lot of repetitive work and helping you focus on what really matters.</p><p>If you haven’t explored it yet, I highly recommend going through the Kompose documentation. There’s a lot more it can do beyond what I’ve covered here.</p><p>Have you used Kompose before, or do you have another favorite tool for converting Docker Compose to Kubernetes? I’d love to hear your thoughts in the comments!</p><p>Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a07243fe06c4" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/this-free-tool-converts-docker-compose-to-kubernetes-in-just-30-seconds-a07243fe06c4">This FREE Tool Converts Docker Compose to Kubernetes in Just 30 Seconds 🚀</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS PART 1]]></title>
            <link>https://blog.stackademic.com/aws-part-1-9598b831edd0?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/9598b831edd0</guid>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 05:14:27 GMT</pubDate>
            <atom:updated>2026-02-26T05:14:27.736Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OiX23k0de-wtYwQB" /><figcaption>Photo by <a href="https://unsplash.com/@shotbywoliul?utm_source=medium&amp;utm_medium=referral">Woliul Hasan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Traditional Infrastructure vs Cloud</h3><p>The main objective today for most organizations is to move from on-premises infrastructure to cloud infrastructure.</p><p>Let’s first talk about how traditional infrastructure looked, and then how cloud infrastructure looks.</p><p>In traditional infrastructure, we used to have something called a <strong>server</strong>. People used to believe a server is a big, huge, gigantic computer. But that is not actually true. A server is just a <strong>piece of software running on very powerful hardware</strong>.</p><p>So we have servers (software), storage devices like hard disks or SSDs, and on top of that we also need networking components to connect to the internet — routers, switches, and firewalls to protect from attacks.</p><p>This is how traditional hardware infrastructure looked, and it was very real physical infrastructure. This was not your ordinary laptop hardware. Server-grade infrastructure is more expensive because it focuses heavily on <strong>redundancy</strong>. If one component fails, it should not take down the entire website. Redundancy is the key.</p><p>These machines also need to run <strong>24/7, 365 days</strong>, so they need to be high quality. That is why on-prem infrastructure is expensive.</p><p>When managing on-prem infrastructure, you have to own everything. If you want to host a website, you must think about:</p><ul><li>How to buy hard disks</li><li>How much RAM to buy</li><li>Where to plug hardware</li><li>Power backup</li><li>Cooling</li><li>Networking</li></ul><p>Everything is your responsibility.</p><p>There are companies that allow you to rent their infrastructure space. They provide backup power, generators, cooling, etc., and allow you to place your racks and hardware there. This is a mix of cloud and on-prem (colocation model).</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*BzXKLfLkVSvo3kqa9khKYw.png" /></figure><h3>Cloud Infrastructure</h3><p>On the other hand, cloud infrastructure is mostly <strong>on demand</strong>.</p><p>The word <em>On Demand</em> is extremely important in cloud certifications because the entire idea of cloud is built around on-demand resource availability.</p><p>You can press a button and increase RAM from 2GB to 200GB — and reduce it back again. That is crazy power.</p><p>In on-prem environments, scaling is extremely complex. If you need more storage:</p><p>You need to justify it → Write reports → Submit to manager → Multiple approval levels → Board approval → Purchase order → Delivery → Inventory → Installation → Software configuration.</p><p>This entire process is huge and slow.</p><p>In cloud, you don’t think about buying hardware at all.</p><p>Today we have many cloud providers:</p><ul><li>Amazon Web Services</li><li>Microsoft Azure</li><li>Google Cloud</li><li>IBM Cloud</li><li>Vercel</li><li>Heroku</li></ul><p>Most cloud infrastructures are shared resource environments. But there are special isolated government clouds as well where resources are completely separated.</p><p>Anyone can create an account and start hosting applications — no hardware buying, no shipping, nothing.</p><h3>Key Cloud Features</h3><h3>Elasticity</h3><p>This is one of the most important cloud features.</p><p>Example: Cricket streaming in India. Millions of users suddenly join. Elasticity allows infrastructure to scale up instantly.</p><p>Scaling up is easier even on-prem, but scaling down is extremely difficult. Cloud makes both easy.</p><h3>Pay As You Go</h3><p>You only pay for what you use.</p><p>Important example:<br>If you spin up an EC2 instance and forget to stop it — you still pay. Because you reserved resources.</p><h3>Example — Building Something Like Dropbox</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*N4ONaOPLjVmjMCzdBnUOXQ.png" /></figure><p>If you build on-prem:</p><p>First barrier = Hardware buying<br>Then installation challenges<br>Then rack placement<br>Then compatibility<br>Then expansion planning<br>Then operational software cost</p><p>In cloud, hardware is already handled. You focus on software.</p><h3>Types of Cloud Services</h3><p>The difference between cloud services is <strong>how much responsibility is on you</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*-qkTcfeOPvvAp-5IuM03Cg.png" /></figure><h3>Infrastructure as a Service (IaaS)</h3><p>You manage OS and above.<br>Provider manages hardware.</p><p>Example: Virtual Machines (EC2, Azure VM).</p><h3>Platform as a Service (PaaS)</h3><p>You only manage code.<br>Provider manages OS + platform + infra.</p><h3>Software as a Service (SaaS)</h3><p>You are just a consumer.</p><p>Examples:</p><ul><li>YouTube</li><li>Vimeo</li><li>Twitter</li><li>Salesforce</li></ul><h3>Control Over Cloud</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*9tFfY6gKuNeJeKbWkpDHwQ.png" /></figure><h3>Private Cloud</h3><p>You own hardware + software + security + compliance.</p><p>Example: If Europe requires data in Europe → You must handle it.</p><h3>Public Cloud</h3><p>Economy of scale + elasticity.</p><p>AWS provides regions globally. Example: India data can stay inside India region.</p><h3>Hybrid Cloud</h3><p>Mix of on-prem + cloud.</p><p>Example:<br>FireEye uses both depending on workload sensitivity.</p><p>Connections can be:</p><ul><li>Internet</li><li>Private links</li><li>VPN</li><li>Physical transfer devices (even trucks and data transfer devices)</li></ul><h3>Multi Cloud</h3><p>Use multiple cloud providers for redundancy.</p><p>During COVID, there were multiple downtime incidents across providers — multi-cloud helps reduce risk.</p><h3>AWS Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*MEJ6n_7MynI9YGTr44YG9Q.png" /></figure><p>AWS provides:</p><p>On Demand cloud<br>Pay as you use<br>Reserved pricing (cheaper because you commit future usage)</p><p>AWS provides services in:</p><p>Compute<br>Storage<br>Database<br>Media<br>Machine Learning<br>Analytics<br>IoT<br>Satellite Data</p><p>Storage was one of the first services. Compute came later. Now there are hundreds of services.</p><h3>Major AWS Cost Areas</h3><p>Main billing areas:</p><p>Compute → CPU / RAM / GPU<br>Storage → Data stored<br>Access → Faster retrieval costs more<br>Data Transfer → Upload mostly free, download usually charged</p><p>There are many other charges (like IPs sometimes), but these are major ones.</p><h3>AWS Global Infrastructure</h3><p>AWS exists globally across continents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*WJeaAPP-IaJFRUBB3gkjSQ.png" /></figure><h3>Regions</h3><p>Physical geographic locations (Example: Mumbai region).</p><h3>Availability Zones (AZs)</h3><p>Multiple data centers inside one region.</p><p>If one AZ fails → Other AZ continues.</p><p>Best Practice:<br>Minimum = Multi AZ<br>Recommended = Multi Region</p><p>Think from real production perspective — banking, stock market, loan systems — not toy apps.</p><p>Regions are connected by high-speed physical network infrastructure.</p><h3>Public vs Private Access</h3><p>Public → Accessible via internet<br>Private → Only accessible internally</p><p>Example:<br>Application Server = Public<br>Database Server = Private</p><h3>AWS Shared Responsibility Model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*oSwEfPjj9PKkfkVSgO3gbg.png" /></figure><p>AWS is responsible for:</p><p>Physical hardware security<br>Data center security<br>Global infrastructure<br>Regions, AZs, edge locations<br>Default service safety</p><p>You are responsible for:</p><p>User data<br>Encryption<br>EC2 configuration<br>Scaling<br>Access configuration<br>Network exposure<br>Application security</p><p>Simple way to remember:</p><p>AWS ensures nobody walks into their data center and plugs a USB.<br>Everything else is mostly your responsibility.</p><p>In the next part, we’ll go through IAM and understand how access and permissions work inside <strong>Amazon Web Services</strong>.</p><p>If you found this useful, feel free to leave a comment and follow for the next part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9598b831edd0" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/aws-part-1-9598b831edd0">AWS PART 1</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS PART 2 — IAM]]></title>
            <link>https://blog.stackademic.com/aws-part-2-iam-332a0de56a00?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/332a0de56a00</guid>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[iam-policy]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[identity-and-access]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 05:14:16 GMT</pubDate>
            <atom:updated>2026-02-26T05:14:16.533Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y9Uc0d5qLU08s-X5" /><figcaption>Photo by <a href="https://unsplash.com/@shotbywoliul?utm_source=medium&amp;utm_medium=referral">Woliul Hasan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When people start learning cloud, they usually focus on compute, storage, networking.<br>But in real production environments, <strong>security and access control decide everything</strong>.</p><p>If compute is the engine, <strong>IAM is the steering wheel</strong>.</p><p>Let’s understand IAM in <strong>Amazon Web Services</strong> in the most practical, real-world way — the way you’ll hear inside companies, interviews, and production environments.</p><h3>Why IAM Matters in Real Life</h3><p>In real companies:</p><ul><li>Hundreds of developers work on same cloud account</li><li>Multiple teams need different levels of access</li><li>Security teams must restrict sensitive operations</li><li>Compliance teams audit who accessed what</li></ul><p>IAM is what makes all this possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*TzAkYA_suuRyTlz36DajXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*QBKCjITAHJgGWK-Bk1aOLw.png" /></figure><h3>Root Account — The Nuclear Button</h3><p>Nobody should have access from root account, root account is just to create AWS account and that’s it, forget about it, only when things go seriously wrong you touch it maybe to get support from AWS, maybe from billing waiver etc.</p><p>IAM very common, if you are working as professional role in AWS everybody will be saying give me an IAM user or give me an IAM account or something like that and that exactly means they want you to give them an account.</p><p>You don’t just give them like this is your username and password, you also attach policy for them, some accounts are specially designed to just monitor them, some accounts are specifically for developers where you want to give them access to higher compute power machines and for some less compute power machines. It’s all about identity who you are, everyone does stuff in their own accounts, what’s allowed depends on what permission you are giving them maybe you are allowing them to access 3 or 4 services, somebody gets 5 or 10 services it’s all like that.</p><h3>Two Ways Users Access AWS</h3><p>User can use web browser to graphically login into account, or maybe he is programmer and wants programmatic access to the account, there are only 2 types of access which are available. You will quite often see about roles, then we will discuss about the groups and then will discuss about policy.</p><h3>IAM Roles — The Temporary Power Badge</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*DQQt7AzMmQ-T2pUb4S7Yvw.png" /></figure><p>Roles are majorly assumed as badge of CTO or team lead or something like that, based on the badge powers are allocated. Most of the time roles are assumed by services which are there in AWS. AWS services cannot automatically do their stuff, you should provide them permissions of that and that’s where role is majorly used.</p><h3>IAM Groups — The Smart Way to Manage Users</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*3uLRrhZKfahf1AGcuWCDlw.png" /></figure><p>Then we have groups, and in the groups they are attached with the policy so for example let’s just say there is admin group and there’s a developer group and there’s a tester group, so each group gets kind of club you can say just like society or college club, once you decide this group any new member comes up you just have to identify that hey you are going to get into developers group or tester group etc.</p><p>Policies are recommended to attach to the groups not on the individual, the idea behind that is once you attach policy on the group, anybody who is part of that group will get that powers or policies, for example if you are part of admin group you automatically get admin privileges, similarly if you are part of developers and admin groups you get both powers of both groups.</p><p>Possible question in AWS exam:</p><ol><li>There is a user should I attach policy to it?<br>A: No, attach policy to group not user.</li></ol><h3>IAM — The Core Idea</h3><p>So whole IAM is about getting user an account and as well as privileges to do assigned task or whatever he is meant to do, for this we will learn about group, role and policy.</p><p>Group is simple way to organize users, just like we have college club.</p><p>Policy defines permissions, what we can do in AWS account, what services can we use in AWS account, there’s always a question about least privilege policy in AWS, it simply says give bare minimum permission or least privilege to users to perform the job.</p><p>User can get permission directly or via group, it’s not like user is not allowed to get permission directly, it can be done, it’s not considered as good practice and AWS is all about promoting good practices, get policies to group and user is actually made part of group.</p><h3>Roles — Delegation and Temporary Access</h3><p>Roles are for delegation and are assumed, you just keep the roles anybody who has the power can actually assume that role, almost think it like 1 day prime minister, whatever you do there that’s official for 1 day and after that it doesn’t, once you leave role of PM, you cannot use that similar power, that’s what roles are.</p><p>Maybe your CloudWatch you want to go into AWS for something as CloudWatch you cannot directly go into AWS EC2 machine so you have to assume a role you have to wear that hat.</p><p>With assumed role you can talk to other services.</p><p>Whenever we spin up any services, their attached minimum roles are actually automatically spun up as part of that, those services actually assume that role and then make it a permission.</p><h3>Root User — Again, Avoid Using</h3><p>Root user ==&gt; the email id which you used for first time creating AWS account, that is root user, it has all permissions, there’s absolutely no way to reduce down that permission, the only way to actually reduce permission is not to use that more often so that’s the way. Should be avoided and enable multi factor authentication (MFA).</p><h3>Creating IAM Users</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*rd5NfsIa98rlYoBmZni43A.png" /></figure><p>Create new user: once you have root user, then you simply go ahead and create new users from that now, new users you can set as much as policy you want, by default there will be no permission on that, it will be an account which can do nothing absolutely zero.</p><p>You can create around 5000 accounts and more, if your organization is much more although 5000 developers who are actually using AWS account that’s a lot already but maybe for some reason you are building next Google or something I don’t know you can also get more than 5000 but you have to make request to AWS and they can enable it, it’s crazy never seen any organization passing this limit, it’s soft limit not hard limit.</p><p>Use policies and prefer groups.</p><h3>ARN — The Unique Identity of Everything</h3><p>In Amazon ARN is quite common terminology being used it’s known as Amazon Resource Name, in Amazon everything needs to be uniquely identified whether it’s bucket i.e storage or compute i.e EC2 machine or maybe another service or anything that you are doing, everything is marked with unique resource name in this case it’s called ARN.</p><p>Whenever you are working at a job or anywhere you will find this terminology quite common like what is ARN of this bucket or ARN of this service or ARN of this file etc, everything has unique resource name, there’s also a regular name be it whatever you call like mymachine or file.jpg or ec2-machine that’s your regular name what you provide, but internally in AWS when you are accessing anything also with programmatic access everything is ARN.</p><h3>IAM Policies — The Rule Book</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*eZ8pEKPlSB5Z3iVoQ2EPcA.png" /></figure><p>POLICIES ARE JSON based documents, in example policy it’s allowing listing of S3 buckets in AWS.</p><p>In policy everything is by default disallowed, unless you explicitly say hey I am allowing you to list the buckets, that means you can’t create or update anything in bucket, explicitly mentioned what you are allowed for.</p><p>Policies can be identity based or resource based.</p><h3>Types of Policies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*65WUxqdeziw9_laryPJhOg.png" /></figure><p>AWS supports 6 type of policies, you don’t have to memorize them, need to know it.</p><p>Identity based policy — attached to user/group/role<br>Resource based policy — attached to resource<br>Permission Boundaries — maximum permission limit inside account<br>Service Control Policies (SCP) — organization level permission guardrail (limits permission, doesn’t grant permission)<br>Access Control List (ACL) — cross account permission scenarios<br>Session Policies — temporary session restriction</p><h3>Important Rule</h3><p>The only way to give permission is:</p><ul><li>Identity based policy</li><li>Resource based policy</li></ul><h3>Console vs Programmatic Access</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*O6odDg524EG3XL750JeuEA.png" /></figure><p>As talked earlier there are 2 ways of how we can actually give any account any permission like that<br>1st way: AWS console<br>2nd way: AWS API</p><p>Que) If I want to give someone programmatic access what should I do?<br>Ans: You should create access key and secret for them, these are like username and password but they are very long string.</p><h3>MFA — Core Authentication Principle</h3><p>Core policy of AWS authentication is:</p><p>You know → password<br>You have → USB key / OTP / authenticator<br>You are → fingerprint / face</p><p>In AWS as of now we don’t have fingerprint or facial authentication.</p><h3>Service Control Policies — The Organization Guardrail</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*YMUU-F7v83UzinlUZnN3PA.png" /></figure><p>SCP limits permission, doesn’t grant permission.</p><p>For example:<br>You can allow developers to create only 5 EC2 instances.<br>6th instance creation → blocked by SCP.</p><p>Very common in:</p><ul><li>Sandbox accounts</li><li>Free company training accounts</li><li>Acquisition company account control</li></ul><p>SCP do not grant permission, they control what permissions are available to be granted for any organization unit.</p><h3>IAM Best Practices</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Bl8oM2nbE1JaiSIKpchcnA.png" /></figure><p>✔ Avoid using Root Account<br>✔ Always Enable MFA<br>✔ Attach Policies to Groups<br>✔ Follow Least Privilege<br>✔ Use Roles for Services<br>✔ Use SCP for Organization Guardrails</p><p>In the next part, we will move from theory to <strong>hands-on IAM implementation</strong>, where we will actually create users, groups, roles, attach policies, and see how permissions behave in real environments.</p><p>Because in cloud, understanding concepts is good — <br> <strong>But building and testing them is what makes you industry ready.</strong></p><p>Stay tuned for hands-on labs, real-world scenarios, interview-focused explanations, and production-level best practices.</p><p>Let’s grow in cloud together ☁️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=332a0de56a00" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/aws-part-2-iam-332a0de56a00">AWS PART 2 — IAM</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security in Kubernetes — PART 1]]></title>
            <link>https://blog.stackademic.com/security-in-kubernetes-part-1-54ccb06e6c19?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/54ccb06e6c19</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[kubernetes-security]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Tue, 24 Feb 2026 13:54:20 GMT</pubDate>
            <atom:updated>2026-02-24T13:54:20.078Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r0vGqra0bTulm-E8" /><figcaption>Photo by <a href="https://unsplash.com/@flyd2069?utm_source=medium&amp;utm_medium=referral">FlyD</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Kubernetes is powerful. But the same power that makes it the backbone of modern cloud infrastructure also makes it one of the biggest security targets today.</p><p>One misconfigured API permission.<br> One exposed secret.<br> One compromised node.</p><p>That’s all it takes to bring down an entire production environment.</p><p>Most engineers learn how to deploy applications on Kubernetes.<br> Very few truly understand how to secure it properly.</p><p>And here’s the reality — Kubernetes is <strong>not secure by default</strong> unless you configure it correctly.</p><p>If you are working in Cloud, DevOps, DevSecOps, or Security Engineering, understanding Kubernetes security is no longer optional — it is mandatory.</p><p>In this blog, we will break down Kubernetes Security Primitives in a way that is simple, practical, and directly usable in real-world environments. You will understand where the real risks are and what actual measures you need to take to secure your cluster.</p><p>If you are serious about building production-grade, enterprise-ready Kubernetes environments — this is for you.</p><p>Let’s get started.</p><ul><li><strong>Kubernetes Security Primitives</strong></li><li><strong>Secure Persistent Key-Value Store</strong></li><li><strong>Authentication and Authorization</strong></li><li><strong>Security Contexts</strong></li><li><strong>TLS Certificates for Cluster Components</strong></li><li><strong>Image Security</strong></li><li><strong>Network Policies</strong></li></ul><h3>KUBERNETES SECURITY PRIMITIVES</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rYzxxgBnbrDYzdztPWEs3Q.png" /></figure><p>Of course, all access to these hosts running Kubernetes must be secured. Root access should be disabled, password-based authentication should be disabled, and only SSH key–based authentication should be allowed.</p><p>And of course, any other measures required to secure your physical or virtual infrastructure hosting Kubernetes must be implemented. Because if that infrastructure is compromised, everything running on top of it is compromised.</p><p>Our focus in this blog is more on Kubernetes-related security — what are the risks, and what measures do you need to take to secure the cluster?</p><p>As we have already seen, the Kube API Server is the center of all operations within Kubernetes. We interact with it through the kubectl utility or by accessing the API directly. Through this, you can perform almost any operation on the cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*xcaG-Pp_0Qmqf35g365qqg.png" /></figure><p>So, this becomes the first line of defense — controlling access to the API server itself.</p><p>We need to make two types of decisions:</p><ul><li>Who can access the cluster?</li><li>What can they do?</li></ul><h3>Authentication — Who Can Access?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*XvV_3qMNxIK6Brm5YdUdlQ.png" /></figure><p>Who can access the API server is defined by authentication mechanisms. There are different ways to authenticate to the API server, including:</p><ul><li>User IDs and passwords stored in static files</li><li>Tokens</li><li>Certificates</li><li>Integration with external authentication providers like LDAP</li></ul><p>Finally, for machines, we create service accounts.<br>We will look at these in more detail in the next parts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apVBjEkbe5KBSxmgSoTwmQ.png" /></figure><p>Once users or systems gain access to the cluster, what they can do is defined by authorization mechanisms.</p><p>Authorization is typically implemented using Role-Based Access Control (RBAC), where users are associated with groups that have specific permissions.</p><p>In addition, there are other authorization modules like:</p><ul><li>Attribute-Based Access Control (ABAC)</li><li>Node authorizers</li><li>Webhooks</li></ul><p>Again, we will look at these in more detail in upcoming posts.</p><h3>Securing Component Communication</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*M5V7K8RxoO2pVvgVQXIoAw.png" /></figure><p>All communication within the cluster — between components such as:</p><ul><li>etcd cluster</li><li>kube controller manager</li><li>kube scheduler</li><li>Worker node components like kubelet and kube-proxy</li></ul><p>— is secured using TLS encryption.</p><p>We have a dedicated section where we will discuss and practice how to set up certificates between the various components.</p><h3>Pod-to-Pod Communication Security</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*AV6hI20AueJURADFSEqw6Q.png" /></figure><p>What about communication between applications inside the cluster?</p><p>By default, all pods can communicate with all other pods within the cluster.</p><p>However, this can be restricted using Network Policies.</p><p>We will look at how exactly this is implemented in the Network Policies section later.</p><p>So that was a high-level overview of the various security primitives in Kubernetes.<br>We will now explore each of these topics in much more detail going forward.</p><h3>Final Thoughts</h3><p>Kubernetes security is not a single feature — it is a layered approach. From infrastructure security to API access control, from workload isolation to network segmentation, every layer matters.</p><p>If you secure only one layer and ignore others, your cluster is still at risk.</p><p>In upcoming parts, we will break down each security primitive with practical implementation and real-world scenarios.</p><p>If you found this helpful, follow for more Kubernetes and Cloud Security content. And if there’s something specific you want covered next, drop it in the comments.</p><p>Thank you for reading and being part of this learning journey!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54ccb06e6c19" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/security-in-kubernetes-part-1-54ccb06e6c19">Security in Kubernetes — PART 1</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Automation Using CAST AI]]></title>
            <link>https://blog.stackademic.com/kubernetes-automation-using-cast-ai-3c817e8e00e9?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c817e8e00e9</guid>
            <category><![CDATA[cast-ai]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[karpenter]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-cost-optimization]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 06:02:16 GMT</pubDate>
            <atom:updated>2026-02-08T06:02:16.643Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ba9-ohICoouNuJzT" /><figcaption>Photo by <a href="https://unsplash.com/@jakubzerdzicki?utm_source=medium&amp;utm_medium=referral">Jakub Żerdzicki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Future of FinOps-Driven Kubernetes Cost Optimization</h3><h3>🚀 Introduction — Kubernetes Is No Longer Optional</h3><p>In 2026 and beyond, it is difficult to imagine any serious technology company that is <strong>not using Kubernetes</strong>.</p><p>Organizations are either:</p><ul><li>Already running production workloads on Kubernetes</li><li>Planning Kubernetes adoption as part of cloud modernization</li><li>Using Kubernetes for <strong>AI, ML, and Agentic AI workloads</strong></li></ul><p>Kubernetes has become the <strong>default platform for cloud-native application deployment</strong>, offering scalability, portability, and resilience.</p><p>But there is one major challenge:</p><p>👉 <strong>Kubernetes cost management</strong></p><p>Many organizations struggle to control Kubernetes spending. In several enterprises, Kubernetes alone contributes a massive portion of total cloud spend — making Kubernetes optimization a core pillar of <strong>FinOps strategy</strong>.</p><h3>💰 Why Kubernetes Cost Optimization Matters</h3><p>Kubernetes environments naturally lead to cost inefficiencies because:</p><ul><li>Over-provisioned CPU and memory requests</li><li>Idle or underutilized nodes</li><li>Fragmented workloads across nodes</li><li>Slow downscaling after traffic spikes</li><li>Manual tuning of autoscaling policies</li></ul><p>Modern platforms now use <strong>AI-driven automation</strong> to solve this.</p><p>This is where <strong>CAST AI</strong> comes into the picture.</p><h3>🌐 What is CAST AI?</h3><p>CAST AI is an <strong>autonomous Kubernetes workload optimization platform</strong> designed to reduce cloud spend while improving performance and stability.</p><p>It enables:</p><ul><li>Intelligent autoscaling</li><li>Workload rightsizing</li><li>Cost visualization</li><li>Node rebalancing</li><li>Pod bin-packing</li><li>Security and vulnerability insights</li></ul><p>The platform continuously analyzes real-time and historical metrics to optimize resource usage automatically.</p><p>It is trusted by thousands of companies globally and integrates with major Kubernetes platforms across clouds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*LpKNyhZ3EuphxSbUpZVizA.png" /></figure><h3>📊 Real Cost Savings — Why Companies Are Adopting CAST AI</h3><p>Real production examples show dramatic cost reductions:</p><ul><li>Companies like Project44 have achieved <strong>~50% cost reduction</strong> through automation and bin-packing strategies</li><li>Spot instance automation can push savings even higher (60%+)</li></ul><p>Example scenario:</p><ul><li>Cluster cost reduced from <strong>$414 → $138 per month</strong> after automation and spot optimization</li></ul><p>These are not theoretical optimizations — they are <strong>real production savings</strong>.</p><h3>🧠 How CAST AI Works (Core Architecture Philosophy)</h3><p>CAST AI continuously performs:</p><p>✅ Resource usage analysis<br>✅ Price-performance instance comparison<br>✅ Workload migration without downtime<br>✅ Node lifecycle automation<br>✅ Predictive scaling and cost forecasting</p><p>The platform even supports <strong>live container migration</strong> and in-place pod resizing without downtime. (<a href="https://cast.ai/workload-optimization/?utm_source=chatgpt.com">Cast AI</a>)</p><h3>🛠 Step 1 — Onboarding CAST AI</h3><p>Onboarding is straightforward:</p><p>Cast AI Sign up link : <a href="https://login.cast.ai/">https://login.cast.ai/</a></p><ol><li>Create account using:</li></ol><ul><li>GitHub or</li><li>Email</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*R7EbUxf3yFbCrcOe1hWe2w.png" /></figure><ol><li>Connect cluster from:</li></ol><ul><li>EKS</li><li>AKS</li><li>GKE</li><li>OpenShift or</li><li>KOPS</li></ul><p>2. Run CAST AI agent deployment (kubectl apply via curl installer)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*1Pi9k_k4mkvmJpssvbJPnQ.png" /></figure><p>Since deployment uses Kubernetes manifests, you must run it from a machine with kubeconfig access.</p><h3>📈 Step 2 — Start With Cost Monitoring (Recommended Approach)</h3><p>Before optimization — understand cost patterns.</p><p>CAST AI provides granular cost visibility across:</p><ul><li>Cluster level</li><li>Namespace level</li><li>Workload level (Deployment, StatefulSet, Pod)</li><li>Allocation groups (useful for org → sub-org → team mapping)</li></ul><p>This is extremely useful for <strong>FinOps teams tracking cost per project or business unit</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*S8K1IxJ_MHVGJjJiPrHqLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*YPZe-7V01iMPjvH-Y8fA5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*3Qq4iAT5zG7ldi1z3Y-mBA.png" /></figure><h3>📊 Granular Cost Intelligence Example</h3><p>You can analyze:</p><ul><li>Monthly pod cost</li><li>Forecasted cost using AI prediction</li><li>Resource utilization vs cost ratio</li></ul><p>This helps answer business questions like:</p><p>👉 Which project consumes most infra budget?<br>👉 Which namespace is inefficient?<br>👉 Which workload is over-provisioned?</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*XJmkCTsgAjb--_aq05bzgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*txkFDKqEeeSemBVI6eqqlw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*6scHpZQFFcZlZWkFgMYGuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*uqdCfxqvNULOEGbk_7ZvCw.png" /></figure><h3>⚙️ Step 3 — Cost Optimization Features (The Real Magic)</h3><h3>🔁 Scheduled Rebalancing</h3><p>Rebalancing replaces inefficient or outdated nodes with cheaper, better ones automatically.</p><p>It works by redistributing workloads across optimal nodes and removing fragmentation waste. (<a href="https://docs.cast.ai/docs/rebalancing?utm_source=chatgpt.com">Cast AI</a>)</p><p>This helps:</p><ul><li>Replace expensive instance types</li><li>Remove unused CPU fragmentation</li><li>Align cluster with latest pricing and instance options</li></ul><p>You can run rebalancing:</p><ul><li>Cluster-wide</li><li>Node-specific</li><li>Scheduled (e.g., weekends or low-traffic windows)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*bbPCYgJIStu7AhZXNbNg4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Z9_3aj-QLpUVkhmgoQsJ6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*1BKnaFcZt7nKblSb1VIq1w.png" /></figure><h3>📉 Intelligent Autoscaling + Fast Downscaling</h3><p>CAST AI autoscaler:</p><ul><li>Picks cheapest valid instance automatically</li><li>Tracks real-time cloud pricing</li><li>Removes empty nodes automatically (<a href="https://docs.cast.ai/docs/autoscaler?utm_source=chatgpt.com">Cast AI</a>)</li></ul><p>Downscaling is where major savings happen.</p><p>Traditional autoscaling:</p><ul><li>Scales up fast</li><li>Scales down slowly</li></ul><p>CAST AI:</p><ul><li>Predicts demand drop</li><li>Removes nodes aggressively but safely</li></ul><p>This is huge when scaling from 100 → 10 nodes.</p><h3>🧹 Evictor — Smart Pod Consolidation</h3><p>Think of a train analogy:</p><p>Instead of 3 half-empty coaches → consolidate into 1 → remove others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*hChpf1yFxZTtjeHM2SEqhw.png" /></figure><p>CAST AI Evictor:</p><ul><li>Detects underutilized nodes</li><li>Moves pods safely</li><li>Deletes empty nodes</li><li>Prevents paying for idle compute (<a href="https://cast.ai/blog/automate-kubernetes-deployment-with-cast-ai-to-reduce-your-cloud-bill-by-60/?utm_source=chatgpt.com">Cast AI</a>)</li></ul><p>This is essentially <strong>continuous automated bin-packing</strong>.</p><h3>💸 Available Savings Insights</h3><p>CAST AI dashboard shows:</p><ul><li>Current monthly spend</li><li>Predicted optimized spend</li><li>Potential savings percentage</li></ul><p>These estimates come from applying:</p><ul><li>Autoscaling</li><li>Rebalancing</li><li>Spot automation</li><li>Evictor bin-packing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*vDR91xMVU8YOAjUXPlF3jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*yuAg2Cl8QFY5VrFUoU6Mgg.png" /></figure><h3>🔐 Security + Vulnerability Intelligence</h3><p>CAST AI also provides:</p><ul><li>Image vulnerability mapping</li><li>Attack path visibility</li><li>Compliance insights</li><li>Workload impact analysis</li></ul><p>Meaning you get <strong>cost + security</strong> in one platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*OjplfSvja2rgs-9wfOHW8Q.png" /></figure><h3>⚔️ CAST AI vs Karpenter</h3><p>Let’s compare realistically.</p><h3>🟢 Karpenter</h3><p>Pros:</p><ul><li>Open source</li><li>Strong node provisioning automation</li><li>Excellent for AWS EKS scaling</li></ul><p>Cons:</p><ul><li>Needs setup + maintenance</li><li>Requires EC2 + operational overhead</li><li>Limited multi-cloud operational maturity</li></ul><h3>🔵 CAST AI</h3><p>Pros:</p><ul><li>Fully managed SaaS</li><li>Multi-cloud (EKS, AKS, GKE, OpenShift, KOPS)</li><li>Cost + Security + Visibility</li><li>Faster downscaling</li><li>Predictive optimization</li><li>Spot automation</li></ul><p>Also works alongside Kubernetes autoscalers and Karpenter if needed.</p><h3>🧾 Why FinOps Teams Love CAST AI</h3><p>Because it directly impacts:</p><p>✔ Cloud cost reduction<br>✔ Resource efficiency<br>✔ Forecasting accuracy<br>✔ Budget accountability<br>✔ Business cost mapping</p><h3>🧠 Real Enterprise Value</h3><p>Instead of:</p><p>Manual tuning → Guesswork → Delayed savings</p><p>You get:</p><p>AI optimization → Continuous savings → Predictable spend</p><h3>🔮 The Future — Kubernetes + AI Optimization</h3><p>As AI workloads grow:</p><ul><li>GPU clusters</li><li>LLM training workloads</li><li>Agentic AI microservices</li></ul><p>Cost optimization will become <strong>non-optional</strong>.</p><p>Platforms like CAST AI will become core infra components.</p><h3>🏁 Final Thoughts</h3><p>Every company needs Kubernetes.<br>But not every company can afford inefficient Kubernetes.</p><p>CAST AI brings:</p><ul><li>AI-driven optimization</li><li>Automated FinOps enforcement</li><li>Multi-cloud Kubernetes intelligence</li></ul><p>In the future, Kubernetes without automation will feel like running cloud without autoscaling.</p><h3>📚 References</h3><ul><li><a href="https://cast.ai/case-studies/">https://cast.ai/case-studies/</a></li><li><a href="https://cast.ai/case-studies/project44/">https://cast.ai/case-studies/project44/</a></li><li><a href="https://docs.cast.ai/docs/getting-started">https://docs.cast.ai/docs/getting-started</a></li><li><a href="https://docs.cast.ai/docs/scheduled-rebalancing">https://docs.cast.ai/docs/scheduled-rebalancing</a></li></ul><p>If you found this guide useful, feel free to leave a comment or share your thoughts.<br> If you have implemented better optimization strategies or tools, I’d love to learn from you — stay tuned !!!</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c817e8e00e9" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/kubernetes-automation-using-cast-ai-3c817e8e00e9">Kubernetes Automation Using CAST AI</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Service in Kubernetes— PART 3]]></title>
            <link>https://blog.stackademic.com/service-in-kubernetes-part-3-65c0579a9a5e?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/65c0579a9a5e</guid>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 16:31:48 GMT</pubDate>
            <atom:updated>2026-02-06T16:31:48.803Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O_7B_DudHHiYyWf8" /><figcaption>Photo by <a href="https://unsplash.com/@dkomow?utm_source=medium&amp;utm_medium=referral">Daniil Komov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><h4>Why Service Is a Very Critical Component in Kubernetes ???</h4><p>Service is a very critical component in Kubernetes.</p><p>Like I said in previous parts, in real production scenarios:</p><ul><li>We don’t deploy Pods directly</li><li>We deploy Deployments</li><li>And most of the time, for each Deployment, we create a Service</li></ul><p>Now let’s understand:</p><ul><li>Why Service is needed in Kubernetes</li><li>What happens if there is no Service concept in Kubernetes</li></ul><h3>🧱 What Happens When We Deploy Applications in Kubernetes</h3><p>When a DevOps engineer or developer deploys an application using Deployment in Kubernetes:</p><p>Deployment → ReplicaSet → Pods</p><p>Deployment creates ReplicaSet.<br>ReplicaSet creates Pods.</p><h3>📊 What Is Ideal Pod Size?</h3><p>It depends on:</p><ul><li>Number of concurrent users</li><li>Number of requests application can handle</li></ul><p>If there is a requirement of creating 3 replicas of Pods, Kubernetes will create 3 Pods.</p><h3>⚠ Reality of Kubernetes — Pods Going Down Is Normal</h3><p>In Kubernetes world:</p><ul><li>Pod going down is very common</li><li>Kubernetes gives auto-healing capability</li><li>Containers are ephemeral (if containers die, they don’t come back automatically)</li></ul><p>Even if a Pod dies, it won’t come back automatically without ReplicaSet capability.</p><p>Because of ReplicaSet, even if one Pod goes down, it will come up again.</p><h3>🚨 The Hidden Problem — Pod IP Changes</h3><p>When a new Pod comes up, the IP address is different from the Pod that died.</p><p>Now let’s talk about a scenario where there is <strong>no Service concept</strong> in Kubernetes.</p><p>As DevOps engineers, we usually share application IP address with:</p><ul><li>Test teams</li><li>Other projects</li><li>Client teams</li></ul><p>Let’s say:<br>There are 3 Pods.<br>There are 3 user projects trying to access this application.</p><p>We give:<br>User Project 1 → Pod Replica 1 IP<br>User Project 2 → Pod Replica 2 IP<br>User Project 3 → Pod Replica 3 IP</p><p>Everything is working fine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*HSfuQJ0Pw6vs8ef8_gR0kg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*502A5J5iw6jGOA59TKU47w.png" /></figure><h3>🔥 Real Production Incident Scenario</h3><p>Let’s say:<br>User Project 1 has 10 members.</p><p>If one pod is down</p><p>They say:<br>👉 Application is not working<br>👉 Application is not reachable</p><p>As a DevOps engineer, you say:<br>👉 Everything is correct<br>👉 Application is running</p><p>There may be arguments.</p><p>After debugging, you find:<br>User is sending request to old Pod IP<br>That Pod is gone<br>New Pod came with new IP</p><p>Now:<br>You are not wrong<br>User is not wrong</p><p>Problem = Architecture problem.</p><h3>🌍 Real World Example — Google</h3><p>In real world, will Google ever say:</p><p>User 1 → Access using IP 100.64.2.7<br>User 2 → Access using IP 100.64.3.9</p><p>No.</p><p>Google does load balancing.</p><p>Kubernetes also provides similar capability.</p><h3>🛠 Solution — Kubernetes Service</h3><p>Instead of asking users to access application via Pod IP address, we create a Service on top of Deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A84SBLNru970oLIZYGbe-A.png" /></figure><p>Now users access application using:</p><pre>payment.default.svc</pre><p>Instead of IP address.</p><h3>⚖ Service Acts as Load Balancer</h3><p>Let’s say we have 3 Pods:</p><pre>172.16.3.4<br>172.16.3.5<br>172.16.3.6</pre><p>Service uses kube-proxy internally.</p><p>Service will send requests to different Pod IPs based on load.</p><p>✅ Load balancing achieved.</p><h3>❓ Important Question — Won’t Service Also Fail?</h3><p>You might think:</p><p>If Pod IP changes, Service should also fail, right?</p><p>Because Service forwards requests to Pods.</p><p>Good question.</p><p>This is solved using <strong>Service Discovery</strong>.</p><h3>🔍 Service Discovery — Most Powerful Feature</h3><p>Service says:</p><p>I don’t care about Pod IP address.<br>I only care about Labels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*lW0gs2zYnyKtD_U-EqQZZw.png" /></figure><p>DevOps engineers apply labels to Pods.</p><p>Example:</p><pre>app: payment</pre><p>Service tracks Pods using labels, not IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SeWGL8XnLxx-RheEoIhVw.png" /></figure><h3>🔄 Why Labels Don’t Change</h3><p>ReplicaSet creates Pods using same YAML manifest.</p><p>If Pod goes down:<br>ReplicaSet creates new Pod with same label.</p><p>Even if IP changes → Label stays same → Service works.</p><p>This is how Service maintains Service Discovery.</p><h3>🌐 Third Major Capability — Exposing Application Outside Cluster</h3><p>Anyone with cluster access can access application.</p><p>But real world doesn’t work like that.</p><p>You cannot ask customers to:</p><ul><li>SSH into cluster</li><li>Use VPN</li><li>Login to Kubernetes</li></ul><p>Will Google ever say:<br>Login to our internal network to use Google?</p><p>No.</p><p>Service exposes application outside cluster.</p><h3>📦 Types of Kubernetes Services</h3><h3>🟢 ClusterIP (Default)</h3><p>Application accessible only inside Kubernetes cluster.</p><p>Gives:</p><ul><li>Load balancing</li><li>Service discovery</li></ul><p>Only users with cluster network access can use application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*azgbrQ5M5ChwqyUmErsTgg.png" /></figure><h3>🟡 NodePort</h3><p>Application accessible inside organization network.</p><p>Users don’t need cluster access.<br>But must have access to Worker Node IP.</p><p>If Worker Node is EC2 instance →<br>Anyone with access to EC2 IP can access app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xj_F1PlMu4JHHa_89CpvCw.png" /></figure><h3>🔴 LoadBalancer</h3><p>Used in Cloud environments like AWS EKS.</p><p>Kubernetes API Server → Cloud Control Manager → Cloud Provider → Creates Load Balancer → Public IP given.</p><p>Anyone with internet can access application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5ugAVA7hDJd13cHNyneoA.png" /></figure><h3>⚠ Important Real Note</h3><p>LoadBalancer works mainly in Cloud providers.</p><p>In Minikube or Local Kubernetes:<br>LoadBalancer won’t work by default.</p><p>(There are solutions — we will see later.)</p><h3>📌 Access Summary</h3><p>ClusterIP → Only cluster internal users<br>NodePort → Organization network users<br>LoadBalancer → Public internet users</p><h3>☁ Behind the Scenes (Cloud)</h3><p>Kubernetes API → Cloud Control Manager → Cloud Provider → Public IP → Service → Pods</p><h3>✅ Advantages of Kubernetes Service</h3><p>✔ Load Balancing<br>✔ Service Discovery<br>✔ External Exposure</p><h3>🎯 Why Service Is Mandatory in Production</h3><p>Without Service:</p><ul><li>Pod IP changes break apps</li><li>Users face downtime</li><li>Automation fails</li></ul><p>With Service:</p><ul><li>Stable endpoint</li><li>Scaling safe</li><li>Auto healing safe</li><li>Cloud ready</li></ul><h3>📚 Reference</h3><p><a href="https://kubernetes.io/docs/concepts/services-networking/service/">Service</a></p><p>If you found this guide useful, please <strong>leave a comment or share your thoughts</strong>!</p><p>In the next part, we’ll explore <strong>Kubernetes Services</strong> with a hands-on deep dive, which help your Pods communicate inside and outside the cluster. This series will be hands-on based.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65c0579a9a5e" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/service-in-kubernetes-part-3-65c0579a9a5e">Service in Kubernetes— PART 3</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Your First Kubernetes Pod with Nginx — PART 1]]></title>
            <link>https://blog.stackademic.com/creating-your-first-kubernetes-pod-with-nginx-part-1-53c40b5553fd?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/53c40b5553fd</guid>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Thu, 05 Feb 2026 07:45:40 GMT</pubDate>
            <atom:updated>2026-02-05T07:45:40.018Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deploy Your First Nginx Pod in Kubernetes — PART 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TwbtQWkKrlmtPBaF" /><figcaption>Photo by <a href="https://unsplash.com/@dkomow?utm_source=medium&amp;utm_medium=referral">Daniil Komov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>In this blog, we will create a simple <strong>Nginx Pod</strong> in Kubernetes and verify it’s running. We’ll also check the application inside the node, similar to how we do in Docker.</p><p>This guide uses a <strong>free playground</strong> environment: https://killercoda.com/playgrounds/scenario/kubernetes</p><p><a href="https://killercoda.com/playgrounds/scenario/kubernetes">Killercoda Kubernetes Playground</a></p><p>Before we start, let’s quickly understand what a <strong>Pod</strong> is:</p><ul><li>A <strong>Pod</strong> is the <strong>smallest deployable unit</strong> in Kubernetes.</li><li>It can contain <strong>one or more containers</strong> that share the same network, storage, and lifecycle.</li><li>Think of it as a <strong>wrapper around a container</strong>, allowing Kubernetes to manage it effectively.</li><li>Pods make it easy to <strong>deploy, scale, and manage containerized applications</strong>.</li></ul><blockquote><em>In this guide, we’ll create a Pod that runs an </em><strong><em>Nginx web server</em></strong><em>, similar to how you might run it with Docker.</em></blockquote><h3>Step 1: Check Your Cluster Nodes</h3><pre>controlplane:~$ kubectl get nodes<br>NAME           STATUS   ROLES           AGE     VERSION<br>controlplane   Ready    control-plane   3d18h   v1.34.3<br>node01         Ready    &lt;none&gt;          3d18h   v1.34.3</pre><blockquote><em>We can use this playground environment for free.</em></blockquote><h3>Step 2: Create the Pod</h3><p>Reference: <a href="https://kubernetes.io/docs/concepts/workloads/pods/">Kubernetes Pods</a></p><p>Edit a YAML file for the pod:</p><p>pod.yaml is just specification of Docker container i.e it tells how Docker container should run</p><pre>vi pod.yaml</pre><p>Content of pod.yaml:</p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: nginx<br>spec:<br>  containers:<br>  - name: nginx<br>    image: nginx:1.14.2<br>    ports:<br>    - containerPort: 80</pre><p><strong>Docker Equivalent Command:</strong></p><pre>docker run -d nginx:1.14.2 -name nginx -p 80:80</pre><p>Apply the pod YAML:</p><pre>controlplane:~$ kubectl apply -f pod.yaml<br>pod/nginx created</pre><h3>Step 3: Verify the Pod</h3><pre>controlplane:~$ kubectl get pods<br>NAME    READY   STATUS    RESTARTS   AGE<br>nginx   1/1     Running   0          2m46s</pre><p>For more details:</p><pre>controlplane:~$ kubectl get pods -o wide<br>NAME    READY   STATUS    RESTARTS   AGE     IP            NODE     NOMINATED NODE   READINESS GATES<br>nginx   1/1     Running   0          2m49s   &lt;ip-address&gt;   node01   &lt;none&gt;           &lt;none&gt;</pre><h3>Step 4: Access the Pod from Node</h3><p>Login to the Kubernetes node (master or worker):</p><pre>ssh node01</pre><p>Inside the node, run a curl command to check the Nginx application:</p><pre>curl &lt;ip-address&gt;</pre><p>Output:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Welcome to nginx!&lt;/title&gt;<br>&lt;style&gt;<br>    body {<br>        width: 35em;<br>        margin: 0 auto;<br>        font-family: Tahoma, Verdana, Arial, sans-serif;<br>    }<br>&lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Welcome to nginx!&lt;/h1&gt;<br>&lt;p&gt;If you see this page, the nginx web server is successfully installed and<br>working. Further configuration is required.&lt;/p&gt;</pre><h3>DELETE POD</h3><pre>controlplane:~$ kubectl delete pod nginx<br>pod &quot;nginx&quot; deleted</pre><h3>References</h3><ul><li><a href="https://kubernetes.io/docs/concepts/workloads/pods/">Kubernetes Pods Documentation</a></li><li><a href="https://kubernetes.io/docs/reference/kubectl/quick-reference/">Kubectl Quick Reference</a></li></ul><p>If you found this guide useful, please <strong>leave a comment or share your thoughts</strong>!</p><p>In the <strong>next part</strong>, we’ll explore the concept of <strong>Kubernetes Deployments</strong>. This series will be <strong>mostly hands-on</strong>, so get ready to deploy scalable applications step by step.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53c40b5553fd" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/creating-your-first-kubernetes-pod-with-nginx-part-1-53c40b5553fd">Creating Your First Kubernetes Pod with Nginx — PART 1</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Your First Nginx Deployment in Kubernetes — PART 2]]></title>
            <link>https://blog.stackademic.com/deploy-your-first-nginx-deployment-in-kubernetes-part-2-18826633f13e?source=rss-11434b67fd08------2</link>
            <guid isPermaLink="false">https://medium.com/p/18826633f13e</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sathvika B]]></dc:creator>
            <pubDate>Thu, 05 Feb 2026 07:45:37 GMT</pubDate>
            <atom:updated>2026-02-05T07:45:37.564Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deploy Your First Nginx Deployment in Kubernetes — PART 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3O_lmGdV-YOOjdvn" /><figcaption>Photo by <a href="https://unsplash.com/@dkomow?utm_source=medium&amp;utm_medium=referral">Daniil Komov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>In Part 1, we learnt about <strong>Pods</strong> — creating them, debugging, and checking logs.</p><p>In this part, we’ll learn <strong>how to add auto-scaling and auto-healing capabilities</strong>, which is why Kubernetes is <strong>better than Docker</strong> for production workloads.</p><p>The answer to achieving these capabilities lies in <strong>Deployment</strong>, which is a wrapper on top of Pods.</p><h3>Why Learn Pods if We Are Moving to Deployment?</h3><p>You might ask, <em>“Why do we have to learn about Pods at all if we are moving to Deployment?”</em></p><ul><li>A <strong>Deployment</strong> is just a <strong>wrapper for Pods</strong> — we change the kind and add more capabilities.</li><li>In <strong>real-time production scenarios</strong>, we <strong>don’t deploy Pods directly</strong>. We deploy:</li><li><strong>Deployments</strong></li><li><strong>DaemonSets</strong></li><li><strong>StatefulSets</strong> etc</li></ul><p>In Part 1, we learned about Pods, <strong>debugging Pods</strong>, and getting the status of a Pod:</p><pre>kubectl describe pod nginx</pre><p>We also learned to see <strong>logs of the application</strong>:</p><pre>kubectl logs nginx</pre><h3>Docker vs Kubernetes Pods</h3><p>We can create containers using Docker with a command like:</p><pre>docker run -it -d &lt;image-name&gt; -p &lt;port&gt; -v &lt;volume&gt; --network &lt;network&gt;</pre><ul><li>We can pass a bunch of parameters</li><li>To bring an <strong>enterprise-style deployment</strong> to this Pod concept, we use <strong>YAML manifests</strong> instead of command-line commands</li></ul><blockquote><em>A </em><strong><em>YAML manifest</em></strong><em> is basically the </em><strong><em>running specification of a Docker container</em></strong><em>, with the difference that a Pod can have </em><strong><em>single or multiple containers</em></strong><em>.</em></blockquote><p>We create multiple containers in a Pod when the application depends on another container (like a <strong>sidecar</strong>). For example:</p><ul><li><strong>Service mesh sidecar</strong></li><li>Advantage: Both containers share the <strong>same network and localhost</strong></li></ul><h3>What is Deployment? Why Transition from Pod to Deployment?</h3><p>Kubernetes offers two major capabilities that Docker alone does not:</p><ol><li><strong>Auto-healing</strong></li><li><strong>Auto-scaling</strong></li></ol><p>Does a Pod have these capabilities?</p><ul><li><strong>No.</strong> A Pod only provides YAML specification and some advantages, but it <strong>cannot auto-heal or auto-scale</strong>.</li><li>In Kubernetes, this is done by <strong>Deployment</strong>, which ensures <strong>zero downtime</strong>.</li><li>Deployment first creates a <strong>ReplicaSet</strong>, and then the ReplicaSet creates Pods.</li></ul><blockquote><em>Kubernetes suggests: </em><strong><em>Don’t create Pods directly. Create them using Deployment resources.</em></strong></blockquote><h3>Deployment Concepts</h3><ul><li>In a Deployment, you can specify the <strong>number of replicas</strong> of a Pod.</li><li>This is important because in production, <strong>a single replica is not enough</strong>.</li><li>Example: Load from 100 users should be balanced across multiple Pods</li><li>Everything in Kubernetes is specified in a <strong>YAML manifest</strong></li><li>The <strong>ReplicaSet controller</strong> ensures the <strong>desired number of Pods</strong> is always running</li><li>If a user deletes a Pod, the controller <strong>auto-heals</strong> it</li><li>Kubernetes has <strong>default controllers</strong>, and you can also create <strong>custom controllers</strong> like ArgoCD or admission controllers</li></ul><blockquote><strong><em>Possible interview questions:</em></strong></blockquote><ul><li>Difference between <strong>container vs Pod vs Deployment</strong></li><li>Difference between <strong>Deployment vs ReplicaSet</strong><br><strong>Answer:</strong> ReplicaSet controller is what implements <strong>auto-healing</strong> based on the Deployment YAML manifest.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1hum2jMXnHROjjMpbxedQw.png" /></figure><h3>Check All Resources in Namespace / Cluster</h3><pre>kubectl get all</pre><p>Sample output:</p><pre>NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE<br>service/kubernetes   ClusterIP   &lt;ip-address&gt;  &lt;none&gt;        443/TCP   14d</pre><p>To list resources in <strong>all namespaces</strong>:</p><pre>kubectl get all -A</pre><h3>Why Deployment Over Direct Pod Creation</h3><p>If someone deletes your Pod by mistake and you try to access it via curl, the application becomes <strong>unreachable</strong>.</p><ul><li>In Docker, the same thing happens</li><li>In Kubernetes, using a <strong>Deployment resource</strong> ensures the Pod is recreated automatically</li></ul><h3>Create Deployment YAML</h3><p>Don’t memorize syntax — get it from official docs and modify:</p><pre>vi deployment.yaml</pre><p>Content of deployment.yaml:</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: nginx-deployment<br>  labels:<br>    app: nginx<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: nginx<br>  template:<br>    metadata:<br>      labels:<br>        app: nginx<br>    spec:<br>      containers:<br>      - name: nginx<br>        image: nginx:1.14.2<br>        ports:<br>        - containerPort: 80</pre><h3>Apply Deployment</h3><pre>controlplane:~$ kubectl apply -f deployment.yaml<br>deployment.apps/nginx-deployment created</pre><p>Check deployment, ReplicaSet, and Pods:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_5munDrgF7D6gtYgLjhytA.png" /></figure><pre>controlplane:~$ kubectl get deploy<br>NAME               READY   UP-TO-DATE   AVAILABLE   AGE<br>nginx-deployment   3/3     3            3          6s</pre><pre>controlplane:~$ kubectl get replicaset<br>NAME                         DESIRED   CURRENT   READY   AGE<br>nginx-deployment-bf744486c   3         3         3       2m5s</pre><pre>controlplane:~$ kubectl get rs<br>NAME                         DESIRED   CURRENT   READY   AGE<br>nginx-deployment-bf744486c   3         3         3       2m9s</pre><pre>controlplane:~$ kubectl get pods<br>NAME                               READY   STATUS    RESTARTS   AGE<br>nginx-deployment-bf744486c-4m4mc   1/1     Running   0          10s<br>nginx-deployment-bf744486c-9z2rm   1/1     Running   0          10s<br>nginx-deployment-bf744486c-zkh2d   1/1     Running   0          10s</pre><blockquote><em>See the magic! We just created a Deployment, and Pods were automatically created.</em></blockquote><ul><li><strong>Deployment → ReplicaSet → Pods</strong></li><li>Deployment is an abstraction; ReplicaSet is the <strong>Kubernetes controller</strong> ensuring the <strong>desired state</strong></li></ul><h3>Watch Pods in Real-Time</h3><p>Start watching Pods:</p><pre>kubectl get pods -w</pre><p>Delete a Pod and see auto-healing:</p><pre>kubectl delete pod nginx-deployment-bf744486c-4m4mc</pre><p>Sample output while Pod is deleted and recreated:</p><pre>NAME                               READY   STATUS    RESTARTS   AGE<br>nginx-deployment-bf744486c-4m4mc   1/1     Terminating   0          10s<br>nginx-deployment-bf744486c-4hfls   0/1     ContainerCreating   0          10s<br>nginx-deployment-bf744486c-4hfls   1/1     Running   0          10s</pre><p>Check final Pods:</p><pre>controlplane:~$ kubectl get pods<br>NAME                               READY   STATUS    RESTARTS   AGE<br>nginx-deployment-bf744486c-4hfls   1/1     Running   0          4m15s<br>nginx-deployment-bf744486c-9z2rm   1/1     Running   0          11m<br>nginx-deployment-bf744486c-zkh2d   1/1     Running   0          11m</pre><blockquote><em>Auto-healing and scaling in action! This is why Deployment is </em><strong><em>preferred over Pods</em></strong><em> in production.</em></blockquote><h3>Conclusion</h3><ul><li>Pods are the <strong>building blocks</strong>, but <strong>Deployments</strong> bring <strong>auto-healing, scaling, and zero downtime</strong>.</li><li><strong>Never deploy Pods directly</strong> in production; always use <strong>Deployment resources</strong>.</li><li>In the next part, we’ll explore <strong>advanced Deployment features like rolling updates, strategies, and scaling</strong>.</li></ul><h3>References</h3><ul><li><a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/">Kubernetes Official Docs: Deployment</a></li></ul><p>If you found this guide useful, please <strong>leave a comment or share your thoughts</strong>!</p><p>In the <strong>next part</strong>, we’ll explore <strong>Kubernetes Services</strong>, which help your Pods communicate inside and outside the cluster.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18826633f13e" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/deploy-your-first-nginx-deployment-in-kubernetes-part-2-18826633f13e">Deploy Your First Nginx Deployment in Kubernetes — PART 2</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>