I'm pretty sure that this is a basic use case when running apps on kubernetes
, but till now I wasn't able to find a tutorial, nor understand from the documentation, how to make it work.
I have an application, which is listening on a port 9000
. So when run on my localhost, I can access it through a web browser on a localhost:9000. When run in a docker container, which is running on my VPS
, it's also accessible on myVPSAddress:9000
. Now the question is, how to deploy it on kubernetes
running on the very same Virtual Private Server
and expose the application to be visible as well, as when deployed on docker. I can access the application from within the VPS on the address of the cluster, but not on the IP address of the server itself. Can somebody show me some basic dockerfile with a description what is it doing or show me some idiot-proof way, how to make it work? Thanks