Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorJosh Patterson, Michael Katzenellenbogen, Austin Harris

When deploying machine learning applications, building models is only a small part of the story. The entire process involves developing, orchestrating, deploying, and running scalable and portable machine learning workloads—a process Kubeflow makes much easier. With this practical guide, data scientists, data engineers, and platform architects will learn how to plan and execute a Kubeflow project that can support workflows from on-premises to the cloud. Kubeflow is an open source Kubernetes-native platform based on Google’s internal machine learning pipelines, and yet major cloud vendors including AWS and Azure advocate the use of Kubernetes and Kubeflow to manage containers and machine learning infrastructure. In today’s cloud-based world, this book is ideal for any team planning to build machine learning applications. With this book, you will: • Get a concise overview of Kubernetes and Kubeflow • Learn how to plan and build a Kubeflow installation • Operate, monitor, and automate your installation • Provide your Kubeflow installation with adequate security • Serve machine learning models on Kubeflow

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
# Kubeflow Operations Guide: Managing Cloud and On-Premise Deployment ## 【One-Line Pitch】 A practical operations manual for planning, deploying, and managing Kubeflow—the Kubernetes-native platform for machine learning workloads—written for data scientists, data engineers, and platform architects who need to move ML models from experimentation to production across cloud and on-premise environments. ## 【Book Arc】 - **Opening (~0%–9%)**: Introduces the core problem—building ML models is only a fraction of the work; the real challenge lies in orchestrating, deploying, and running scalable ML workloads. Establishes why Kubernetes and Kubeflow matter for enterprise ML, tracing the evolution from traditional data systems (RDBMS, Hadoop, Spark) to Kubernetes-native approaches. - **Early (~9%–25%)**: Explains why Kubeflow exists beyond the raw Kubernetes API—solving deployment consistency, security control, resource over-provisioning, workflow orchestration, and centralized monitoring. Covers the platform's component groups: Jupyter Notebooks, Fairing for submitting training jobs, and framework operators (e.g., TFJob CRDs). - **Early-to-Middle (~25%–38%)**: Dives into Kubeflow architecture, including how user requests flow through authentication (OIDC, JWT), authorization via SubjectAccessReview API versus impersonation, and the profile/namespace model for multitenancy. Discusses Istio's role in security, quotas, and traffic management. - **Middle (~38%–47%)**: Explores the training component architecture—how CRDs extend the Kubernetes API for distributed training (TFJob with chiefs, workers, parameter servers) and how other components (Katib, Pipelines) sit atop Kubernetes as integrated applications. Begins planning considerations for installation. - **Middle (~47%–end of excerpts)**: Addresses the operational planning phase—the tension between data science teams and operations teams over model deployment, GPU planning, and the requirements for a successful Kubeflow deployment: secure data access, shared multitenant compute, tooling flexibility, and portability between on-premise and cloud. ## 【Key Takeaways】 - **Kubeflow solves the "glue code" problem** (Early): Building a multitenant data science platform on raw Kubernetes requires extensive custom integration for notebooks, pipelines, and security. Kubeflow provides this scaffolding so data scientists focus on modeling, not Kubernetes APIs. - **Container drivers are a portability trap** (Early): GPU drivers operate at kernel level, so you can't simply bundle them in containers. Code that works on a laptop may fail on cloud VMs with GPUs—Kubeflow helps manage these hardware abstraction challenges. - **Kubeflow is framework-agnostic** (Early): Despite the name (Kubernetes + TensorFlow), users can choose any ML framework for notebooks and workflows. The platform has evolved well beyond its TensorFlow origins. - **Multitenancy is namespace-based** (Early-to-Middle): Each user or team gets a notebook server in its own namespace with Kubernetes RBAC policies. Profiles and namespaces have a one-to-one correspondence, providing isolation and preventing resource clutter. - **Authorization has two paths with distinct trade-offs** (Middle): SubjectAccessReview API is the recommended approach for web applications—it queries Kubernetes RBAC without granting full permissions. Impersonation is simpler but can't be scoped down, making it risky for tools like Jupyter Notebooks. - **CRDs are the key to distributed training** (Middle): Training components (TFJob, MPI, Chainer) extend the Kubernetes API via custom resource definitions. Users declare desired state (number of workers, parameter servers) and Kubernetes controllers handle the rest. - **Data science and operations teams need a bridge** (Middle): The friction between model-specific expectations and generalized deployment practices is real. Kubeflow addresses this by providing standardized tooling for secure data access, shared GPU infrastructure, and portable workloads. ## 【Reading Tips】 - **Skim the early chapters (0%–25%)** if you're already familiar with Kubernetes basics; focus instead on the "why Kubeflow" arguments and component overviews that explain how pieces fit together. - **Deep-read the architecture sections (~25%–38%)** on authentication and authorization—these are subtle and critical for production deployments. The SubjectAccessReview versus impersonation discussion is essential for anyone building web applications on Kubeflow. - **Pay attention to the planning chapter (~44%–47%)** if you're about to install Kubeflow; the requirements list (secure data access, multitenant compute, tooling flexibility, portability) serves as a useful pre-deployment checklist. - **Don't skip the GPU planning discussion**—it's a core use case and the driver/container explanation clarifies why GPU workloads need special handling in Kubernetes. - **Take away the operational mindset**: This book is written for operators, not just data scientists. The emphasis on security, multitenancy, and resource management signals what you'll need to plan for before deployment. ## 【Coverage Limits】 The excerpts cover roughly the first half of the book (through planning chapters). Later sections on installation execution, monitoring, automation, and model serving are not covered in this guide. ##
Page 11
rprise 2 It’s Harder Than Ever to Run Enterprise Infrastructure 4 Identifying Next-Generation Infrastructure (NGI) Core Principles 6 Kubernetes for Productio...
View in text
Excerpt 2
rate the components for things like workflow orchestration. Just adding nodes on Kubernetes and expecting them to operate as a cohesive plat‐ form doesn’t al...
View in text
Excerpt 3
ns are stored in a MySQL database, and artifacts are stored in an artifact store such as MinIO server or a cloud storage system. Both MinIO and MySQL are bot...
View in text
Excerpt 4
learning. 66 | Chapter 3: Planning a Kubeflow Installation model in a standardized manner, such as in the workflow of deploying to an ordinary web server or...
View in text
Excerpt 5
ome emerging design patterns where workloads can “burst” to the cloud from on-premise under the guise of needing more capacity, most of the 86 | Chapter 3: P...
View in text
Excerpt 6
s seen in Figure 5-7. Figure 5-7. New Project dialog window 122 | Chapter 5: Running Kubeflow on Google Cloud Figure 5-11. OAuth consent screen For authorize...
View in text
Excerpt 7
eps to deploy your EKS cluster. The same prerequisite steps hold true whether you deploy your EKS cluster with the management console or eksctl. The installa...
View in text
Excerpt 8
-manager-cm-role created clusterrole.rbac.authorization.k8s.io/seldon-manager-role-kubeflow created clusterrole.rbac.authorization.k8s.io/seldon-manager-sas-...
View in text
Tags
AI categories
Cloud NativeDevOpsBackend
ISBN: 1492053279
Publisher: O'Reilly Media
Publish Year: 2020
Language: English
Pages: 300
File Format: PDF
File Size: 11.9 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…