<?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 Akshita Verma on Medium]]></title>
        <description><![CDATA[Stories by Akshita Verma on Medium]]></description>
        <link>https://medium.com/@akshitaverma102001?source=rss-efe5e644251f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*agdgfWPniQ_17qKPdCLhNA.jpeg</url>
            <title>Stories by Akshita Verma on Medium</title>
            <link>https://medium.com/@akshitaverma102001?source=rss-efe5e644251f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:22:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akshitaverma102001/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[MLOps-Guide to streamlining machine learning workflows part 1]]></title>
            <link>https://medium.com/@akshitaverma102001/mlops-guide-to-streamlining-machine-learning-workflows-part-1-7164f7e875b8?source=rss-efe5e644251f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7164f7e875b8</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Akshita Verma]]></dc:creator>
            <pubDate>Mon, 03 Apr 2023 14:58:23 GMT</pubDate>
            <atom:updated>2023-04-03T15:14:37.513Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding Mlops and Kubernetes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGP8KEE2aH_65DTlv0-k_Q.png" /></figure><ol><li><strong>Introduction</strong></li></ol><p>Organizations often find model deployment, model governance, model monitoring etc, challenging. These processes are time consuming as they are usually implemented manually and thus are prone to human errors and aren’t cost effective in the long run. To solve the above-mentioned problems and improve the production efficiency of the workflows, MLOps are needed.</p><p>MLOps has become a crucial part of implementation in many organizations that leverage machine learning for their operations. With such paramount importance it becomes imperative to understand and learn how to efficiently adopt MLOps into work practices.</p><p>The aim of this article is to provide a basic overview about MLOps and discuss one such popular tool used in MLOps, Kubernetes.</p><p><strong>2. MLOps- What’s in the name?</strong></p><p>MLOps (machine-learning operations) has been revolutionizing the AI ML world by automating and streamlining the ML processes right from model training to model deployment to maintaining and monitoring them.</p><p>In simple terms, MLOps is like a factory assembly line for building, testing, and deploying machine learning models. It provides a systematic and automated approach to the deployment and operation of machine learning models, helping organizations to manage the complexity, speed, reliability, scalability, and collaboration of machine learning models in a production environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hj2H28Bz1uA8l98F-JX8zQ.png" /></figure><p>MLOps consists of tools and techniques that help in designing and implementing ML models and putting them into production. One such popular tool is Kubernetes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*oU5hdiWeLRcUKdY1rpCj_g.jpeg" /></figure><p><strong>3. What is Kubernetes?</strong></p><p>Kubernetes is an open-source orchestrator tool that automates, deploys, scales and manages containerized applications. It was originally developed by Google and is now maintained by the Cloud Native Computing Foundation.</p><blockquote>Fun Fact: Container cluster system used by Google was called ‘borg’!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*KzS1Byzh2NTucq1wJVnZWg.jpeg" /></figure><p><strong>3.1. What are containerized applications?</strong></p><p>Let’s say you have developed a web application using a specific version of a programming language, a particular web server, and several libraries and dependencies that the application needs to run. In a traditional deployment model, you would need to install and configure all these components on the target server, which could be time-consuming and error-prone.</p><p>With containerization, you can create a container image that includes your application and all the necessary components to run it. The container image would include everything your application needs, such as web server, programming language, and libraries. Once the container image is deployed, it creates a container that encapsulates your application and its dependencies. The container runs in isolation from other containers, providing security and preventing conflicts between different applications running on the same server.</p><p><strong>3.2 Kubernetes Components</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ENtbccz_ZKkYuAx0waKvQ.png" /><figcaption>Kubernetes architecture</figcaption></figure><p>Kubernetes architecture mainly comprises the master node or nowadays most commonly called as the control plane node and the worker nodes. Given below is a brief description about each of the components that form the kubernetes architecture.</p><ol><li><strong>Master Node/Control Plane Node</strong>: It is responsible for managing the overall state of the cluster and controlling the scheduling and deployment of applications.</li></ol><p>It contains the following control-plane components:</p><p>1.1 <strong>API-Server </strong>: It exposes the Kubernetes API for other components of the cluster to interact with the master node.</p><p>1.2<strong> etcd </strong>: It is a distributed key-value store that stores the configuration data and the state of the cluster. Provides a consistent and reliable way to store and retrieve data.</p><p>1.3 <strong>Controller Manager</strong> : This component runs several controllers that are responsible for managing the state of the cluster. These controllers include the node controller, replication controller, endpoint controller, namespace controller and service account.</p><p>1.4 <strong>Kubernetes Scheduler</strong> : This component is responsible for scheduling workloads onto worker nodes. It uses policies and constraints to make scheduling decisions based on factors such as resource requirements, affinity, and anti-affinity.</p><p>2. <strong>Worker Node</strong> : is a computing resource within the cluster that runs applications and workloads. Each worker node runs one or more pods, which are the smallest deployable units in Kubernetes.</p><p>2.1 <strong>Kubelet</strong> :kubelet is a node agent that runs on each worker node and is responsible for managing the lifecycle of containers.</p><p>2.2 <strong>Kube-proxy</strong> :kube-proxy is a network proxy that runs on each worker node and is responsible for managing the network traffic within the cluster. It provides services such as load balancing, service discovery, and network address translation.</p><p>2.3 <strong>Container-runtime</strong> :A container runtime is the software that manages the lifecycle of containers. It is responsible for creating, starting, stopping, and deleting containers. It is also responsible for managing the resources used by containers, such as CPU, memory, and storage. Example: Docker-engine,CRI-O,Containerd etc.</p><p>2.4 <strong>Pod and container</strong>: A pod is a logical host for one or more containers. A container is a lightweight and portable executable package of software that includes everything needed to run an application, including code, runtime, system tools, libraries, and settings.</p><blockquote><strong><em>Note</em></strong><em>: A pod can have multiple containers in it. Similarly a worker node can host multiple pods.</em></blockquote><p><strong>4. How is Kubernetes (K8&#39;s) relevant in the context of MLOPs?</strong></p><p>A machine-learning model goes through two major life cycles of model building and model deployment. It is generally during the transition from one cycle to another where a ML model fails. When a model is put into production in a traditional format it faces issues of scalability, resource management, high downtime, security vulnerability.K8’s provides a platform to manage the models and ML workflows and provide solution to the above listed issues.</p><ul><li><strong>Scalability</strong>:K8’s allows you to scale your machine learning applications up or down depending on demand. This means you can allocate more resources to your applications when the demand is high and release resources when the demand is low. This can lead to cost savings and more efficient resource usage.</li><li><strong>Portability</strong>: K8’s provides a consistent platform for deploying and managing machine learning applications across different environments, whether it’s on-premises or in the cloud. This makes it easier to deploy and manage machine learning applications in different settings and enables easier collaboration between teams.</li><li><strong>High availability</strong>: K8’s provides a highly available and fault-tolerant infrastructure for running machine learning workloads. Kubernetes can automatically detect and recover from failures, minimizing downtime and ensuring that your machine learning applications are always available.</li><li><strong>Automation</strong>: K8’s provides powerful automation capabilities for deploying, managing, and scaling machine learning applications. This can help reduce the time and effort required to manage complex machine learning workflows and ensure that your applications are running reliably and efficiently.</li><li><strong>Security: </strong>K8’s provides RBAC, Role based Access Control that can ensure that only specific users have access to sensitive data.In addition to this several other features such as network policies,secrets-management are provided too.</li><li><strong>Integration with other tools</strong>: K8’s integrates well with other tools commonly used in MLOps, such as Docker and Git. This makes it easier to build, deploy, and manage machine learning applications as part of a larger DevOps pipeline.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PtI60uxjOs1NDgZy5ITdqg.jpeg" /></figure><p>K8’s provides several benefits for managing machine learning models in production, including scalability, reliability, manageability, security, and more. Without K8’s, models may face several challenges that could impact their performance, reliability, and overall success in a production environment.</p><p><strong>References:</strong></p><ul><li><a href="https://kubernetes.io/docs/concepts/">Concepts</a></li><li><a href="https://ml-ops.org/">ml-ops.org</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7164f7e875b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>