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

Microservices infrastructure with Terraform, Co...

mongrelion
September 08, 2016

Microservices infrastructure with Terraform, Consul and Vault

Talk at HashiConf USA on Microservices

mongrelion

September 08, 2016
Tweet

More Decks by mongrelion

Other Decks in Technology

Transcript

  1. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion µservices With Terraform, Consul and Vault Carlos León September 2016, Napa HashiConf
  2. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion About me 2 Carlos León Software Engineer @ Container Solutions Hang gliding pilot @mongrelion linkedin.com/in/mongrelion [email protected]
  3. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion Agenda 3 Software development: Monolith to microservices Rise of the containers Challenges with microservices: Putting everything together (MANTL) Bringing the solution to the customers Q&A
  4. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 16 Orchestration? Networking? Cluster Management?
  5. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 17 Security? Orchestration? Networking? Cluster Management?
  6. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 18 Security? Service discovery? Orchestration? Networking? Cluster Management?
  7. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 19 Security? Service discovery? Orchestration? Networking? Persistence? Cluster Management?
  8. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 20 Security? Service discovery? Orchestration? Networking? Persistence? Monitoring? Cluster Management?
  9. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 24 And Project Calico (canal) for the networking?
  10. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 26 … 6 months later … • Terraform & Ansible deployment to cloud providers • etcd distributed key-value store for Calico • Calico a new kind of virtual network • Mesos cluster manager • Marathon long running services • Consul for service discovery • Vault for managing secrets • Docker container runtime • collectd for metrics collection • Logstash for log forwarding • GlusterFS for container volume storage • Traefik for proxying external traffic
  11. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 27 Why are you building infrastructure and not your application?
  12. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion What is MANTL ? 29 • Mantl is a modern platform for rapidly deploying globally distributed microservices • Open source • Cloud agnostic • Available now: github.com/CiscoCloud/mantl
  13. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion What problems does MANTL solve? 30 • Networking • Security • Service Discovery • Persistence • Monitoring • Orchestration • Cluster Management • And others...
  14. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion What problems does MANTL solve? 31 • Networking • Security • Service Discovery • Persistence • Monitoring • Orchestration • Cluster Management • And others... • Supports easier migration to microservices • Solves integration conflicts • Lowers configuration time • More time for development • Runs anywhere • Avoid cloud locking • End-to-End platform • Customizable (open-source)
  15. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 32 MANTL Architecture 3 types of components: • Control • Edge • Resource
  16. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 41 Security Service discovery Orchestration Networking Persistence Monitoring Cluster Management
  17. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 42 How to build them? Policies? How to run them? How to ship them? Cloud or on-premises? Infrastructure monitoring? Auto-scaling?
  18. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 44 What is Shipped ? • Shipped is a continuous delivery platform for microservices (cloud native apps) • Commercial Cisco product • Runs on top of MANTL • Complements MANTL • In the cloud or on premises • In open Beta now: ciscoshipped.io
  19. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion What problems does Shipped solve? 46 • CI/CD platform (build/deploy/run) • Application intent engine • Infrastructure monitoring • Contiv (Infra Policy Enforcement)
  20. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion Shipped - Implementing App Intent - Scaling
  21. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion Shipped - Implementing App Intent - Scaling
  22. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion Shipped - Implementing App Intent - Scaling
  23. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion 53 Security Service discovery Orchestration Networking Persistence Monitoring Cluster Management How to build them? How to run them? Infrastructure monitoring? Policies? How to ship them? Cloud or on-premises? Auto-scaling?
  24. container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |

    @mongrelion Thanks, links & more 54 MANTL: mantl.io (contribute on ) Shipped: ciscoshipped.io (open beta) Microservices: Applications & Microservices with Docker & Containers - thenewstack.io martinfowler.com/articles/microservices.html Docker : Using Docker - Adrian Mouat Blogs: blogs.cisco.com/cloud container-solutions.com/blog