Observation
The HiveMQ Kubernetes Operator is not working and throws the following exception:
Error starting Micronaut server: Unable to start Micronaut server on port: 443 io.micronaut.http.server.exceptions.ServerStartupException: Unable to start Micronaut server on port: 443 at io.micronaut.http.server.netty.NettyHttpServer.bindServerToHost(NettyHttpServer.java:446) at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:318) at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:96) at io.micronaut.runtime.Micronaut.lambda$start$2(Micronaut.java:75) at java.base/java.util.Optional.ifPresent(Optional.java:183) at io.micronaut.runtime.Micronaut.start(Micronaut.java:73) at io.micronaut.runtime.Micronaut.run(Micronaut.java:303) at io.micronaut.runtime.Micronaut.run(Micronaut.java:289) at com.hivemq.Application.main(Application.java:32) Caused by: java.net.SocketException: Permission denied
Reason
The k8s pods running do not have the necessary permissions to allow the Mirconaut server to register is validation hook on port 443.
Likely the permissions granted via the podsecuritypolicy only allows the use of ports > 1024.
Fix
Make sure to update the podsecuritypolicy used for your HiveMQ deployment ( either for the Namespace of the Global policy) in a way that allows the pods to use port 443.