Slides for Azure Webinar: Kubernetes on Azure, including Build 2018 and AKS GA Update
訂正: Azure Container Instance は2018年4月25日の時点でGAされております https://azure.microsoft.com/ja-jp/updates/aci-ga/
10. https://azure.microsoft.com/en-us/support/legal/sla/kubernetes-service/v1_0/
As a free service, AKS does not offer a financially-backed
service level agreement. We will strive to attain at least
99.5% availability for the Kubernetes API server. The
availability of the agent nodes in your cluster is covered
by the Virtual Machines SLA. Please see the Virtual
Machines SLA for more details.
12. 例えば、次のオペレーションもこんなに簡単
az aks scale –name mycluster –resource-group rg-aks --node-count 4
az aks upgrade –name mycluster –resource-group rg-aks --kubernetes-version
1.9.6
16. az container create
-g aci_grp
--name nginx
--image library/nginx
--ip-address public
–cpu 2 --memory 5
シングルコマンドで実行可能なクラスタフリーコンテナ環境
PREVIEW
17. Kubernetes
control pane
Application
architect
Infrastructure
architect
Azure Container Instances (ACI)
ACI
Connector
Pod
Pod Pod
Pod
Pod Pod
Pod
Pod Pod
Pod
Pod Pod
VM VM
VM VM
Deployment/
tasks
Pod Pod Pod Pod Pod
Pod Pod Pod Pod Pod
Pod Pod Pod Pod Pod
Pod Pod Pod Pod Pod
Pod Pod Pod Pod Pod
WasteWaste
WasteWaste PodPod
PodPod
ACI Connector for Kubernetesを使うことでKubernetesクラスタがコンテナをACIに直
接展開できるようになる。開発者は必要に応じてVMとACIを混在させることができ
るようになる
PREVIEW
41. Combine multiple Kubernetes resources in
one versioned unit (a chart)
Templates provide default behavior and ability
to override
Enables lifecycle operations like upgrade
Helm repos enable easy deployment of pre-
built apps
Editor's Notes
VM SLA: https://azure.microsoft.com/en-us/support/legal/sla/virtual-machines/v1_8/
https://docs.microsoft.com/ja-jp/azure/container-instances/container-instances-overview
コンテナー1つから使えるマネージドサービス
ユーザーはアプリに集中
秒単位課金
起動が秒速なコンテナーならでは
単独でも、組み合わせても
今後Azureの各サービスの基盤として使われる可能性大
今できること
- Run Linux and Windows containers
- Custom CPU/memory (up to 4 CPU/14 GB memory)
- Expose containers via public IP
- Mount storage volumes
- Set environment variables and pass secrets
- Set restart policy
- Override the command line
ロードマップ
- Provide most standard container capabilities
Attach to an existing container
Copy files into/out of running containers
Enable ACI containers to do most things that VMs can do in Azure
Networking: Join a private vnet, sit behind an internal or external load balancer
Storage: Mount managed disks (Azure files is already available)
Invest in ACI Connector for more complex applications
Autoscaling, HA, rolling upgrades, load balancing, etc. will all be easier with an orchestrator
Developer tooling will also primarily target the orchestrator layer
Serverless CI Builds with Cake and Azure Container Instances
https://markheath.net/post/serverless-ci-with-cake-and-aci
echo "deploy the Facial Recognition application that consists of a frontend, a backend, and a set of image recognizers."
helm install charts/fr-demo --name demo
echo "Deploy the ACI connector : Replace <myResourceGroupmy>, <myK8sCluster> with yours in previous steps and run following command"
az aks install-connector --resource-group RG-aks --name myAKSCluster --connector-name myaciconnector
# The connector has been deployed and with a kubectl get nodes you can see that the ACI Connector is a new node in your cluster. Now scale up the image recognizer to 10 using the following command
kubectl scale deploy demo-fr-ir-aci --replicas 10
This allows the nodes to be backed by other services like ACI, AWS Fargate, Hyper.sh, IoT Edge etc. 外部プラグインとして利用可能
UPDATE: 6/11/2018
Azure Container Instances supports multiple new features in the release of the June API 01-06-2018:
Deploy multi-container groups by using simple YAML configurations from Azure CLI 2.0. You can also export the YAML from existing container groups to save and edit configurations.
az container create --resource-group MyResourceGroup --name myContainerGroup -f myconfiguraiton.yaml
az container export --resource-group MyResourceGroup --name myContainerGroup -f exportedconfiguration.yaml
Pass secrets safely as environment variables that can only be accessed from within your container by utilizing secure values.
Set up liveness probes for your containers so they restart when specific functionality isn't working.
Query your container logs from Azure Log Analytics by passing in an OMS workspaceId.
両方とも these metrics are automatically collected for you using a containerized version of the OMS Agent for Linux and stored in your Log Analytics workspace
ただし Log Analytics Container SolutionはLogAnalyticsのポータルより閲覧、Azure Monitorは専用Azure Monitorダッシュボードで閲覧。見え方は違います
よりK8Sに特化していて見やすいのはAzure Monitor Container Health
After monitoring is enabled, it can take around 15 minutes before you are able to see operational data for the cluster.