woonizzooni

kubectl & aws-iam-authenticator설치 (windows10) 본문

Kubernetes

kubectl & aws-iam-authenticator설치 (windows10)

woonizzooni 2021. 5. 24. 01:16

[참고]

Windows패키지 매니저 chocolatey 설치

https://kubernetes.io/ko/docs/tasks/tools/install-kubectl-windows/

https://docs.aws.amazon.com/ko_kr/eks/latest/userguide/install-aws-iam-authenticator.html

 

choco로 설치 진행

 

o kubectl 

   - win+s > cmd > 화면상 '명령프롬프트'에 우측 클릭 > '관리자 권한으로 실행'

   - 설치

C:\WINDOWS\system32>choco install kubernetes-cli
Chocolatey v0.10.15
Installing the following packages:
kubernetes-cli
By installing you accept licenses for the packages.

kubernetes-cli v1.21.1 [Approved]
kubernetes-cli package files install completed. Performing other installation steps.
The package kubernetes-cli wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y <---- !!

Extracting 64-bit C:\ProgramData\chocolatey\lib\kubernetes-cli\tools\kubernetes-client-windows-amd64.tar.gz to C:\ProgramData\chocolatey\lib\kubernetes-cli\tools...
C:\ProgramData\chocolatey\lib\kubernetes-cli\tools
Extracting 64-bit C:\ProgramData\chocolatey\lib\kubernetes-cli\tools\kubernetes-client-windows-amd64.tar to C:\ProgramData\chocolatey\lib\kubernetes-cli\tools...
C:\ProgramData\chocolatey\lib\kubernetes-cli\tools
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 ShimGen has successfully created a shim for kubectl-convert.exe
 ShimGen has successfully created a shim for kubectl.exe
 The install of kubernetes-cli was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\kubernetes-cli\tools'

Chocolatey installed 1/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

** 확인 **
C:\WINDOWS\system32>kubectl version --client
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:18:45Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"windows/amd64"}

 

o aws-iam-authenticator

> choco install aws-iam-authenticator
Chocolatey v0.10.15
Installing the following packages:
aws-iam-authenticator
By installing you accept licenses for the packages.
Progress: Downloading aws-iam-authenticator 0.5.3... 100%

aws-iam-authenticator v0.5.3 [Approved]
aws-iam-authenticator package files install completed. Performing other installation steps.
The package aws-iam-authenticator wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y <--- !!

Downloading aws-iam-authenticator 64 bit
  from 'https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.5.3/aws-iam-authenticator_0.5.3_windows_amd64.exe'
Progress: 100% - Completed download of C:\ProgramData\chocolatey\lib\aws-iam-authenticator\tools\aws-iam-authenticator.exe (38 MB).
Download of aws-iam-authenticator.exe (38 MB) completed.
Hashes match.
C:\ProgramData\chocolatey\lib\aws-iam-authenticator\tools\aws-iam-authenticator.exe
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 ShimGen has successfully created a shim for aws-iam-authenticator.exe
 The install of aws-iam-authenticator was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.

Chocolatey installed 1/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

* 설치 위치 확인 *
C:\WINDOWS\system32>which aws-iam-authenticator
/c/ProgramData/chocolatey/bin/aws-iam-authenticator
Comments