728x90
참고
https://kubernetes.io/ko/docs/tasks/tools/install-kubectl-windows/
윈도우에 kubectl 설치 및 설정
시작하기 전에 클러스터의 마이너(minor) 버전 차이 내에 있는 kubectl 버전을 사용해야 한다. 예를 들어, v1.32 클라이언트는 v1.31, v1.32, v1.33의 컨트롤 플레인과 연동될 수 있다. 호환되는 최신 버전
kubernetes.io
쿠버네티스 공식 문서를 보고 참고하면 된다.
설치 과정(curl 을 사용하여 kubectl 바이너리 설치)
powershell을 관리자 권한으로 실행해준다.
PS C:\WINDOWS\system32> curl.exe -LO "https://dl.k8s.io/v1.32.0/bin/windows/amd64/kubectl.exe.sha256"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 100 138 0 0 666 0 --:--:-- --:--:-- --:--:-- 673
100 64 100 64 0 0 245 0 --:--:-- --:--:-- --:--:-- 245
PS C:\WINDOWS\system32> CertUtil -hashfile kubectl.exe SHA256
SHA256의 kubectl.exe 해시:
3601cb47c4d6a42b033a8f8fca68bc6f24baa99f5a1250fdb138d24a6c7cc749
CertUtil: -hashfile 명령이 성공적으로 완료되었습니다.
PS C:\WINDOWS\system32> type kubectl.exe.sha256
3601cb47c4d6a42b033a8f8fca68bc6f24baa99f5a1250fdb138d24a6c7cc749
PS C:\WINDOWS\system32> $($(CertUtil -hashfile .\kubectl.exe SHA256)[1] -replace " ", "") -eq $(type .\kubectl.exe.sha256)
True
PS C:\WINDOWS\system32> kubectl version --client
Client Version: v1.32.0
Kustomize Version: v5.5.0
PS C:\WINDOWS\system32> kubectl version --client --output=yaml
clientVersion:
buildDate: "2024-12-11T18:05:36Z"
compiler: gc
gitCommit: 70d3cc986aa8221cd1dfb1121852688902d3bf53
gitTreeState: clean
gitVersion: v1.32.0
goVersion: go1.23.3
major: "1"
minor: "32"
platform: windows/amd64
kustomizeVersion: v5.5.0
'DevOps > Kubernetes' 카테고리의 다른 글
[kubernetes] 쿠버 클러스터 호스트 네임 변경으로 인해 자식 노드 재가입 (0) | 2025.01.12 |
---|---|
[kubernetes]로드밸런싱을 위한 control-plane 증설 (0) | 2025.01.11 |
[Kubernetes] 클러스터 구성 중 접한 ERR (0) | 2024.10.21 |
[Kubernetes] 클러스터에 노드 추가 (0) | 2024.09.10 |
[Kubernetes]CrashLoopBackOff 장애 (0) | 2024.08.13 |