Read up on FTP passive mode and you'll understand why. In passive mode,
the client first talks to the server on port 21, and then the server
picks another randomly assigned port to listen on which the client then
communicates with going forward. Kubernetes (and docker) won't have
that randomly assigned port exposed, which is why this is failing.
Seem to me you have 2 options: 1) either only use active mode, or 2)
run the FTP server pod using "hostNetwork", so that it has full access
to all ports on the host machine.
I would think that option 2 won't work very well with Kubernetes, as
Kuberenetes won't know about the port(s) your FTP server is listening
on, and you'll wind up with port conflicts.
HTH,
DR
On 05/15/2018 06:09 AM, 我是KY K wrote:
I am trying to set up a FTP server with Persistent Disk and follow this
instruction <https://github.com/aledv/kubernetes-ftp>.
I can mount the Persistent Disk to the Pod, but I cant connect the server
with FTP app such like FileZilla,The passive mode failed.
I think it's port problem, So I serve the port 20,21 ,but still not work.
Is there any other feasible way to set FTP server on GKE?
--
You received this message because you are subscribed to the Google Groups "Kubernetes
user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.