LoginSignup
0
0

More than 5 years have passed since last update.

AKSのチュートリアル

Posted at

「しくみがわかるKubernetes」に沿って進める
AzureContainerRegistry(以下「ACR」)にビルドする。

セットアップ 

$ brew update && brew install azure-cli
$ az login
$ az provider register -n Microsoft.Network
$ az provider register -n Microsoft.Storage
$ az provider register -n Microsoft.Compute
$ az provider register -n Microsoft.ContainerService
$ brew install kubernetes-cli

リソースグループの作成とレジストリへのビルド

$ az group create --resource-group test --location japaneast
$ az acr build --registry testr --image kusakari:v1.0 src/
The resource with name 'testr' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription '無料試用版 (XXXXX)'.

無料のサブスクリプションでは、ビルド不可?
サブスクリプションを従量課金に更新して、続行する。

レジストリへのビルドと結果確認

$ az acr build --registry testr --image kusakari:v1.0 src/
$ az acr repository show-tags -n testr --repository kusakari
[
  "v1.0"
]

いけました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0