Upgrade to Pro — share decks privately, control downloads, hide ads and more …

第11回 Tokyo JAZUG Night

9481f5fd577257e4cef132b4fd53ddce?s=47 TonyTonyKun
February 25, 2018

第11回 Tokyo JAZUG Night

Azure Container Service(AKS)の初心者向けのセッション資料です。

9481f5fd577257e4cef132b4fd53ddce?s=128

TonyTonyKun

February 25, 2018
Tweet

Transcript

  1. Azure Container ServiceAKS    .1 0

  2.  ROMANCE DAWN for the new world • http://gooner.hateblo.jp/ Microsoft

    MVP for Microsoft Azure : 2 8 0. 11 0. ,
  3.  Azure Container Service ( AKS ) .)  ASP.NET

    Core %$'& Azure Container Service ( AKS )  OSS * (+  "Helm Chats !#Istio !%,-Prometheus + Grafana  3 1 0 , 22 1 0 . . 8.
  4. Overview ) () ( 

  5.  Consistent &4*- .1LI7=H FD#4.3%0",6 &,85  Lightweight Virtual Machine

    @B:C ;9A RAM : Sharing Docker Hub  Azure Container Registry  Docker Registry MK ><  Simple yet powerfull DockerFile '4.2*$)+G?!/(JE  51 0 , 22 1 0 . .58.
  6. Azure   Azure Virtual Machine Azure Service Fabric Azure

    Web Apps for Containers Azure Container ServiceACS Azure Container ServiceAKS Azure Container Instances  1 0 , 22 1 0 6 .6. 8.  2018228Preview 
  7. Azure   ≠ AKS Azure Web Apps for Containers

    Azure (6,."I  >DFL )/+ :N! Azure Web Apps (6,.P Kubernetes 8K9A=! E Web #03 '*26C< ! 7? AKS J@  "H  (6,.%'+-4*26Kubernetes J@   OB(6,.#03'*26";M 1$&5)/+G   1 07 , 22 1 07 . . 8.
  8. Kubernetes ( k8s ) +?04#aK53YQ "#7;/2 6'9b  ! +?04%:,OK#NC!53YQ"!

    IZ!SH  VdUAF-*=$&2 ! -*=$&2+?04BTE[ c] ! G\@+?04 `R!AFD+?04 WFNC OK#X_M "! +?04^DAF><?)$/712"! Azure LJ(;&38?. P ! Amazon Elastic Container Service for KubernetesEKS Google Kubernetes EngineGKE 2 8 0. 11 0. ,
  9. Azure Container ServiceAKS &! Kubernetes 59 $ Master " :;

    42 /8 7-.6Agent "  Agent " )*30 Kubernetes Cluster #'*%30  +,('*1  9 1 0 , 22 1 0 . . 8.
  10. Azure Container ServiceACS -#&"$, +-3A(" DC / OS Kubernetes Docker

    Swarm *'!%(" 7#-) ,$ 61;?B> ;?0<4 IaaS : 85"$/ AKS =.209@ (" 2 8 0. 11 0. ,
  11. Quick Start    

  12. Azure Container ServiceAKS Azure Portal GUI  Service Principal 

    Azure CLI 2.0 Azure Portal Cloud Shell     Service Principal  2 8 0. 11 0. , $ az group create --name <> --location westus2 $ az aks create --resource-group <> –name <AKS> --generate-ssh-keys
  13. AKS   Service Principal Kubernetes  Azure ,& ("

    $) • ! IP  *% Azure Portal Cloud Shell ' -+ &# 3 1 0 , 22 1 0 . . 8. $ az account set --subscription < ID> $ az ad sp create-for-rbac --role=“Contributor” --scopes=“/subscriptions/ ID”
  14. kubectl    Kubernetes 0*  #!# " Azure

    CLI 2.0 - #" Azure CLI 2.0 - #" .+ kubernetes /%)&$( .kube/config "/%)&,' 4 1 0 , 22 1 0 . . 8. $ az aks get-credentials --resource-group=<> --name=<AKS> $ kubectl get nodes  https://kubernetes.io/docs/tasks/tools/install-kubectl/ $ az aks install-cli
  15. Demo AKS  ASP.NET Core     51

    0 , 22 1 0 . .58. Agent Node Agent Node Pod Service Container Master Node Azure Container Service ( Kubernetes ) Docker Hub Request docker pull
  16. AKS  OSS      + 

         +
  17. Helm Charts Kubernetes  Charts Kubernetes  YAML  

     YAML '&!$%  (  Helm "  )#  Client ( helm ) Server ( tiller ) Kubeapps Hub  Charts Repository https://hub.kubeapps.com/ 1 07 , 22 1 07 . . 8.
  18. Demo Helm Charts  WordPress    2 8

    0. 11 0. ,
  19.  ( Istio ) GoogleIBMLyft3/ &+$! Kubernetes , &* #028<-1

    ?9  =6 Blue / Green &*'+! "((( !%) .B!)+ Kubernetes @4 C>  Istio ; :A 57  9 1 0 , 22 1 0 . . 8.
  20. ( Istio ) Istio  2 8 0. 11 0.

    , Envoy     Istio Proxy        
  21. Demo   2 8 0. 11 0. , 50

    % 50 % Reviews     
  22. Demo  2 8 0. 11 0. ,

  23. AKS  Prometheus Kubernetes L?>6 Pull JFG#3 +%*2A; FG7H5<8 =B

    • ,204 • Pod • 4$( • )' .&2NKMSlack  .3 1&9C Grafana Prometheus =B.&2!"/-' EG: ,14I@  % A;ED 3 1 0 , 22 1 0 . . 8.
  24. Demo Grafana  Prometheus     4 1

    0 , 22 1 0 . . 8. Grafana Azure Container Service ( Kubernetes ) Prometheus k8s API Server App Exporter cAdvisor Kube State Metrics Node Exporter   
  25.  Azure Container ServiceAKS<.+$) Kubernetes =@ A9 Web -1!#03:4 #%&/=@

     Azure Container ServiceAKS;>  "3&*!%(2#03', ( Kubernetes  6B OSS 75C?8    51 0 , 22 1 0 . .58. %& # $  "!  '