VM 설치 후 ssh 접속 오류
gcsw10@Boot-MacBook-Pro ~ ssh root@192.168.56.30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:3LY68MCYBrbmPyDg17qJo8/RSDUD8izVz1B9+cMOl68.
Please contact your system administrator.
Add correct host key in /Users/gcsw10/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/gcsw10/.ssh/known_hosts:3
Host key for 192.168.56.30 has changed and you have requested strict checking.
Host key verification failed.
- SSH가 이전에 연결한 호스트와 현재 연결하려는 호스트의 키가 다르다고 감지했기 때문에 발생
해결방법
- 기존 호스트 키를 삭제
- 그러면 새로운 호스트 키가 자동으로 다시 생성
- 이후 접속 가능해짐
ssh-keygen -R 192.168.56.30
VM에서 파일 가져오기
// ssh 사용자@ip:[파일경로] [로컬경로]
scp root@192.168.56.20:/var/lib/jenkins/.kube/config /Users/gcsw10/Downloads
PV path 설정 오류
MountVolume.NewMounter initialization failed for volume "api-tester-2231-files" : path "/root/k8s-local-volume" does not exist
- PV에 설정한 path가 존재하지 않을 때 발생
- Master로 접속해서 해당 경로를 생성해주면 끝..
//root/k8s-local-volume 경로를 생성
sudo mkdir -p /root/k8s-local-volume
//파드가 이 경로에 접근할 수 있도록 적절한 권한을 설정
sudo chmod 777 /root/k8s-local-volume
Back-off restarting failed container post in pod
resources:
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "1000m"
- 리소스 설정을 충분하게 하지 않아 배포한 서비스가 제대로 실행되지 못했음...
- 리소스 설정을 충분하게 하자!!