본문 바로가기
인프런/쿠버네티스 지상편-스프린트1과2

섹션4-쿠버네티스 무게감 있게 설치하기

by book_lover 2024. 12. 26.

내 PC 개발환경

  • 소스코드는 인텔리제이를 사용
  • 그레들로 메이븐에서 라이브러리 가지고 옴
  • 그레들은 빌드해 줌. JAR 파일 생성
  • 자바 머신위에서 JAR파일 실행
  • 각자 개발 소스 GitHub로 커밋
  • 젠킨스가 GitHub에서 소스다운, 제킨스 안에 그레들이 라이브러리 다운로드
  • 젠킨스안 그레들로 JAR 파일 생성
  • 컨테이너 빌드과정에서 JAR파일 실행시킬 OpenJDK 가져옴 
  • 베이스이미지 위(OpenJDK)에 JAR파일 올리고 이미지 생성
  • 도커허브로 이미지 올림 
  • 젠킨스에서 배포
  • Pod생성명령
  • 도커허브에서 이미지 다운
  • 컨테이너 런타임에 컨테이너생성 명령

VirtualBOX

인프라 환경 구축

쿠버네티스 대시보드로 오브젝트 생성 실습

원격접속툴로 리눅스 접속하여 CLI 명령으로 생성 실습

쉽고 빠르게 설치 방법

  1. 버추얼박스 설치
  2. 베이그란트 설치
  3. 스크립트실행
  4. 설치
  5. 원격접속
  6. Pod 확인
  7. 대시보드 접속 

https://cafe.naver.com/kubeops/24

 

쿠버네티스 무게감 있게 설치하기 > 구간별 상태 확인 (1/2)

안녕하세요^^ 복습 하시러 오셨군요~ 잘하셨어요! 딱 봤을 때 내가 모르는 것만 따라 하시면 됩니다. 그리고 설치하다 문제가 생기신 분은 각 단계에 FAQ 링크가 있으니 참...

cafe.naver.com


Vagrant failed to initialize at a very early stage: The plugins failed to initialize correctly. This may be due to manual modifications made within the Vagrant home directory. Vagrant can attempt to automatically correct this issue by running: vagrant plugin repair If Vagrant was recently updated, this error may be due to incompatible versions of dependencies. To fix this problem please remove and re-install all plugins. Vagrant can attempt to do this automatically by running: vagrant plugin expunge --reinstall Or you may want to try updating the installed plugins to their latest versions: vagrant plugin update Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-disksize (= 0.1.3)'

 

위와같은오류 gpt에서는 이 오류는 Vagrant 플러그인 초기화 중에 발생한 문제라고 지적하여 수정하여 진행하니

설치가 됨

#Vagrant 플러그인 복구 시도
vagrant plugin repair
#플러그인 재설치
vagrant plugin expunge --reinstall
#플러그인 업데이트
vagrant plugin update
#특정 플러그인 수동 제거 및 설치
vagrant plugin uninstall vagrant-disksize
vagrant plugin install vagrant-disksize
#Vagrant 버전 확인 및 업데이트
vagrant --version

 

플러그인 복구 시도 성공해도 될것같지만 일단 알려준대로 재설치 업데이터 제거 및 재설치까지하고

버전 확인 및 업데이트까지 하니 이상없이 쿠버네티스 설치완료