SBN

Building Microservice Architecture on Kubernetes

Istanbul is home to architectural wonders of the ancient world, such as the Hagia Sophia and the Basilica Cistern, but today Istanbul brings us microservice architecture, where smaller is better.

Huseyin Babal is in Istanbul, where he was a DevOps Consultant with Kloia (now at Hazelcast). He is also the organizer of Docker Istanbul, NodeSchool Istanbul, and DevOps Underground (not held in the Basilica Cistern). At last year’s All Day DevOps conference, he demonstrated how to implement a microservice architecture using Kubernetes. Huseyin’s talk was focused on an architectural overview rather than how to install Kubernetes.

Microservices divide your application’s functions into chunks that are independently deployable. Microservices are becoming an increasingly utilized tool in DevOps and CI/CD, and it is a popular subject at All Day DevOps. Kubernetes is an open-source platform to manage microservices. It is deployable on the cloud provider of your choice. AWS, Azure, and Google Cloud all provide managed instances of Kubernetes, and you can use kubespray to deploy Kubernetes in your datacenter. It helps you focus on the architecture rather than the infrastructure-level operations.

Huseyin begins talking about architecture at the high level. Most organizations need development, staging, and production environments, at a minimum. You can organize these in clusters in isolation, as you probably already do.

null

Or he suggests a better way – namespace-level isolation, along with this pro-tip, “Do not put all things in the default namespace, as it will be very hard to manage them in the future.”

Development Staging Production

Once your system is setup, you need to make sure you monitor everything. Prometheus is a tool you can use, and Huseyin walks through several of its capabilities and mentions an open-source tool to handle k8s-specific metrics automatically.

When you are ready to expose your application to the outside world, (Read more...)

*** This is a Security Bloggers Network syndicated blog from Sonatype Blog authored by Derek Weeks. Read the original post at: https://blog.sonatype.com/microservice-architecture-on-kubernetes

Secure Guardrails