minikube로 쿠베를 설치하고, kubectl 로 컨트롤을 설치하고 버젼확인을 하였으나, 쿠버의 클라이언트와 서버의 버전 차이로 오류가 발생했다. 음.. 그런데 이 포스팅하려고 캡쳐본 다시 보니 error가 아닌 warning이었네..

 

아무튼 에러로 인지하고 당시에는 kubectl을 server버전인 1.25에 맞춰주려고 임의로 curl을 통해서 1.25 버전을 설치하였다.

그런데, 그 후에는 버전이 2개 겹쳐서인지 The system cannot execute the specified program. 에러가 발생하였다.

버전을 1개 지정을 해주어야하는데, 이 방법을 아직 못찾았음. 다음 테스트에서는 이 부분부터 시작예정.

==========================================================================

C:\Windows\system32>minikube start
* Microsoft Windows 10 Pro 10.0.19043 Build 19043 의 minikube v1.27.1
* 기존 프로필에 기반하여 hyperv 드라이버를 사용하는 중
* minikube 클러스터의 minikube 컨트롤 플레인 노드를 시작하는 중
* Restarting existing hyperv VM for "minikube" ...
* 쿠버네티스 v1.25.2 을 Docker 20.10.18 런타임으로 설치하는 중
* Kubernetes 구성 요소를 확인...
  - Using image gcr.io/k8s-minikube/storage-provisioner:v5
* 애드온 활성화 : storage-provisioner, default-storageclass

! C:\Program Files\Docker\Docker\resources\bin\kubectl.exe is version 1.21.3, which may have incompatibilites with Kubernetes 1.25.2.
  - Want kubectl v1.25.2? Try 'minikube kubectl -- get pods -A'
* 끝났습니다! kubectl이 "minikube" 클러스터와 "default" 네임스페이스를 기본적으로 사용하도록 구성되었습니다.

C:\Windows\system32>curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.23.5/bin/windows/amd64/kubectl.exe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45.6M  100 45.6M    0     0  5191k      0  0:00:08  0:00:08 --:--:-- 6534k

C:\Windows\system32>kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5", GitCommit:"c285e781331a3785a7f436042c65c5641ce8a9e9", GitTreeState:"clean", BuildDate:"2022-03-16T15:58:47Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.2", GitCommit:"5835544ca568b757a8ecae5c153f317e5736700e", GitTreeState:"clean", BuildDate:"2022-09-21T14:27:13Z", GoVersion:"go1.19.1", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.23) and server (1.25) exceeds the supported minor version skew of +/-1

C:\Windows\system32>curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.25/bin/windows/amd64/kubectl.exe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   224  100   224    0     0    532      0 --:--:-- --:--:-- --:--:--   535

C:\Windows\system32>kubectl version
The system cannot execute the specified program

 

Posted by 유영훈
,