13 Final notes: Container-native Vert.x

 

This chapter covers

  • Efficiently building container images with Jib
  • Configuring Vert.x clustering to work in a Kubernetes cluster
  • Deploying Vert.x services to a Kubernetes cluster
  • Using Skaffold and Minikube for local development
  • Exposing health checks and metrics

By now you should have a solid understanding of what a reactive application is, and how Vert.x can help you build scalable, resource-efficient, and resilient services. In this chapter we’ll discuss some of the main concerns related to deploying and operating a Vert.x application in a Kubernetes cluster container environment. You will learn how to prepare Vert.x services to work well in Kubernetes and how to use efficient tools to package container images and run them locally. You will also learn how to expose health checks and metrics to better integrate services in a container environment.

This chapter is optional, given that the core objectives of the book are about teaching yourself reactive concepts and practices. Still, Kubernetes is a popular deployment target, and it is worth learning how to make Vert.x applications first-class citizens in such environments.

13.1 Heat sensors in a cloud

13.1.1 Heat sensor service

13.1.2 Sensor gateway

13.1.3 Heat API

13.1.4 Deploying to a local cluster

13.2 Making the services work in Kubernetes

13.2.1 Building container images

13.2.2 Clustering and Kubernetes

13.2.3 Kubernetes deployment and service resources

13.3 First-class Kubernetes citizens

13.3.1 Health checks

13.3.2 Metrics

13.4 The end of the beginning

Summary