Ansible for Kubernetes by Example: Automate Your Kubernetes Cluster with Ansible
- Length: 307 pages
- Edition: 1
- Language: English
- Publisher: Apress
- Publication Date: 2023-06-02
- ISBN-10: 1484292847
- ISBN-13: 9781484292846
- Sales Rank: #8038844 (See Top 100 Books)
Learn how to automate your Kubernetes infrastructure using Ansible. This book will enable you to automate more tasks and save time with this human-readable platform.
Containerized microservices deployed via Kubernetes allows you to save time, reduce human interaction and errors, and create applications that are more robust. You’ll learn how to automate the most redundant activities such as reports, services, the launch of a pod, adding permanent storage, configuring load balancing, and adding or modifying any Kubernetes parameter. You’ll also gain an understanding of end-to-end use cases and how advanced cluster automation, such as Helm packages and node states, are evolving.
Each lesson utilizes a specific use-case for the modern Kubernetes cluster and focuses on a single module from the most crucial parameter, complete with code demonstrations. Each code example is battle-proven in real-life with console interaction and verification.
What You’ll Learn
- Automate Kubernetes cluster management, cloud services, pods, and storage with Ansible
- Configure your Ansible controller node
- Write and execute Ansible Playbook code that follows best practices
- Augment your productivity by applying Infrastructure as Code (IaC)
- Troubleshoot Ansible
Who This Book Is For
IT professionals who would like a jargon-free understanding of Ansible technology, Windows Systems Administrators, DevOps professionals, thought leaders, and infrastructure-as-code enthusiasts.
Table of Contents About the Author About the Technical Reviewer Acknowledgments Introduction Chapter 1: Modern IT Infrastructure and Hello App Modern IT Infrastructure (DevOps and IaC) The Move to Containers Ansible by Red Hat The Cloud Native Computing Foundation Kubernetes Support Kubernetes Distributions: OpenShift, Rancher, EKS, AKS, and GCP OpenShift by Red Hat Kubernetes in the Public Cloud Amazon EKS Containers and Pods Creating a Hello App Linux Base Images Fedora Linux Ubuntu Linux Alpine Linux Enterprise Linux-Based Images Container Security The Hello Dockerfile The Hello Application Building the Hello App Running Hello in Docker Deploying Hello in Kubernetes Deploying Hello in Operator Key Takeaways Chapter 2: Ansible Language Code What Is Ansible? Provisioning Configuration Management Application Deployment Ansible Open-Source vs Commercial Options Ansible’s Architecture UNIX Target Node Windows Target Node Ansible Installation Getting Started with Ansible Running Your First Ansible Ad Hoc Command Creating a Basic Inventory Ansible Code Language Ansible Inventory INI Inventory YAML Inventory Ansible Playbook Ansible Variables Ansible Filters Conditionals Handler Loop Ansible Facts Ansible Magic Variables Ansible Vault Ansible Templates Ansible Plugins Ansible Roles Ansible Collection Ansible Execution Environment Key Takeaways Chapter 3: Ansible for Containers Ansible for Containers Install Docker on Linux and Windows Install Docker in Debian Linux Install Docker in Red Hat Linux Install Docker on Windows Flatpak in Linux Snap in Linux Deploy a Web Server in a Container Apache with Docker for Debian-like Systems Apache with Podman for Red Hat-like Systems Use Vagrant and Packer Vagrant Packer Key Takeaways Chapter 4: Ansible for K8s Tasks Kubernetes Objects Control Plane vs Data Plane kubectl GitOps Continuous Deployment Jenkins VMWare Tanzu Application Platform Set Up Your Laboratory Virtual Machines Raspberry Pis Kubespray OpenShift Local hetzner-ocp4 Create a Cluster with Minikube Kubeadm K3s Lightweight Kubernetes Kubernetes Upgrade Create a Cluster with kOps Configure Ansible for Kubernetes Ansible Troubleshooting 401 unauthorized Kubernetes OpenShift x509 error kubeconfig Configure a Python Virtual Environment Configure an Ansible Execution Environment Create a Namespace Report Namespaces Report Deployments in Namespace Create a Pod Create a Secret Use a Service to Expose Your App Kubernetes Networking Scale Your App Auto-scaling Update Your App Assign Resources to Kubernetes K8s Pods Metrics CPU Resources Memory Resources Namespace Resources GPU Resources Configure a Pod to Use a Volume for Storage Apply Multiple YAML Files at Once on Kubernetes Key Takeaways Chapter 5: Ansible for K8s Data Plane Configuring a Java Microservice The Demo Java Web Application Stateless: Deploying PHP Guestbook Application with Redis Kustomize: Do More with Less Stateful: Deploying WordPress and MySQL with Persistent Volumes Security Namespace (Pod Security Admission) Security Pod Resources (AppArmor) Security Pod Syscalls (seccomp) Ansible Dynamic Inventory Key Takeaways Chapter 6: Ansible for K8s Management The Helm Package Manager Helm Repositories Add Helm Repository Remove Helm Repository Helm Packages Install Helm Package Remove Helm Package Report Helm Package Helm Plugins Install Helm Plugin Remove Helm Plugin Report Helm Plugin Deploy a Monitoring Tool kube-prometheus Ansible Collections Helm Chart Fetch Logs from Resources Apply a JSON Patch Operation Copy Files and Directories to and from a Pod Manage Services on Kubernetes Taint Nodes Drain, Cordon, or Uncordon Nodes Kubernetes Dynamic Inventory Roll Back Deployments and DaemonSets Set a New Size for a Deployment, ReplicaSet, Replication Controller, or Job Security AAA OpenID Identity Provider Calico Key Takeaways Chapter 7: Ansible for Kubernetes Cloud Providers Cloud Architecture Amazon Web Services (AWS) Google Cloud Platform (GCP) Microsoft Azure Cloud Services Other Vendors Key Takeaways Chapter 8: Ansible for Enterprise The Ansible Automation Platform Event-Driven Ansible IT Trends Ansible Trusted Code What’s Next? Thank You Index Capture.PNG Capture - Copy.PNG Capture - Copy.PNG Capture - Copy.PNG
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/Apress
2. In the Find a repository… box, search the book title: Ansible for Kubernetes by Example: Automate Your Kubernetes Cluster with Ansible
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.