You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Information
I was trying to install vernemq using the Helm Chart and enabling the HTTP API to allow Prometheus to collect metrics.
For development purposes, I needed to use NodePort, so I used the following values:
As you can see, the api is enabled and the service.type is NodePort.
Problem
After running the helm install command (helm install vernemq vernemq/vernemq -f values.yaml), an error seems to occur: Error: INSTALLATION FAILED: Service "edb-vernemq-api" is invalid: spec.ports[0].nodePort: Forbidden: may not be used when type is 'ClusterIP'
If I run the helm install with the flag --dry-run , the output shows the problem:
Information
I was trying to install vernemq using the Helm Chart and enabling the HTTP API to allow Prometheus to collect metrics.
For development purposes, I needed to use NodePort, so I used the following values:
As you can see, the api is enabled and the service.type is NodePort.
Problem
After running the helm install command (helm install vernemq vernemq/vernemq -f values.yaml), an error seems to occur:
Error: INSTALLATION FAILED: Service "edb-vernemq-api" is invalid: spec.ports[0].nodePort: Forbidden: may not be used when type is 'ClusterIP'
If I run the helm install with the flag --dry-run , the output shows the problem:
The spec.type does not change. Verifying this in the Helm template on GitHub confirms my suspicion:
The spec.type is hardcoded, while the ports have the possibility to use NodePort.
Solution
If I am not wrong, the solution is to use an if-else statement as shown in the service.yaml
The text was updated successfully, but these errors were encountered: