Table of Contents
Buy on Apress Buy on Amazon

Table Of Contents #

Shelve in Category: Cloud Computing, Open Source, Software Management, Computer Networks

User level: Intermediate to Advanced

Chapter 0: Front Matter

  • About the Author
  • About the Technical Reviewer
  • Acknowledgments
  • Introduction

Chapter 1: Modern IT Infrastructure and Hello App (Pages 1-25)

  • 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)
  • Containers and Pods
  • Creating a Hello App (Linux Base Images, 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 (Pages 27-61)

  • 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, Ansible Playbook, Ansible Roles, Ansible Collection, Ansible Execution Environment)
  • Key Takeaways

Chapter 3: Ansible for Containers (Pages 63-85)

  • 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 (Pages 87-168)

  • 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 (Pages 169-199)

  • 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 (Pages 201-237)

  • The Helm Package Manager (Helm Repositories, Helm Packages, Helm Plugins)
  • 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 (Pages 239-260)

  • Cloud Architecture
  • Amazon Web Services (AWS)
  • Google Cloud Platform (GCP)
  • Microsoft Azure Cloud Services
  • Other Vendors
  • Key Takeaways

Chapter 8: Ansible for Enterprise (Pages 261-276)

  • The Ansible Automation Platform
  • Event-Driven Ansible
  • IT Trends
  • Ansible Trusted Code
  • What’s Next?
  • Thank You