Share
Embed
Microservices infrastructure with Terraform, Consul and Vault
Talk at HashiConf USA on Microservices
mongrelion
September 08, 2016
Transcript
54 slides
-
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion µservices With Terraform, Consul and Vault Carlos León September 2016, Napa HashiConf -
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] -
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 -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion Software development : pre-DevOps 4 -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion Software development : DevOps 5 -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion Software development : DevOps 8 -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion Software development : Post-DevOps 9 -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 10 How to move to microservices? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 14 Cluster Management? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 15 Orchestration? Cluster Management? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 16 Orchestration? Networking? Cluster Management? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 17 Security? Orchestration? Networking? Cluster Management? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 18 Security? Service discovery? Orchestration? Networking? Cluster Management? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 19 Security? Service discovery? Orchestration? Networking? Persistence? Cluster Management? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 20 Security? Service discovery? Orchestration? Networking? Persistence? Monitoring? Cluster Management? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 21 We start with Docker -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 22 Maybe add some scheduling? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 23 And Consul for service discovery? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 24 And Project Calico (canal) for the networking? -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 25 And ELK for the logs collection? -
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 -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 27 Why are you building infrastructure and not your application? -
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 -
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... -
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) -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 32 MANTL Architecture 3 types of components: • Control • Edge • Resource -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 33 MANTL Architecture -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 34 MANTL Architecture -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 35 MANTL Architecture -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 36 Adding MANTL to your infrastructure -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 37 Adding MANTL to your infrastructure -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 41 Security Service discovery Orchestration Networking Persistence Monitoring Cluster Management -
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? -
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 -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 45 What problems does Shipped solve ? -
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) -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 47 Shipped overview -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion 48 Shipped overview Application Intent -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion Shipped - Implementing App Intent - Scaling -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion Shipped - Implementing App Intent - Scaling -
container-solutions.com | @containersoluti µservices with Terraform, Consul & Vault |
@mongrelion Shipped - Implementing App Intent - Scaling -
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? -
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