- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-08-14T03:55:16+00:00","","")
#author("2020-08-14T07:18:25+00:00","","")
#mynavi(AzureでSSOを行う)
#setlinebreak(on);
* 概要 [#ud447b47]
#html(<div class="pl10">)
#html(</div>)
* 目次 [#s0135f50]
#contents
- 関連
-- [[Azureメモ]]
- 参照
-- [[Azure App Service を使ってコンテナー化された Web アプリをデプロイして実行する:https://docs.microsoft.com/ja-jp/learn/modules/deploy-run-container-app-service/]]
-- [[Create a Python app in Azure App Service on Linux>https://docs.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=bash]]
-- [[Azure App Service on Linux の FAQ>https://docs.microsoft.com/ja-jp/azure/app-service/faq-app-service-linux]]
#myterm2(){{
strType=AzureBlob
strType=AzureFiles
az webapp config storage-account add \
--access-key $strAccessKey
--account-name $strAccountName
--custom-id $strCustomId
--share-name $strContainerName
--storage-type $strType
--mount-path $mountPath
}}
* リソースグループの作成 [#c2d4840f]
#html(<div class="pl10">)
#myterm2(){{
az group create --name mygroup --location japanwest
}}
#html(</div>)
* レジストリの作成 [#defcd65a]
#html(<div class="pl10">)
#myterm2(){{
az acr create --name レジストリ名 --resource-group mygroup --sku standard --admin-enabled true
}}
#html(</div>)
* イメージのプッシュ [#p22e32c7]
#html(<div class="pl10">)
Dockerfileからイメージを作成
#myterm2(){{
az acr build --file Dockerfile --registry レジストリ名 --image イメージ名 .
}}
docker-compose.yml からWebアプリを作成
#myterm2(){{
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name アプリケーション名 --multicontainer-config-type compose --multicontainer-config-file docker-compose.yml
}}
docker-compose.yml
#mycode2(){{
version: "3"
services:
grafana:
image: イメージ名:タグ名
ports:
- "3000:3000"
environment:
- GF_SERVER_ROOT_URL=http://localhost:3000
- GF_SECURITY_ADMIN_PASSWORD=admin
}}
#html(</div>)
* 参考 [#d07b2313]
#html(<div class="pl10">)
AzureFiles では SQLite の共有は出来ない模様。
https://github.com/kubernetes/kubernetes/issues/59755
#mycode3(){{
AzureFileを使用してこの問題を解決することはできませんでした。
そこで、回避策として、AzureDiskを使用してGrafanaとPrometheusの永続的なボリュームバックエンドとしてボリュームを作成しました。
リファレンス: https://docs.microsoft.com/en-us/azure/aks/azure-disk-volume
}}
#html(</div>)