<?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 Nidhish ABRAHAM on Medium]]></title>
        <description><![CDATA[Stories by Nidhish ABRAHAM on Medium]]></description>
        <link>https://medium.com/@nidhishabraham?source=rss-0d8b635d5cca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*n5Qweh9BDYeJv-7h8jE2Pw.jpeg</url>
            <title>Stories by Nidhish ABRAHAM on Medium</title>
            <link>https://medium.com/@nidhishabraham?source=rss-0d8b635d5cca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:48:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nidhishabraham/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[ Agentic AI: The Next Evolution of Artificial Intelligence]]></title>
            <link>https://medium.com/@nidhishabraham/agentic-ai-the-next-evolution-of-artificial-intelligence-69976e0ad92f?source=rss-0d8b635d5cca------2</link>
            <guid isPermaLink="false">https://medium.com/p/69976e0ad92f</guid>
            <dc:creator><![CDATA[Nidhish ABRAHAM]]></dc:creator>
            <pubDate>Tue, 19 Aug 2025 19:53:27 GMT</pubDate>
            <atom:updated>2025-08-19T20:08:55.810Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Artificial Intelligence</strong> has already transformed industries, from healthcare to finance to education. But a new paradigm is emerging — <strong>Agentic AI</strong>. Unlike traditional AI models that simply respond to prompts, <strong>Agentic AI systems can reason, plan, and take actions autonomously</strong>. They don’t just answer questions — they act like <em>digital agents</em> that collaborate, execute tasks, and adapt dynamically.</p><p>🤖 <strong>What is Agentic AI?</strong></p><p><strong>Traditional AI</strong> = <em>Static assistants</em> (respond when asked — A calculator waiting for inputs).</p><blockquote><strong>Agentic AI</strong> = <em>Proactive agents</em> (decide, reason, and act — A personal financial advisor who not only calculates but also suggests strategies, executes trades, and monitors risks.).</blockquote><p>🧩 <strong>Core Capabilities of Agentic AI — </strong>Agentic AI combines several abilities:</p><ol><li><strong>Reasoning &amp; Planning</strong> — Multi-step problem solving instead of single prompt answers.</li><li><strong>Memory &amp; Context</strong> — Retains knowledge from past interactions.</li><li><strong>Autonomous Action</strong> — Executes tasks via APIs, systems, or other tools.</li><li><strong>Collaboration</strong> — Works with humans or other AI agents in workflows.</li><li><strong>Self-Improvement</strong> — Learns and adapts from experience.</li></ol><p><strong>🌍 Why Agentic AI Matters — </strong>Agentic AI is not just hype — it is already reshaping industries:</p><ul><li><strong>Healthcare</strong>: AI agents that schedule appointments, analyze test results, and recommend treatments.</li><li><strong>Finance</strong>: Autonomous agents executing trades and monitoring portfolios.</li><li><strong>IT &amp; DevOps</strong>: AI agents running Kubernetes clusters, scaling services, and resolving incidents.</li><li><strong>Education</strong>: Personalized AI tutors guiding students step-by-step.</li></ul><p>⚠️<strong>Challenges &amp; Risks — </strong>With great power comes responsibility. Agentic AI also raises concerns:</p><ul><li><strong>Safety</strong> — Ensuring autonomous actions don’t cause harm.</li><li><strong>Ethics</strong> — Who is accountable for AI-driven decisions?</li><li><strong>Security</strong> — Preventing malicious use of autonomous agents.</li><li><strong>Control</strong> — Balancing autonomy with human oversight.</li></ul><p>🚦<strong>The Road Ahead — </strong>We are just at the beginning of the <strong>Agentic AI era</strong>. The next few years will bring:</p><ul><li>Smarter personal AI assistants.</li><li>Fully autonomous workflows in IT &amp; business.</li><li>Collaborative swarms of AI agents.</li><li>New standards for AI governance &amp; safety.</li></ul><blockquote>🤖 <strong>Agentic AI</strong> is not here to replace humans — it’s here to <strong>amplify human potential</strong>.</blockquote><p><strong>Final Thoughts — </strong>Just like the internet transformed how we connect, <strong>Agentic AI will transform how we work</strong>. The future won’t be humans vs. AI — it will be <strong>humans + AI agents, working side by side.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69976e0ad92f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Container Isolation: Windows  and Linux  Perspectives]]></title>
            <link>https://medium.com/@nidhishabraham/understanding-container-isolation-windows-and-linux-perspectives-50d375ff0643?source=rss-0d8b635d5cca------2</link>
            <guid isPermaLink="false">https://medium.com/p/50d375ff0643</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Nidhish ABRAHAM]]></dc:creator>
            <pubDate>Sun, 08 Dec 2024 11:12:05 GMT</pubDate>
            <atom:updated>2024-12-08T16:23:55.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*0kaTOcl4oiZLW_sVZB8wMg.jpeg" /></figure><p><strong>Containers </strong>are a cornerstone of modern application deployment, enabling lightweight, efficient, and consistent environments for running software. <strong>A key feature of containers is their isolation — the ability to run multiple containers on the same host without interference.</strong> Let’s explore how Windows and Linux containers achieve this.</p><h3>What is Container Isolation?</h3><p>Container isolation ensures that each container operates as if it is the only one running on a host. This isolation extends to the operating system’s core elements like the file system, processes, networks, and registry. The result is enhanced security, stability, and predictable performance, making containers ideal for deploying microservices and other distributed applications.</p><h3>Isolation in Windows Containers</h3><p>Windows containers rely on <strong>Windows storage filter drivers</strong> and <strong>session isolation</strong> to create a secure and separate environment. Here’s how they work:</p><ol><li><strong>File System Isolation:</strong> Windows storage filter drivers isolate the container’s file system, ensuring it operates independently of other containers or the host.</li><li><strong>Registry Separation:</strong> Containers have their own view of the Windows registry, isolated from the host and other containers.</li><li><strong>Process Isolation:</strong> Containers only see processes running within their environment, providing a clean execution context.</li><li><strong>Network Isolation:</strong> Each container has a unique network stack, ensuring secure communication and preventing interference.</li></ol><h3>Isolation in Linux Containers</h3><p>Linux containers achieve isolation through a combination of <strong>Linux namespaces</strong>, <strong>control groups (cgroups)</strong>, and <strong>union file systems</strong>. These components work together to virtualize the host operating system:</p><ol><li><strong>Namespaces:</strong> These provide the foundation of container isolation by partitioning resources like the file system, network, process IDs, and user IDs. Each container gets its own namespace, creating the illusion of an independent machine.</li><li><strong>Control Groups:</strong> Cgroups manage resource allocation, such as CPU, memory, and disk I/O, preventing any container from monopolizing system resources.</li><li><strong>Union File System:</strong> This allows containers to share common files while enabling modifications in a layered approach. This feature enhances efficiency and reduces storage overhead.</li></ol><h3>Cross-Platform Consistency</h3><p>Despite differences in implementation, both Windows and Linux containers offer similar levels of isolation. They ensure that applications run predictably, securely, and independently, regardless of the underlying host system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50d375ff0643" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Mastering Docker Image Optimization: Techniques to Shrink Your Images]]></title>
            <link>https://medium.com/@nidhishabraham/mastering-docker-image-optimization-techniques-to-shrink-your-images-by-99-05e061eb64e5?source=rss-0d8b635d5cca------2</link>
            <guid isPermaLink="false">https://medium.com/p/05e061eb64e5</guid>
            <dc:creator><![CDATA[Nidhish ABRAHAM]]></dc:creator>
            <pubDate>Sun, 17 Nov 2024 14:40:50 GMT</pubDate>
            <atom:updated>2024-11-18T07:45:10.975Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SDzVd9KmgkaXRmcL916ETw.png" /></figure><p>Reducing the size of <strong>Docker </strong>images is a critical consideration for improving performance, faster deployments, and saving storage costs. The latest techniques in shrinking <strong>Docker </strong>images by up to <strong>99%</strong> focus on both optimizing the image content and utilizing advanced Docker features.</p><p>Here are some of the most important methods Docker experts use to achieve dramatic reductions in image size:</p><h4>1. <strong>Using Multi-Stage Builds</strong></h4><p>Multi-stage builds are one of the most powerful ways to shrink Docker images. By using multiple FROM statements, you can separate the build process into different stages, which allows you to include only the necessary artifacts in the final image, leaving behind build tools and temporary files.</p><p><strong>How it works</strong>:</p><ul><li>In the first stage, you include all the dependencies and tools required for building the application.</li><li>In the second stage, you copy only the necessary build output (e.g., compiled binaries) from the first stage, excluding unnecessary build-time dependencies.</li></ul><pre># Stage 1: Build the application<br>FROM node:16 AS build<br>WORKDIR /app<br>COPY . .<br>RUN npm install &amp;&amp; npm run build<br><br># Stage 2: Create the production image<br>FROM node:16-slim<br>WORKDIR /app<br>COPY --from=build /app/dist /app<br>CMD [&quot;node&quot;, &quot;app.js&quot;]</pre><h4>2. Minimizing Base Images</h4><p>One of the most effective ways to reduce image size is to use smaller base images. alpine images are much lighter than standard images like ubuntu or debian and often only contain the bare essentials.</p><ul><li><strong>Use Alpine Linux</strong>: Alpine images are based on a minimal version of Linux, and typically weigh only around 5MB.</li></ul><pre>FROM node:16-alpine</pre><p>However, be cautious when using Alpine, as some libraries may require additional configuration or dependencies that are not present in the minimal environment.</p><h4>3. Using .dockerignore File</h4><p>Much like a .gitignore file, a .dockerignore file tells Docker which files and directories to exclude from the build context. This helps prevent unnecessary files (such as source code, local development files, or logs) from being copied into the image.</p><p><strong>Example </strong><strong>.dockerignore</strong>:</p><pre>node_modules/<br>*.log<br>.git/</pre><p>By using .dockerignore, you avoid bloating your image with unnecessary files that would only increase its size.</p><h4>4. Layer Optimization</h4><p>Every line in a Dockerfile creates a new image layer, which can add to the final image size. You can reduce the number of layers and optimize them by grouping commands together. This also helps in caching, making builds faster when changes are made.</p><p><strong>Example of layer optimization</strong>:</p><pre># Before: Multiple layers<br>RUN apt-get update<br>RUN apt-get install -y python3<br><br># After: Combined into a single layer<br>RUN apt-get update &amp;&amp; apt-get install -y python3</pre><h4>5. Use of COPY vs ADD</h4><p>While both COPY and ADD copy files into the image, ADD has some extra features (e.g., extracting TAR files, pulling from URLs), which may not be necessary for your build and could result in extra image bloat.</p><p>Where possible, use COPY instead of ADD to keep things simple and avoid unnecessary overhead.</p><pre>COPY . /app</pre><h4>6. Removing Unnecessary Dependencies</h4><p>Ensure that your Docker image contains only the libraries and dependencies that are actually required to run your application. This is particularly important in environments where images are derived from larger base images like ubuntu or debian.</p><p>You can remove unnecessary dependencies after installing them using apt-get remove or similar commands.</p><pre>RUN apt-get update &amp;&amp; apt-get install -y \<br>  build-essential \<br>  &amp;&amp; apt-get clean \<br>  &amp;&amp; rm -rf /var/lib/apt/lists/*</pre><h4>7. Cleaning Up After Installation</h4><p>Sometimes during the build process, additional files, logs, or temporary files are created. Make sure to clean them up after installation to reduce the size of the final image. Docker provides commands such as rm to delete unneeded files.</p><p>For example:</p><pre>RUN npm install --production &amp;&amp; rm -rf /tmp/*</pre><h4>8. Use of BuildKit</h4><p>Docker’s BuildKit is a more efficient way to build Docker images. It has several features that can help reduce image sizes:</p><ul><li><strong>Build secrets</strong>: Keeps sensitive information like API keys out of your image.</li><li><strong>Parallel builds</strong>: Speeds up the build process.</li><li><strong>Cache import/export</strong>: Reuses cached layers from previous builds to speed up and reduce redundant tasks.</li></ul><p>Enable BuildKit in your Docker daemon and build images with the DOCKER_BUILDKIT=1 environment variable.</p><pre>DOCKER_BUILDKIT=1 docker build .</pre><h4>9. Static Linking of Binaries</h4><p>If you’re deploying compiled software or binaries, consider statically linking libraries into the binary. This reduces the need for including entire operating system libraries in your image, as everything needed for execution is embedded into the binary.</p><p>For example, with Go:</p><pre>go build -ldflags &#39;-extldflags &quot;-static&quot;&#39; myapp</pre><h4>10. Slimming Down Application Files</h4><ul><li><strong>Minify code</strong>: Tools like Terser for JavaScript or UglifyCSS for CSS can reduce the size of your code before it&#39;s added to the image.</li><li><strong>Strip Debug Symbols</strong>: Many programming languages include debugging symbols by default in binaries. You can strip these symbols to reduce their size in the final image.</li></ul><p>For example, in Go, you can strip symbols like this:</p><pre>go build -ldflags &#39;-s -w&#39; myapp</pre><h4>Conclusion</h4><p>Using a combination of these strategies can drastically reduce your Docker image sizes. Multi-stage builds, the use of smaller base images like Alpine, and cleaning up unnecessary dependencies and files are some of the best practices you can implement. Always consider the trade-offs for your use case to balance size reduction and functionality, ensuring the final image is both lean and fully operational.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05e061eb64e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Writing Secure Kubernetes Manifests:  Best Practices for ‍‍ DevOps Engineers]]></title>
            <link>https://medium.com/@nidhishabraham/writing-secure-kubernetes-manifests-best-practices-for-devops-engineers-b27448563365?source=rss-0d8b635d5cca------2</link>
            <guid isPermaLink="false">https://medium.com/p/b27448563365</guid>
            <dc:creator><![CDATA[Nidhish ABRAHAM]]></dc:creator>
            <pubDate>Thu, 17 Oct 2024 05:57:04 GMT</pubDate>
            <atom:updated>2024-10-17T06:21:16.041Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fSS61YYHsebkR_Fyr3U9qw.png" /></figure><p><strong>Kubernetes </strong>has become the de facto standard for container orchestration, helping teams scale and manage their applications efficiently. But security is often overlooked when writing Kubernetes manifests.<strong> It’s tempting to simply copy and modify templates from online examples, but doing so without a deep understanding of security risks can expose your applications and infrastructure to vulnerabilities.</strong></p><p>In this article, we will explore key security best practices that DevOps engineers should follow when writing Kubernetes manifests. These tips go beyond basic documentation, digging into lesser-known details that are critical for ensuring secure Kubernetes deployments.</p><h3>1. Set Resource Limits for Containers</h3><p>One of the first lines of defense is ensuring that containers cannot consume unlimited resources. Without proper resource limits, a single container can monopolize CPU or memory, potentially leading to a Denial of Service (DoS) attack within your cluster.</p><h4>Example:</h4><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br> name: secure-pod<br>spec:<br> containers:<br> - name: my-app<br> image: my-app-image:v1<br> resources:<br> requests:<br> memory: &quot;128Mi&quot;<br> cpu: &quot;250m&quot;<br> limits:<br> memory: &quot;512Mi&quot;<br> cpu: &quot;500m&quot;</pre><ul><li><strong>Requests</strong>: Guaranteed minimum resources.</li><li><strong>Limits</strong>: The maximum resources the container can use.</li></ul><h4>Why it’s important:</h4><p>Without these limits, malicious or buggy applications could hog system resources, potentially crashing the entire cluster.</p><h3>2. Use Security Contexts</h3><p>Security contexts allow you to define the security-related options for a pod or container. It’s essential to restrict containers to run with the least privilege necessary.</p><h4>Example:</h4><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: secure-pod<br>spec:<br>  securityContext:<br>    runAsUser: 1000        # Set user<br>    runAsGroup: 3000       # Set group<br>    fsGroup: 2000          # File system group<br>  containers:<br>  - name: my-app<br>    image: my-app-image:v1<br>    securityContext:<br>      readOnlyRootFilesystem: true   # Make root filesystem read-only<br>      allowPrivilegeEscalation: false  # Disable privilege escalation</pre><ul><li><strong>runAsUser</strong>: Avoid running containers as root by assigning a specific user.</li><li><strong>allowPrivilegeEscalation</strong>: Prevent containers from gaining more privileges.</li><li><strong>readOnlyRootFilesystem</strong>: Mount the root filesystem as read-only to prevent unwanted changes.</li></ul><h4>Why it’s important:</h4><p>Running containers as root or allowing privilege escalation can open doors for attackers to take over the node and execute arbitrary code.</p><h3>3. Limit Capabilities with capabilities.drop</h3><p>In Kubernetes, container privileges can be reduced by removing unnecessary Linux capabilities. Containers, by default, have a certain set of capabilities, and some of these can be exploited if not removed.</p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: secure-pod<br>spec:<br>  containers:<br>  - name: my-app<br>    image: my-app-image:v1<br>    securityContext:<br>      capabilities:<br>        drop:<br>          - ALL      # Drop all capabilities<br>        add:<br>          - NET_BIND_SERVICE  # Add only what is necessary</pre><ul><li><strong>Drop all</strong>: Start with no extra privileges and add only what’s needed (e.g., network binding).</li></ul><h4>Why it’s important:</h4><p>By default, containers inherit some Linux capabilities that may not be needed. Reducing these permissions lowers the attack surface.</p><h3>4. Network Policies</h3><p>Kubernetes Network Policies allow you to control the communication between pods. If you don’t define a network policy, pods can communicate with each other without restrictions, which is a security risk.</p><h4>Example:</h4><pre>apiVersion: networking.k8s.io/v1<br>kind: NetworkPolicy<br>metadata:<br>  name: deny-all<br>  namespace: default<br>spec:<br>  podSelector: {}<br>  policyTypes:<br>  - Ingress<br>  - Egress<br>  ingress: []<br>  egress: []</pre><ul><li><strong>Deny all traffic</strong>: Start with a “deny all” policy and then explicitly allow necessary communications.</li><li><strong>Ingress/Egress rules</strong>: Control which pods can receive and send traffic, including IP addresses, ports, and protocols.</li></ul><h4>Why it’s important:</h4><p>Without network policies, attackers could compromise a pod and move laterally within the cluster.</p><h3>5. Use Secrets Correctly</h3><p>Storing sensitive data such as passwords and API keys directly in your Kubernetes manifest is a bad practice. Instead, use Kubernetes Secrets, and ensure these are managed properly.</p><h4>Example:</h4><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: secure-pod<br>spec:<br>  containers:<br>  - name: my-app<br>    image: my-app-image:v1<br>    env:<br>    - name: DB_PASSWORD<br>      valueFrom:<br>        secretKeyRef:<br>          name: db-secret<br>          key: password</pre><ul><li><strong>Avoid storing sensitive information in plain text</strong>.</li><li><strong>Ensure secrets are encrypted at rest</strong> by configuring your cluster to use envelope encryption.</li></ul><h4>Why it’s important:</h4><p>Secrets stored in plain text are easy targets for attackers who manage to access your manifest files.</p><h3>6. Avoid Privileged Containers</h3><p>Privileged containers run with almost the same permissions as the host system. In most cases, this level of access is unnecessary and dangerous.</p><h4>Example:</h4><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: secure-pod<br>spec:<br>  containers:<br>  - name: my-app<br>    image: my-app-image:v1<br>    securityContext:<br>      privileged: false  # Do not run containers with elevated privileges</pre><ul><li><strong>Privileged: false</strong>: Prevents containers from running with excessive permissions.</li></ul><h4>Why it’s important:</h4><p>Running privileged containers gives attackers access to the underlying node, making it much easier to escalate an attack.</p><h3>7. Use Pod Disruption Budgets (PDBs)</h3><p>Pod Disruption Budgets ensure that critical services remain available during voluntary disruptions (such as draining nodes for updates or repairs).</p><h4>Example:</h4><pre>apiVersion: policy/v1<br>kind: PodDisruptionBudget<br>metadata:<br>  name: pdb-example<br>spec:<br>  minAvailable: 2<br>  selector:<br>    matchLabels:<br>      app: my-app</pre><ul><li><strong>minAvailable</strong>: Ensures that a minimum number of pods are always running during a disruption.</li></ul><h4>Why it’s important:</h4><p>A sudden drop in availability might open up an opportunity for attackers, and PDBs prevent unnecessary downtime by maintaining service availability.</p><h3>8. Use Immutable Container Images</h3><p>Ensure that the container image used in your Kubernetes manifests is immutable (i.e., it cannot be changed once created). Tagging images with :latest is bad practice because it can change unexpectedly.</p><h4>Example:</h4><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: secure-pod<br>spec:<br>  containers:<br>  - name: my-app<br>    image: my-app-image:v1.0.1  # Use specific version instead of latest</pre><ul><li><strong>Version-specific tags</strong>: Lock down the version of the container image to prevent unexpected changes.</li></ul><h4>Why it’s important:</h4><p>Using specific image versions avoids the risk of pulling an updated image with security vulnerabilities, breaking changes, or unverified modifications.</p><h3>9. Enable Audit Logs</h3><p>Audit logs are critical for monitoring and tracking activities in your Kubernetes cluster. They can help detect and investigate suspicious behavior.</p><p>To enable audit logging in your cluster, ensure that the API server has the --audit-log-path flag configured.</p><h4>Example:</h4><pre>--audit-log-path=/var/log/kubernetes/audit.log<br>--audit-policy-file=/etc/kubernetes/audit-policy.yaml</pre><h4>Why it’s important:</h4><p>Audit logs provide visibility into the actions performed in your cluster, helping you detect potential security issues early.</p><h3>Conclusion</h3><p>Writing Kubernetes manifests securely requires careful planning and adherence to best practices. It’s not enough to simply copy and modify manifest files — engineers must understand and implement security features across various aspects of the Kubernetes ecosystem, including resource limits, security contexts, network policies, and more.</p><p>By following these guidelines, DevOps engineers can significantly reduce the attack surface of their applications, keeping clusters more secure against both external and internal threats.</p><h3>References:</h3><ul><li>Kubernetes Documentation: Security Context</li><li>Best Practices for Securing Kubernetes</li><li>CNCF: Kubernetes Security Best Practices</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b27448563365" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does Kubernetes achieve high availability?]]></title>
            <link>https://medium.com/@nidhishabraham/how-does-kubernetes-achieve-high-availability-ad85f97e9f06?source=rss-0d8b635d5cca------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad85f97e9f06</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[high-availability]]></category>
            <dc:creator><![CDATA[Nidhish ABRAHAM]]></dc:creator>
            <pubDate>Fri, 11 Oct 2024 19:00:33 GMT</pubDate>
            <atom:updated>2024-10-11T19:02:42.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seziRM5nn8KzHNnglggreg.png" /></figure><p><strong>Kubernetes </strong>achieves high availability through a combination of control plane redundancy, self-healing mechanisms, and load balancing, making it highly resilient and scalable for real-world applications.</p><h4>1. <strong>High Availability of Control Plane Components</strong></h4><p>The control plane is essential to managing the Kubernetes cluster, and ensuring its availability is critical. Kubernetes achieves high availability by replicating its control plane components across multiple nodes.</p><ul><li><strong>Kube-apiserver</strong>: The kube-apiserver is the main component that exposes the Kubernetes API. To ensure high availability, multiple instances of the kube-apiserver can be deployed and load-balanced.</li><li><strong>Etcd</strong>: Etcd is the key-value store that holds all cluster state data. Kubernetes can run etcd in a multi-node, distributed configuration, ensuring redundancy. In a highly available setup, etcd is replicated across several nodes with a quorum (majority) of nodes required for writes, preventing data loss.</li><li><strong>Kube-scheduler and Kube-controller-manager</strong>: These components, responsible for scheduling Pods and managing the state of the cluster (like handling node failures), can run as multiple instances. Kubernetes uses leader election to ensure that only one instance of each component is actively managing the cluster at a time, while others are on standby.</li></ul><h4>2. Self-Healing Mechanisms</h4><p>Kubernetes provides self-healing features that help achieve high availability by automatically managing the lifecycle of Pods, nodes, and workloads.</p><ul><li><strong>Pod Health Checks</strong>: Kubernetes continuously monitors Pods via liveness and readiness probes. If a container fails a liveness probe (i.e., it crashes or hangs), Kubernetes restarts the container automatically. If a container is healthy but not ready to serve traffic (failing a readiness probe), Kubernetes removes it from the service&#39;s load balancer until it&#39;s ready again.</li><li><strong>Node Failure Handling</strong>: Kubernetes checks the health of nodes in the cluster. If a node becomes unresponsive, the control plane marks the node as “NotReady” and reschedules all the Pods running on that node to other healthy nodes.</li><li><strong>Pod Eviction and Replication</strong>: In case of node failure or resource constraints, Kubernetes automatically evicts Pods and spins up new instances on other nodes according to the desired state defined in a Deployment or StatefulSet.</li></ul><h4>3. Load Balancing</h4><p>Kubernetes uses Services to provide load balancing across Pods.</p><ul><li><strong>Service Load Balancing</strong>: Kubernetes Services distribute traffic to Pods based on various algorithms, ensuring that workloads are balanced across healthy Pods. This ensures that no single instance is overloaded.</li><li><strong>Ingress Controllers</strong>: Ingress controllers are responsible for managing and routing external traffic into the cluster. This ensures that traffic is directed to the appropriate Services based on the routing rules defined in the Ingress objects.</li></ul><h3>4. Namespaces for Resource Isolation</h3><p>Kubernetes supports <strong>Namespaces</strong> to provide logical separation within the cluster. This is particularly useful for ensuring high availability in multi-tenant environments or where different environments (e.g., development, testing, production) coexist within the same cluster.</p><p>By isolating resources and workloads into namespaces, Kubernetes prevents conflicts, ensures resource quotas, and limits the blast radius of issues to a single namespace.</p><h4>5. Real-World Use Cases for High Availability</h4><ul><li><strong>Cloud-Based Applications</strong>: Applications deployed in a cloud environment, using Pods for containers (often managed via Deployments), benefit from Kubernetes’ ability to scale horizontally across multiple nodes. When more resources are needed, Kubernetes automatically scales Pods based on resource usage (CPU, memory).</li><li><strong>Microservices Architecture</strong>: Kubernetes is well-suited for managing microservices applications. It allows developers to deploy, scale, and monitor each microservice in isolation, but as part of a unified system, enabling high availability for the entire application.</li><li><strong>Global Load Balancing</strong>: In multi-region deployments, Kubernetes can distribute traffic between clusters running in different geographic locations, ensuring high availability and resilience against regional outages.</li></ul><p>In conclusion, <strong>Kubernetes </strong>achieves high availability by replicating critical components, automatically healing unhealthy workloads, balancing traffic, and offering isolation via namespaces. These mechanisms make Kubernetes a highly reliable platform for running production-grade applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad85f97e9f06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Infrastructure using Terraform (IaC)]]></title>
            <link>https://medium.com/@nidhishabraham/azure-infrastructure-using-terraform-iac-2a6dc9672a43?source=rss-0d8b635d5cca------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a6dc9672a43</guid>
            <dc:creator><![CDATA[Nidhish ABRAHAM]]></dc:creator>
            <pubDate>Sun, 01 Sep 2024 05:40:48 GMT</pubDate>
            <atom:updated>2024-09-12T08:09:46.966Z</atom:updated>
            <content:encoded><![CDATA[<h3>☁️🛠️<strong>Azure Infrastructure using Terraform (IaC)</strong></h3><p>A step-by-step approach to setting up and managing infrastructure on <strong>Azure </strong>using <strong>Terraform</strong>.</p><p>It includes creating Terraform manifest files for defining and configuring resources, executing commands to initialize, plan, and apply changes, and explains how to destroy resources when needed.</p><p>This streamlined process ensures efficient management of Azure resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F4lH4qm4YEmfi9Qm4rTBQg.png" /><figcaption>Azure Infrastructure using Terraform (IaC)</figcaption></figure><h3>1. Create the Terraform Manifest Files</h3><p><strong>[main.tf] : </strong>This file defines the Azure provider and backend for storing the Terraform state.</p><p><strong>Terraform block:</strong> Defines the required provider (Azure) and version and configures the backend to store the state in an Azure Storage Account.</p><p><strong>Provider block:</strong> Configures the Azure provider, specifying the subscription ID.</p><p><strong>Resource Group:</strong> Creates a resource group in the “US West” region.</p><p><strong>[variables.tf] : </strong>This file defines the variables used in the configuration.</p><p><strong>Prefix variable:</strong> This variable is used as a prefix for naming resources, making it easier to identify and manage related resources.</p><p><strong>[vpc.tf]</strong> : This file defines the network infrastructure components, including the Virtual Network (VNet), Subnet, Network Interface (NIC), and a Virtual Machine (VM).</p><p><strong>Virtual Network:</strong> Defines a VNet with a /16 address space.<br><strong>Subnet:</strong> Creates a subnet within the VNet with a /24 address space.<br><strong>Network Interface: </strong>Configures a NIC connected to the subnet.<br><strong>Virtual Machine: </strong>Provisions an Ubuntu VM, specifying storage, network, and OS configurations.</p><h3>2. Commands to Execute</h3><p><strong>Initialize Terraform</strong> — This command initializes the working directory containing Terraform configuration files. It downloads the Azure provider and sets up the backend.</p><p><strong>terraform init</strong></p><p><strong>Plan the Deployment</strong> — The terraform plan command creates an execution plan, showing what actions Terraform will take to achieve the desired state.</p><p><strong>terraform plan -out=tfplan</strong></p><p>-out=tfplan saves the plan to a file, which can be applied later.</p><p><strong>Apply the Plan</strong> — This command applies the changes required to reach the desired state of the configuration.</p><p><strong>terraform apply tfplan</strong></p><p>This command reads the saved plan from tfplan and applies it.</p><p><strong>Destroy the Resources (Optional) </strong>— If you want to destroy the resources created by Terraform, use the following command:</p><p><strong>terraform destroy</strong></p><h3>3. Explanation of Steps</h3><p><strong>Initialization (terraform init): </strong>Prepares the working directory for use with Terraform, including downloading the necessary provider plugins.</p><p><strong>Planning (terraform plan): </strong>Terraform compares the current state with the desired state defined in the configuration files and shows what changes will be made.</p><p><strong>Applying (terraform apply): </strong>Executes the plan created in the planning step and makes the necessary changes to the infrastructure.</p><p><strong>Destroying (terraform destroy):</strong> Removes all the resources managed by Terraform, essentially tearing down the infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a6dc9672a43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ OAuth Call Flow Step-by-Step]]></title>
            <link>https://medium.com/@nidhishabraham/simplified-step-by-step-oauth-call-flow-558af60168f4?source=rss-0d8b635d5cca------2</link>
            <guid isPermaLink="false">https://medium.com/p/558af60168f4</guid>
            <category><![CDATA[authorization]]></category>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[access-token]]></category>
            <category><![CDATA[token]]></category>
            <dc:creator><![CDATA[Nidhish ABRAHAM]]></dc:creator>
            <pubDate>Tue, 16 Jul 2024 16:52:10 GMT</pubDate>
            <atom:updated>2024-07-16T16:55:36.889Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>OAuth</strong> is an open standard for access delegation, commonly used to grant websites or applications limited access to user information without exposing passwords. Here’s a simplified step-by-step summary of how an OAuth flow typically works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEqm7BAsIFwlimLIyKVQ6Q.png" /><figcaption>Step-by-Step OAuth Call Flow</figcaption></figure><p><strong>User clicks “Login with OAuth”</strong>: The user wants to log in to a website using their existing credentials from another service.</p><p><strong>Redirect to Authorization Server</strong>: The website redirects the user’s browser to the OAuth provider (like Google, Facebook, etc.) with a request for authorization.</p><p><strong>User Logs In</strong>: The user sees a login screen at the OAuth provider’s site and enters their username and password.</p><p><strong>User Authorizes Access</strong>: After logging in, the OAuth provider asks the user to grant permissions to the website requesting access to specific data (like profile information).</p><p><strong>Redirect Back to Website</strong>: If the user grants permission, the OAuth provider redirects the user’s browser back to the original website with an authorization code.</p><p><strong>Exchange Authorization Code for Access Token</strong>: The website sends a request to the OAuth provider, including the authorization code received earlier and its own credentials.</p><p><strong>Receive Access Token</strong>: If everything checks out, the OAuth provider sends back an access token to the website.</p><p><strong>Access Protected Resources</strong>: The website can now use the access token to make requests to the OAuth provider on behalf of the user, like retrieving their profile information or posting updates.</p><p><strong>Token Expiry and Refresh (if applicable)</strong>: Access tokens typically have an expiration time. If the website needs continued access, it can use a refresh token to obtain a new access token without requiring the user to log in again.</p><p><strong>End of Session</strong>: When the user logs out or the session expires, the website can no longer use the access token to access the user’s data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=558af60168f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Keycloak Identity and Access Management]]></title>
            <link>https://medium.com/@nidhishabraham/keycloak-identity-and-access-management-0526ddc465d3?source=rss-0d8b635d5cca------2</link>
            <guid isPermaLink="false">https://medium.com/p/0526ddc465d3</guid>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[keycloak]]></category>
            <dc:creator><![CDATA[Nidhish ABRAHAM]]></dc:creator>
            <pubDate>Tue, 16 Jul 2024 13:33:59 GMT</pubDate>
            <atom:updated>2024-07-16T16:33:56.379Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Keycloak </strong>is an open-source identity and access management solution that helps organizations secure applications and services by providing centralized authentication, authorization, and user management. Here’s how it typically functions within an IT system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9kNm1eBLaeiZv6JkTpV4g.png" /><figcaption>Keycloak — Identity &amp; Access Management</figcaption></figure><p><strong>Authentication:</strong> Keycloak acts as an authentication server that manages user identities. It supports various authentication mechanisms, including username/password, <strong>social login (e.g., Google, Facebook)</strong>, and <strong>multi-factor authentication (MFA)</strong>. Applications and services can delegate user authentication to Keycloak, which verifies user credentials and issues authentication tokens.</p><p><strong>Authorization:</strong> Once authenticated, Keycloak provides fine-grained authorization capabilities. It defines access policies and permissions based on roles, groups, or custom attributes associated with users. Applications can enforce these access policies by validating authorization tokens issued by Keycloak.</p><p><strong>Single Sign-On (SSO):</strong> Keycloak enables single sign-on across multiple applications and services. Users authenticate once with Keycloak and gain access to all authorized applications without needing to re-enter credentials. This improves user experience and security by reducing the number of passwords users need to manage.</p><p><strong>User Management:</strong> Keycloak acts as a central user repository where administrators can manage users, groups, and roles. It supports user self-registration, password reset, and profile management functionalities. Organizations can integrate Keycloak with existing user directories <strong>(LDAP, Active Directory)</strong> to synchronize user data.</p><p><strong>Security Features:</strong> Keycloak incorporates various security features such as <strong>SSL/TLS</strong> encryption for communication, token expiration and refresh mechanisms, brute force protection, and audit logging. It helps ensure that user authentication and authorization processes are secure and compliant with organizational policies.</p><p><strong>Integration:</strong> Keycloak is designed for easy integration with applications and services. It supports popular protocols like <strong>OAuth 2.0, OpenID Connect, SAML 2.0, </strong>and <strong>LDAP</strong>, making it versatile for integrating with diverse IT systems and architectures.</p><p><strong>Scalability and High Availability: </strong>Keycloak is designed to be scalable and supports clustering for high availability deployments. It can handle large numbers of users and transactions, making it suitable for enterprise-level applications.</p><p><strong>KeyCloak Documentation</strong> — <a href="https://www.keycloak.org/documentation">https://www.keycloak.org/documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0526ddc465d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>