The files generated by JHipster are in the following structure. That is, each application will have its own folder and the files related to that service will be present inside it.
We will start with the gateway application. There will be three generated files, which will be the gateway-service
, gateway-mysql
, and gateway-deployment.yml
files.
The following is the gateway-service.yml
file:
apiVersion: v1 kind: Service metadata: name: gateway namespace: default labels: app: gateway spec: selector: app: gateway type: LoadBalancer ports: - name: web port: 8080
The first line defines the API version of Kubernetes, followed by the kind of template or object that this template carries. This template will have a service inside of it.
Then, we will have the metadata information. Kubernetes uses this metadata information to group certain services together. In the metadata, we can define:
- The service name
- The namespace it belongs...