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