Skip to content
Projects

geerlingguy/ansible-for-kubernetes

View on GitHub

About

Examples of Ansible and Kubernetes from the book Ansible for Kubernetes.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Ansible for Kubernetes Examples

CI Molecule Kind Test

This repository contains Ansible and Kubernetes examples developed to support different sections of Ansible for Kubernetes by Jeff Geerling.

Not all playbooks follow all of Ansible and Kubernetes' best practices, as they illustrate particular features in an instructive manner.

Examples and Chapters in which they're used

Here is an outline of all the examples contained in this repository, by chapter:

Chapter 1

  • hello-go: A basic 'hello, world!' application written in the Go language, used to demonstrate running a very simple stateless app in a container in a Kubernetes cluster.

Chapter 2

  • hello-ansible: A basic Ansible playbook, meant to introduce someone completely new to Ansible to task-based automation.
  • hello-go-automation: A fully-automated example of all the manual commands used to build and run the Hello Go app from Chapter 1 in a local Kubernetes cluster.

Chapter 3

  • ansible-containers: An Ansible-driven way of building a container image for the Hello Go app.
  • ansible-solr-container: An end-to-end playbook for building an Apache Solr container image and testing it using Ansible's Docker connection plugin, without using a Dockerfile.

Chapter 4

  • cluster-local-vms: A Kubernetes cluster running on three local VirtualBox VMs, built with Vagrant and Ansible.

Chapter 5

  • cluster-aws-eks: An AWS EKS Cluster with an EKS Node Group, which uses Ansible to apply CloudFormation templates that set up stacks for a VPC and networking, an EKS Cluster, and an associated EKS Node Group.

Chapter 6

  • N/A

Chapter 7

  • testing-molecule-kind: A Molecule-based test environment which allows development and testing of Ansible playbooks against a Kind Kubernetes cluster.

License

MIT

Buy the Book

Ansible for Kubernetes Cover

Buy Ansible for Kubernetes for your e-reader or in paperback format.

Explore related projects

Loading…