# 업로드
~/ > curl [ftp://jaeylee:[email protected]](ftp://jaeylee:[email protected]/) --ssl -k -T [run.sh](http://run.sh/) 04:41:13 PM
1 apiVersion: v1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31 0 0 100 31 0 770 --:--:-- --:--:-- --:--:-- 756
# 다운로드
~/ > curl [ftp://jaeylee:[email protected]/run.sh](ftp://jaeylee:[email protected]/run.sh) --ssl -k -o [test.sh](http://test.sh/) 04:42:27 PM
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31 100 31 0 0 573 0 --:--:-- --:--:-- --:--:-- 574
# 팟 확인
kubectl exec -it <pod id> -- sh
# 업로드
curl ftp://EXTERNAL-IP:21 --ssl -k --user <username>:<password> -T filename # active mode
curl ftp://EXTERNAL-IP --ssl -k --user <username>:<password> -T filename # passive mode
curl ftp://192.168.99.101 --ssl -k --user kmin:kmin -T ./sample.txt # passive mode로 활용
# 다운로드
curl ftp://EXTERNAL-IP:21/filename --ssl -k --user <username>:<password> -o ./filename
curl ftp://192.168.99.101/sample.txt --ssl -k --user kmin:kmin -o ./sample.txt
How To Set Up vsftpd for a User's Directory on Debian 10 | DigitalOcean