쿠버네티스를 윈도우 환경에서 하나하나 정리하며 설치해보겠다.
MacOS 환경에서 설치는 블로그글에서 확인할 수 있다.
아래 블로그 글에서 도커 툴박스를 설치한다.
[Docker] 윈도우에서 도커 설치하기 (툴박스 vs 데스크탑)
0. 왜 툴박스를 사용해야 할까? 도커 데스크탑 애플리케이션은 윈도우 professional, enterprise, education 버전에서 사용이 가능하다. 윈도우 홈 버전은 Hyper-V를 지원하지 않아서 도커 툴박스를 사용해야
jinyes-tistory.tistory.com
Docker Quickstart Terminal을 실행하면 E_FAIL (0x80004005) 에러가 날 수 있는데 그럴땐 CMD를 관리자로 열어 bcdedit /set hypervisorlaunchtype off로 Hyper-v기능을 off 해주면 잘 실행되었다.
하이퍼바이저인 비추얼박스의 관리 도구 Vagrant도 설치한다.
Downloads | Vagrant by HashiCorp
Vagrant enables users to create and configure lightweight, reproducible, and portable development environments.
www.vagrantup.com
Powershell을 관리자로 열어 Chocolatey도 설치해준다.
Installing Chocolatey
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software deployments.
chocolatey.org
관리자 CMD에서 cinst -y curl kubernetes-cli minikube 명령어를 사용해 curl과 kubectl, minikube를 설치한다.
Oricle VM VirtualBox를 열어 좌측상단에 파일 -> 업데이트 찾기를 누르고 업데이트 버전이 있으면 업데이트 해주고 Git 커맨드도 설치해준다.
Downloads – Oracle VM VirtualBox
Download VirtualBox Here you will find links to VirtualBox binaries and its source code. VirtualBox binaries By downloading, you agree to the terms and conditions of the respective license. If you're looking for the latest VirtualBox 6.0 packages, see Virt
www.virtualbox.org
Git - Downloading Package
Downloading Git Now What? Now that you have downloaded Git, it's time to start using it.
git-scm.com
그럼 이제 Docker Quickstart Terminal을 실행해 minikube delete 후 minikube start를 실행한다.
만약 CPU나 메모리가 모자를땐 VitualBox 관리자에서 CPU나 메모리를 늘려준다.
모두 다 실행했으면 kubectl cluster-info를 실행하여 마스터의 IP 주소와 내부 DNS의 엔드포인트를 확인해보자
노드도 정상적으로 출력된다.
설치 도중 에러도 너무많고 윈도우로 하기 참 힘들다...
'Docker & Kubernetes' 카테고리의 다른 글
쿠버네티스 MacOS 환경 설치 (0) | 2021.12.02 |
---|---|
쿠버네티스 파드 실행 (0) | 2021.12.01 |
퍼시스턴스 볼륨 API 구현 예시 (0) | 2021.11.26 |
환경 변수 API 구현 예시 (0) | 2021.11.26 |
컨테이너 API (0) | 2021.11.26 |