Creating FTP Service

6/23/2016

I'm attempting to create an FTP service with Kubernetes via google cloud. I've created the docker image with and exposed the necessary ports with: EXPOSE 20 21 50000-52000.

I've run into several problems so far: The biggest involving port ranges. ProFTPD needs a good amount of ports available to be able to handle passive connections, so I'm not quite sure how to create a service that will allow this.

This lead me to this issue which mentions I should use the hostNetwork: true, but that doesn't help the fact that each service needs to have well defined ports. After some configuration changes, I was able to add the 2000 ports by defining them out manually. When I did this though, now google API returns an error when trying to create the load balancer because it only allows 100 ports in the array (But it does appear via the console they support ranges).

How do I go about adding this FTP service, and supporting the passive range?

-- Goodbye StackExchange
kubernetes
proftpd

1 Answer

7/3/2016

Kubernetes does not currently support port ranges. It's difficult to implement with the legacy (but still supported) userspace proxy.

I think there are a few GH issues open on this but https://github.com/kubernetes/kubernetes/issues/20420 is one.

-- Tim Hockin
Source: StackOverflow