Punter Vicky
Punter Vicky

Reputation: 16992

Spring Boot - Kafka Consumer in Cloud Foundry

I would like to run a Kafka Consumer instance developed using Spring Boot in Cloud Foundry. Is there a way to deploy an app without listening on any port (80 or 443)?

Upvotes: 1

Views: 420

Answers (1)

dkoper
dkoper

Reputation: 1485

Use cf push app --no-route --u process to push your app and not have a route for it generated.
The -u flag ensures that the health checker determines whether the app started successfully by checking the process is alive, as opposed to whether it's listening to the port.

On old CF releases and cf CLI's you may find process is not supported. In that case, use none instead of process. (none was deprecated in favor of the more meaningful process, but they're just aliases and do exactly the same thing.)

Upvotes: 1

Related Questions