Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Automating Microservices Deployment With Ansible [Video]

DZone's Guide to

Automating Microservices Deployment With Ansible [Video]

Ideally, each microservices team is multifunctional and owns the software artifact from conception to production. Infrastructure as code and automation are necessities.

· Integration Zone ·
Free Resource

The Future of Enterprise Integration: Learn how organizations are re-architecting their integration strategy with data-driven app integration for true digital transformation.

One of the main principles of microservices is to be independently deployable. As a consequence, microservices development and operations tend to be much more complex than a monolith because of their distributed nature. If your IT team has not moved out yet from its silos and has adopted DevOps practices, the operations team will not really understand why they have to deploy hundreds of independent software pieces in opposite to the good old monolith.

“You need a mature operations team to manage lots of services, which are being redeployed regularly.” — Microservices trade-offs by Martin Fowler

The operations team and the software development team should work together adopting DevOps practices to avoid silos and deployment process where the software team throws the software over the wall.

Screenshot 2016-11-18 13.46.37.png

Ideally, each microservices team is multifunctional and owns the software artifact from conception to production. Given the multifunctional nature of these teams, infrastructure as code (IaC) and automation are now a necessity. DevOps teams share the knowledge of server provisioning, configuration management, and deployment. There are several tools and approaches for IaC. As an example, I can mention Kubernetes, that allows you to define its objects as YAML or JSON files.

screenshot-2016-11-16-10-53-00

A couple months ago, I published a blog post that shows how to have your own (no-cost) microservices playground. The focus of this material is educational. It provides instructions on how to deploy each microservice independently. However, some people would like to see all of them running in few minutes.

To show how you can run this microservices playground environment in less than 20 minutes, I decided to record the following screencast that shows how to create an OpenShift cluster using “oc cluster up” (Check out four creative ways to create an OpenShift/Kubernetes dev environment), and deploy all of them using Ansible.

I hope that you enjoy.

f

Make your mark on the industry’s leading annual report. Fill out the State of API Integration 2019 Survey and receive $25 to the Cloud Elements store.

Topics:
microservices ,automation ,deployment ,ansible ,integration

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}