Replies: 10 comments 2 replies
-
in according to the support policies i did a donation! https://github.com/drakkan/sftpgo#support-policy i really like the project and to have it installed in my cluster in a matter of seconds is amazing! and i love golang ❤️ |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your small donation. The chart you used is a bit out of date and installs an SFTPGo version with known security issues. FTP may be unexpectedly hard to set up. For example you haven't set the passive IP and FileZilla is guessing it Line 117 in 7b00fe3 is the configured passive ports range (30000-30100) forwarded to your pod/s? Things get even more complicated with a load balancer. |
Beta Was this translation helpful? Give feedback.
-
Thank you @drakkan for the quick reply! Sad to see the helm chart is so outdated. I tryied adding the
Yes, it is.
I am going to try build it as a single service and expose everything. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
fun fact: if i log in with the web client i see the files (i created an empty file via cli just for test) |
Beta Was this translation helpful? Give feedback.
-
You have a connection refused error now. You client tries to connect to your public IP on one of the configured passive ports. Please be sure that these ports are forwarded to the SFTPGo pod. This is similar to the error reported in #1065 |
Beta Was this translation helpful? Give feedback.
-
can't make it work, so frustrating |
Beta Was this translation helpful? Give feedback.
-
this is the IP to which FTP clients connect for passive connections.
|
Beta Was this translation helpful? Give feedback.
-
I get it to work... but in a 🤮 way! Ok since it's not yet possible to expose a port range in kuberntes services i reduced the port range into just 11 ports (from 30010 to 30020) and manually added to both the deployment and the service This is the Deployment apiVersion: apps/v1
kind: Deployment
metadata:
name: sftpgo-ftpren
spec:
selector:
matchLabels:
app: sftpgo-ftpren
template:
metadata:
labels:
app: sftpgo-ftpren
spec:
containers:
- name: sftpgo
image: drakkan/sftpgo:v2
env:
- name: SFTPGO_FTPD__BINDINGS__0__PORT
value: "2121"
- name: SFTPGO_FTPD__BINDINGS__0__FORCE_PASSIVE_IP
value: "YOURIP"
- name: SFTPGO_FTPD__BINDINGS__0__DEBUG
value: "true"
- name: SFTPGO_FTPD__PASSIVE_PORT_RANGE__START
value: "30010"
- name: SFTPGO_FTPD__PASSIVE_PORT_RANGE__END
value: "30020"
resources:
limits:
memory: "512Mi"
cpu: "0.2"
requests:
memory: "256Mi"
cpu: "100m"
ports:
- containerPort: 8080
- containerPort: 2022
- containerPort: 30010
- containerPort: 30011
- containerPort: 30012
- containerPort: 30013
- containerPort: 30014
- containerPort: 30015
- containerPort: 30016
- containerPort: 30017
- containerPort: 30018
- containerPort: 30019
- containerPort: 30020
- name: ftp
containerPort: 2121
volumeMounts:
- mountPath: /var/lib/sftpgo
name: home
- mountPath: /srv/sftpgo
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: sftpgo-ftpren-data
- name: home
persistentVolumeClaim:
claimName: sftpgo-ftpren-home And this is the Service that exposes just the ftp port and all the passive range. apiVersion: v1
kind: Service
metadata:
name: sftpgo-ftpren-ftp
spec:
type: LoadBalancer
selector:
app: sftpgo-ftpren
ports:
- name: ftp
port: 2121
nodePort: 30021
- name: ftp-base-0
port: 30010
nodePort: 30010
- name: ftp-base-1
port: 30011
nodePort: 30011
- name: ftp-base-2
port: 30012
nodePort: 30012
- name: ftp-base-3
port: 30013
nodePort: 30013
- name: ftp-base-4
port: 30014
nodePort: 30014
- name: ftp-base-5
port: 30015
nodePort: 30015
- name: ftp-base-6
port: 30016
nodePort: 30016
- name: ftp-base-7
port: 30017
nodePort: 30017
- name: ftp-base-8
port: 30018
nodePort: 30018
- name: ftp-base-9
port: 30019
nodePort: 30019
- name: ftp-base-10
port: 30020
nodePort: 30020
sessionAffinity: None
externalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
allocateLoadBalancerNodePorts: true
internalTrafficPolicy: Cluster Note: if you need to expose a wide range of ports a template engine that makes the work for you can be used TL; DR;All the ports of the range must be exposed from the pod and the service must expose all of them |
Beta Was this translation helpful? Give feedback.
-
Thank you @drakkan for your support, this could have been just a discussion. I think i am gonna change the issue's title to be more "referencial" to this case |
Beta Was this translation helpful? Give feedback.
-
i have installed sftpgo in my kubernetes' cluster via https://artifacthub.io/packages/helm/sagikazarmark/sftpgo
Services are up and running
![image](https://user-images.githubusercontent.com/4218220/203128838-78730de2-c1ee-42f2-be8f-951161101852.png)
my
values.yaml
used during installnote:
MYDOMAIN
is not the real value i usedweb application is reachable and i created users.
When i try to connect with the user i created it says that the directory cannot be listed
Beta Was this translation helpful? Give feedback.
All reactions