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

第11回 Tokyo JAZUG Night

TonyTonyKun
February 25, 2018

第11回 Tokyo JAZUG Night

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

TonyTonyKun

February 25, 2018
Tweet

More Decks by TonyTonyKun

Other Decks in Technology

Transcript

  1.  Azure Container Service ( AKS ) .)  ASP.NET

    Core %$'& Azure Container Service ( AKS )  OSS * (+  "Helm Chats !#Istio !%,-Prometheus + Grafana  3 1 0 , 22 1 0 . . 8.
  2.  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.
  3. 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 
  4. 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.
  5. 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. ,
  6. Azure Container ServiceAKS &! Kubernetes 59 $ Master " :;

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

    Swarm *'!%(" 7#-) ,$ 61;?B> ;?0<4 IaaS : 85"$/ AKS =.209@ (" 2 8 0. 11 0. ,
  8. 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
  9. 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”
  10. 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
  11. 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
  12. 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.
  13.  ( Istio ) GoogleIBMLyft3/ &+$! Kubernetes , &* #028<-1

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

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

    % 50 % Reviews     
  16. 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.
  17. 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   
  18.  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. %& # $  "!  '