meilisearch-kubernetes
meilisearch-kubernetes copied to clipboard
Add the possibility to precise nodePort in values.yaml if service type is NodePort
In values.yaml it is possible to define the Service type. But if a user defines it as a NodePort service, there is no field in the chart to specify the nodePort, so kubernetes will allocate a random port.
In a NodePort Service, the nodePort field is defined as follows:

But MeiliSearch chart is not prepared to let the user specify this nodePort Value in values.yaml and integrate it in the template (cf. see here).
The service template could check if the Service type is NodePort, and in that case, add the nodePort field to the Service Template.