Infra 30

ftp로 파일 전송 시 425 Failed to establish connection.425 Use PORT or PASV first.

ftp로 put 명령어 사용 시 425 Failed to establish connection. 425 Use PORT or PASV first. 가 발생했을 때 해결 https://shinks.tistory.com/6 FTP 425 Can't build data connection : Connection timed out 오늘 알아볼 증상은 윈도우 자체 FTP 프로그램 사용시 아래처럼 425 Can't build data connection : Connection timed out 오류 발생 제가 해결한 방법입니다. 우선 오류 증상을 한번 봐야겠죠? 이제 해결 하러 가 shinks.tistory.com Windows - 방화벽 앱 설정에서 '파일 전송 프로그램' 체크 해제 한다. Win+R에서 ftp로..

Infra/리눅스 2023.01.25

ECR 사용하기

ECR(Amazon Elastic Container Repository) Docker Hub 대신 이미지의 Repository로 사용할 수 있다. ECR > Repositories 로 들어간다. Tag immutability나 Image scan settings, 암호화를 사용할 경우 과금되므로 생략한다. View push commands를 클릭한다. my-nginx Repo에 어떻게 이미지를 저장할 수 있는지에 대한 명령어가 나와 있다. > aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin 056332668609.dkr.ecr.ap-northeast-2.amazonaws.com ..

Infra/Docker 2022.08.27

kubernetes 4

직접적인 연결이 안되기 때문에, PV로 연결해야 한다. master1을 nfs 서버로 만든다. => PV 생성 후 NFS와 연결한다. # yum install -y nfs-utils.x86_64 #mount -t fsf # mkdir /nfs_shared # chmod 777 /nfs_shared # echo '/nfs_shared 192.168.56.0/24(rw,sync,no_root_squash)' > /etc/exports # systemctl enable --now nfs # mount -t nfs 192.168.0.189:/nfs_shared /mnt RECLAIM POLICY :다시요청가능한지에 대해 # kubectl expose deployment nfs-pvc-deploy --type=L..

Infra/Kubernetes 2022.07.19

kubernetes 3

master1 접속 deployment 폴더 생성 후 deployment.yaml 파일 생성 vi deployment.yaml # manifest 작성(: yaml파일로 작성해 놓은 선언적 API) apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: replicas: 3 selector: matchLabels: app: nginx-deployment template: metadata: name: nginx-deployment labels: app: nginx-deployment # selector는 이 라벨과 일치하는 것을 찾는다. spec: containers: - name: nginx-deployment-contain..

Infra/Kubernetes 2022.07.18