카테고리 없음

CLI 실습2

코딩펭귄 2022. 11. 15. 17:46

 

az aks install-cli

 

step2. (그림에서 2번)

az acr create --resource-group RG24 --name labuser24acr2 --sku Basic

(여기서 sku - 만들려고하는 서비스의 스펙)

 

az aks create --resource-group RG24 --name labuser24 --location eastus --attach-acr labuser24acr2 --generate-ssh-keys   --> 설치 오래걸림

 

 

step3. (그림에서 3번)

az aks install-cli 

접속에필요한 인증 만드는과정 : az aks get-credentials --resource-group RG24 --name labuser24aks

 

 

step4. (사진에서 1번 박스)

샘플깃허브에서 가져와서 도커 만들기

이를위해, 먼저 깃 설치하기 : Git - Downloads (git-scm.com)

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp

git-scm.com

 

az acr build --image azure-vote-front:v1 --registry labuser24acr --file Dockerfile . -> 이미지만들고 push하는 작업 반복하게 함

 

 

-> Docker 만들고 acr 등록까지 끝낸걸 볼수있다 (제일 위에있는그림, 1->2 진행한것)