Generating Kubernetes configuration files with JHipster

Knowing the components of Kubernetes and how it works is beyond the scope of this book. However, we will look at how JHipster simplifies microservices deployment with Kubernetes. Let's go ahead and generate the Kubernetes configuration file.

Similar to the docker-compose sub-generator, JHipster also comes bundled with a Kubernetes sub-generator. In order to use it, just like with docker-compose, we will create a new folder and name it Kubernetes. Then, we will go inside the folder to create the configuration files.

We can create Kubernetes configuration files with the following command and then answer the questions that the sub-generator asks us:

> mkdir kubernetes && cd kubernetes

Get Full Stack Development with JHipster now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.