DevOps
Mac에 NCloud kubectl 설치
codinglog
2023. 8. 7. 13:03
kubectl 설치
brew install kubectl
ncp-iam-authenticator 설치
brew tap NaverCloudPlatform/tap
brew install ncp-iam-authenticator
ncp-iam-authenticator API 인증키값 설정
OS 환경변수 설정
export NCLOUD_ACCESS_KEY=ACCESSKEYIDACCESSKEY
export NCLOUD_SECRET_KEY=SECRETACCESSKEYSECRETACCESSKEYSECRETACCE
export NCLOUD_API_GW=https://ncloud.apigw.ntruss.com
ncp-iam-authenticator update-kubeconfig 명령 사용
ncp-iam-authenticator update-kubeconfig --region <region-code> --clusterUuid <cluster-uuid>
region - KR, SGN, JPN
clusterUuid - Console에서 Kubernetes Service --> Clusters 에서 해당하는 클러스터의 UUID 확인
생성된 설정 파일 확인
~/.kube
에 생성된 config
파일 생성 확인
반응형