Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kubernetes for the Ansible users

Kubernetes for the Ansible users

The agent-less nature and simplicity are without any doubt the two key features that determined the incredible popularity of Ansible as a configuration management tool.

However, exactly when many DevOps teams started working actively on the migration from existing configuration management tools to Ansible, another open-source tool started becoming very popular: Kubernetes.
The promise of Kubernetes of being able to implement autonomous and self-healing infrastructures - both in the cloud and on-premise - led some teams to question their Ansible strategy.
How is Kubernetes impacting existing efforts on the automation and consolidation of operations with Ansible?
How can Kubernetes be used effectively in existing infrastructures already fully managed via Ansible?
Can Kubernetes and Ansible co-exist?
What's the most effective way of transitioning from Ansible to Kubernetes? Will it work?

In this talk we will try to answer these and other questions on what Kubernetes means for Ansible users.

Andrea Tosatto

October 03, 2019
Tweet

More Decks by Andrea Tosatto

Other Decks in Technology

Transcript

  1. Agenda 1. Kubernetes? Why? What? 2. Ansible for Kubernetes o

    Implementing Kubernetes o Migrating existing services to Kubernetes o Managing the lifecycle of Kubernetes applications with Ansible 3. Questions
  2. Why Kubernetes? 1. Decoupling between the work of Devs and

    Ops 2. High level abstraction on the infrastructure
  3. Why Kubernetes? 1. Decoupling between the work of Devs and

    Ops 2. High level abstraction on the infrastructure 3. Integrated state reconciliation mechanism
  4. Implementing Kubernetes Container Engine […] Container Engine Kubernetes VM 01

    VM 0M […] VM N1 VM NM […] Host N Host 1 [...] Network Storage APP “A” APP “B” APP “C” APP “D” APP “B” APP “E”
  5. Implementing Kubernetes Container Engine […] Container Engine APP “A” APP

    “B” APP “C” APP “D” APP “B” APP “E” Kubernetes VM 01 VM 0M […] VM N1 VM NM […] Host N Host 1 [...] Network Storage
  6. Implementing Kubernetes Container Engine […] Container Engine APP “A” APP

    “B” APP “C” APP “D” APP “B” APP “E” Kubernetes VM 01 VM 0M […] VM N1 VM NM […] Host N Host 1 [...] Network Storage
  7. APP “A” VM 01 Host 1 Eureka! We finally have

    one tool to manage the whole infrastructure Migrating Existing Services to Kubernetes
  8. APP “A” VM 01 Host 1 Eureka! We finally have

    one tool to manage the whole infrastructure APP “A” VM 01 Host 1 K8S CONTAINERIZED APP “A” Migrating Existing Services to Kubernetes Eureka! Let’s use Kubespray!
  9. APP “A” VM 01 Host 1 Eureka! We finally have

    one tool to manage the whole infrastructure APP “A” VM 01 Host 1 K8S CONTAINERIZED APP “A” VM 01 Host 1 K8S CONTAINERIZED APP “A” Migrating Existing Services to Kubernetes Eureka! Let’s use Kubespray! Eureka! Let’s use Ansible’s k8s modules!
  10. APP “A” VM 01 Host 1 Eureka! We finally have

    one tool to manage the whole infrastructure APP “A” VM 01 Host 1 K8S CONTAINERIZED APP “A” VM 01 Host 1 K8S CONTAINERIZED APP “A” VM 01 Host 1 K8S CONTAINERIZED APP “A” Migrating Existing Services to Kubernetes Eureka! Let’s use Kubespray! Eureka! Let’s use Ansible’s k8s modules!
  11. Lifecycle management of K8s apps with Ansible What about legacy

    applications, stateful service, database migrations, ..?
  12. Lifecycle management of K8s apps with Ansible + What about

    legacy applications, stateful service, database migrations, ..?
  13. References • Kubespray: deploy a Production Ready Kubernetes Cluster with

    Ansible https://github.com/kubernetes-sigs/kubespray • Ansible Kubernetes Module https://docs.ansible.com/ansible/latest/modules/kubernetes_module.html • Ansible Operator https://www.ansible.com/blog/ansible-operator