Certified Kubernetes Administrator (CKA) Study Guide: In-Depth Guidance and Practice

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Developers with the ability to operate, troubleshoot, and monitor applications in Kubernetes are in high demand today. To meet this need, the Cloud Native Computing Foundation created a certification exam to establish a developer's credibility and value in the job market to work in a Kubernetes environment. The Certified Kubernetes Application Developer (CKAD) exam is different from the typical multiple-choice format of other certifications. Instead, the CKAD is a performance-based exam that requires deep knowledge of the tasks under immense time pressure. This study guide walks you through all the topics you need to fully prepare for the exam. Author Benjamin Muschko also shares his personal experience with preparing for all aspects of the exam. • Learn when and how to apply Kubernetes concepts to manage an application • Understand the objectives, abilities, tips, and tricks needed to pass the CKAD exam • Explore the ins and outs of the kubectl command-line tool • Demonstrate competency for performing the responsibilities of a Kubernetes application developer • Solve real-world Kubernetes problems in a hands-on command-line environment • Navigate and solve questions during the CKAD exam

Author(s): Benjamin Muschko
Edition: 1
Publisher: O'Reilly Media
Year: 2022

Language: English
Commentary: Vector PDF
Pages: 201
City: Sebastopol, CA
Tags: Deployment; Application Development; Networking; Kubernetes; Kubernetes Pods

Cover
Copyright
Table of Contents
Preface
Who This Book Is For
What You Will Learn
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments
Chapter 1. Exam Details and Resources
Exam Objectives
Curriculum
Cluster Architecture, Installation, and Configuration
Workloads and Scheduling
Services and Networking
Storage
Troubleshooting
Involved Kubernetes Primitives
Exam Environment and Tips
Candidate Skills
Time Management
Command-Line Tips and Tricks
Setting a Context and Namespace
Using an Alias for kubectl
Using kubectl Command Auto-Completion
Internalize Resource Short Names
Deleting Kubernetes Objects
Finding Object Information
Discovering Command Options
Practicing and Practice Exams
Summary
Chapter 2. Cluster Architecture, Installation, and Configuration
Role-Based Access Control
RBAC High-Level Overview
Creating a Subject
Listing ServiceAccounts
Rendering ServiceAccount Details
Assigning a ServiceAccount to a Pod
Understanding RBAC API Primitives
Default User-Facing Roles
Creating Roles
Listing Roles
Rendering Role Details
Creating RoleBindings
Listing RoleBindings
Rendering RoleBinding Details
Seeing the RBAC Rules in Effect
Namespace-wide and Cluster-wide RBAC
Aggregating RBAC Rules
Creating and Managing a Kubernetes Cluster
Installing a Cluster
Managing a Highly Available Cluster
Upgrading a Cluster Version
Backing Up and Restoring etcd
Backing Up etcd
Restoring etcd
Summary
Exam Essentials
Sample Exercises
Chapter 3. Workloads
Managing Workloads with Deployments
Understanding Deployments
Creating Deployments
Listing Deployments and Their Pods
Rendering Deployment Details
Deleting a Deployment
Performing Rolling Updates and Rollbacks
Rolling Out a New Revision
Rolling Back to a Previous Revision
Scaling Workloads
Manually Scaling a Deployment
Manually Scaling a StatefulSet
Autoscaling a Deployment
Creating Horizontal Pod Autoscalers
Listing Horizontal Pod Autoscalers
Rendering Horizontal Pod Autoscaler Details
Using the Beta API Version of an Horizontal Pod Autoscaler
Defining and Consuming Configuration Data
Creating a ConfigMap
Consuming a ConfigMap as Environment Variables
Mounting a ConfigMap as a Volume
Creating a Secret
Consuming a Secret as Environment Variables
Mounting a Secret as a Volume
Summary
Exam Essentials
Sample Exercises
Chapter 4. Scheduling and Tooling
Understanding How Resource Limits Affect Pod Scheduling
Defining Container Resource Requests
Defining Container Resource Limits
Defining Container Resource Requests and Limits
Managing Objects
Declarative Object Management Using Configuration Files
Declarative Object Management Using Kustomize
Common Templating Tools
Using the YAML Processor yq
Using Helm
Summary
Exam Essentials
Sample Exercises
Chapter 5. Services and Networking
Kubernetes Networking Basics
Connectivity Between Containers
Connectivity Between Pods
Understanding Services
Service Types
Creating Services
Listing Services
Rendering Service Details
Port Mapping
Accessing a Service with Type ClusterIP
Accessing a Service with Type NodePort
Accessing a Service with Type LoadBalancer
Understanding Ingress
Ingress Rules
Creating Ingresses
Defining Path Types
Listing Ingresses
Rendering Ingress Details
Accessing an Ingress
Using and Configuring CoreDNS
Inspecting the CoreDNS Pod
Inspecting the CoreDNS Configuration
Customizing the CoreDNS Configuration
DNS for Services
Resolving a Service by Hostname from the Same Namespace
Resolving a Service by Hostname from a Different Namespace
DNS for Pods
Resolving a Pod by Hostname
Choosing an Appropriate Container Network Interface Plugin
Summary
Exam Essentials
Sample Exercises
Chapter 6. Storage
Understanding Volumes
Volume Types
Creating and Accessing Volumes
Understanding Persistent Volumes
Static vs. Dynamic Provisioning
Creating PersistentVolumes
Configuration Options for a PersistentVolume
Volume Mode
Access Mode
Reclaim Policy
Creating PersistentVolumeClaims
Mounting PersistentVolumeClaims in a Pod
Understanding Storage Classes
Creating Storage Classes
Using Storage Classes
Summary
Exam Essentials
Sample Exercises
Chapter 7. Troubleshooting
Evaluating Cluster and Node Logging
Cluster Logging
Node Logging
Monitoring Cluster Components and Applications
Troubleshooting Application Failures
Troubleshooting Pods
Opening an Interactive Shell
Troubleshooting Services
Troubleshooting Cluster Failures
Troubleshooting Control Plane Nodes
Troubleshooting Worker Nodes
Summary
Exam Essentials
Sample Exercises
Chapter 8. Wrapping Up
Appendix A. Answers to Review Questions
Chapter 2, “Cluster Architecture, Installation, and Configuration”
Chapter 3, “Workloads”
Chapter 4, “Scheduling and Tooling”
Chapter 5, “Services and Networking”
Chapter 6, “Storage”
Chapter 7, “Troubleshooting”
Index
About the Author
Colophon