Skip to content

[section_request] Testing Kubernetes with Molecule, Kind, and Ansible #36

@geerlingguy

Description

@geerlingguy

I was just thinking, I don't have a dedicated chapter to testing Kubernetes infrastructure configurations, but that's one thing that's actually easier to do with Molecule + Ansible than (IMO) with most other solutions, especially in CI. I already have things working in GitHub Actions and Travis CI, so I could do a chapter that introduces:

  • Using Kind to create a lightweight Kubernetes environment locally or in CI.
  • Using Molecule to test Ansible playbooks and roles.
  • Using Molecule to create a Kind cluster and test k8s resources on it with Ansible (similar to how I use it for this book's playbooks in some cases, and for tower-operator and other K8s projects).
  • Using Molecule in GitHub Actions (and/or Travis CI) to run tests using CI for your project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions