3 · azure container service aks azure portal gui service principal azure cli 2.0 azure portal...

61
. /3 #A!78 -/01 / 2/ "%&'

Upload: others

Post on 21-Apr-2020

32 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

./3

A 78- / 0 1 / 2/

Page 2: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/1506 32 76 . 9 8�����

Page 3: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

.04/ 21 6 3 8 7�����

Page 4: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

.04/ 21 6 3 8 7�����

Page 5: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

13728. /54 9860 %�����

%

%

Page 6: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

423

Page 7: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/ 1 . 7� ���������

3 7 3

Page 8: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

8 A9 5 7 I L D� ���������

T K MH SF L

. 32A 871 9 7 07 8

A. 3 5

A 7 A7 5

2 /

Page 9: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

�� ���������������

Page 10: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

B 5 5A AB 5 5 A C A A B 5

5 / 5 L b5 2 5 C2 2 A L kmOf

(5A B 5 5A C2 2 A(5A 5 2 5

C5 A5kmLc O / P b hlIN b/ P bM 5 ) enig

TS c G c G- 5 2A c Gc a V a c

Page 11: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/

( 3NM P ( A L C ( ()( /

Page 12: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/ / 3) 62 261/ 66/ 2 2 32 / (263 / 6 /

A CA CA CA CA C

Page 13: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/

A T ) ( CW ) MAVNLM a b

Page 14: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

( 4 4( 4 ) 4 A ( 4) !

* ( 0 0 AT a ( 4bL/ . /4 dL

W e iMgkC nCc Clo

a

V N

Page 15: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

( 4 4( 4 ) 4 A ( 4) !

* ( 0 0 AT a ( 4bL/ . /4 dL

W e iMgkC nCc Clo

a

V N

Page 16: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/

B AC

Page 17: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

���������

Page 18: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/ /A KD L A L

:

Page 19: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/ /

D S :K ba L:

. / A /

Page 20: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/ /S A : DL K A

A

Page 21: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

��������������

Page 22: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/ S PdgR

( / c B a dg W b) TL Bi e TL A

Page 23: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

:/" : /:

" : /: "" 3 - " - / " . - : -

: /:

" : /: "" :-/" 3 / - - 3 /: 3 / -

A :/ :/ /B H

" A : /B H

Page 24: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

������������

Page 25: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

o Y f eBAI / ea YP

B h B CgY S

/ L ea yi er z su

t lxe c b lx

g n lxM a lx

Page 26: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

. A "3 ?3 7 A

3 ?3 7 A ? ?2 B ?A28 244? = B ?A28 244? B2B= B2B ? A =? 2 9 = 4? 2: A"7: 3: -B 2 B9? 0 1 ?42 2 9

3 ?3 7 A

3 ?3 7 A ?2 B ?A28 244? = B ?A28 244? B2B= B2B ? A =? 2 9 = 4? 2: A ?42 2 9 ?

A 4 AB: AB2 3 :4 "= 3 =

/ ?3 Ta Z

/ ?4 / ?3 dcb Z

Page 27: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

����������

Page 28: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/

A b aT dgrb Zd l i

l zb S c u

b aT d

y tb aRpS d A e

o L A b aTd

Page 29: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

/ / / - -

Page 30: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

- - / - -- - /

Page 31: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

-

Page 32: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

- - - - /-- - -

S MRS V W M S L

e AB b- AP C d

- A

Page 33: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

����������

Page 34: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

W - C GH M/ A

AA

/A

/A

Page 35: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

��������

Page 37: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Azure Container Service�AKS����

� � .1 0

Page 38: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

����

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

:

2 8 0. 11 0. ,

Page 39: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

��Azure Container Service ( AKS ) .)��������

ASP.NET Core ��%���$'���&�� Azure Container Service ( AKS ) � OSS �*�(���+������ ���"��Helm Chats����!��#�Istio!�%��,-�Prometheus + Grafana

��

3 1 0 , 22 1 0 . . 8.

Page 40: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Overview) () ( ���

Page 41: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

��������Consistent&4*-���� .1�����LI7=�H������FD�#4.3�%0",����6 &�,�85���

LightweightVirtual Machine �@��B:�C�;9A� RAM �:���

SharingDocker Hub � Azure Container Registry ��� Docker Registry �MK�><��

Simple yet powerfullDockerFile�'4.2�*$)+G?��!/�(�JE����

51 0 , 22 1 0 . .58.

Page 42: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Azure ���������Azure Virtual MachineAzure Service FabricAzure Web Apps for ContainersAzure Container Service�ACS�Azure Container Service�AKS��Azure Container Instances �

1 0 , 22 1 0 6 .6. 8.

� 2018�2�28����Preview ��

Page 43: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Azure �������� ≠ AKS

Azure Web Apps for ContainersAzure �(6,.�"I� �>D�FL�� )�/+:N��! Azure Web Apps �(6,.�PKubernetes ���8K9���A=��!��E��Web #03'�*26�C<� !

7?� AKS �J@���"H���(6,.�%�'+-4�*26�Kubernetes��J@����OB�(6,.�#03'�*26";M�����1$&5)�/+�G ����

1 07 , 22 1 07 . . 8.

Page 44: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Kubernetes ( k8s )+?04�#aK�5�3�YQ����"#���7;/26'�9���b������!

+?04��%:�,�OK#NC�!������5�3�YQ�"!�IZ�!SH���Vd�U���AF�-*�=$&2��!-*�=$&2��+?04�BT�E[ c]���!G\@�+?04�`R�!��AF�D��+?04��WF��NC��OK#X�_M�� "!+?04��^D��AF�>�<?)$/71�2�"!

Azure LJ�(;&38?.�� P!Amazon Elastic Container Service for Kubernetes�EKS�Google Kubernetes Engine�GKE�

2 8 0. 11 0. ,

Page 45: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Azure Container Service�AKS�&!�� Kubernetes �59�����$�

Master "� �:;������42�/87-�.6��Agent "� ��Agent "� ����)�����*�30Kubernetes Cluster �#��'*��%�30�+,(��'*�1���

9 1 0 , 22 1 0 . . 8.

Page 46: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Azure Container Service�ACS������-#&����"$,� +-�3A�����("

DC / OSKubernetesDocker Swarm

*'�!%��("������������7��#-),�$61;?�B>���;?0�<4� IaaS �:�������85�"$�/�AKS �=.����20�9@ ����("

2 8 0. 11 0. ,

Page 47: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Quick Start ��� ����������

Page 48: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Azure Container Service�AKS������Azure Portal

GUI �����Service Principal ���

Azure CLI 2.0Azure 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

Page 49: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

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”

Page 50: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

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

Page 51: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

DemoAKS � ASP.NET Core �� ����������

51 0 , 22 1 0 . .58.

Agent NodeAgent Node

Pod

Service Container

Master Node

Azure Container Service ( Kubernetes )

Docker Hub

Request docker pull

Page 52: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

AKS � OSS ������� ���������� + �������������� +

Page 53: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Helm ChartsKubernetes ������������Charts

Kubernetes � YAML �� ������YAML �'&!�$% �� (���

Helm �"��������)#�����Client ( helm )Server ( tiller )

Kubeapps Hub����� Charts Repositoryhttps://hub.kubeapps.com/

1 07 , 22 1 07 . . 8.

Page 54: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Demo

Helm Charts � ���WordPress �������

2 8 0. 11 0. ,

Page 55: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

�������� ( Istio )

Google�IBM�Lyft�3/���&+�����$!���Kubernetes , &*����#�0�28�<-1�?9�=6��

Blue / Green &*�'+!�"(�((������!%)���.B!)��+�

Kubernetes @4C>��������Istio�;��:A 57��

9 1 0 , 22 1 0 . . 8.

Page 56: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

��������( Istio )

Istio��������

2 8 0. 11 0. ,

Envoy�� �� �� ��Istio Proxy ���� � ������������ ������������

Page 57: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Demo

��������

2 8 0. 11 0. ,

50 %

50 %

Reviews ��������� ������������

Page 58: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Demo

��������

2 8 0. 11 0. ,

Page 59: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

AKS ��������Prometheus

Kubernetes �L?>�6� Pull J�FG#�3��+�%���*2��A;��FG7H�5<8 =B• �,2���04• Pod• �4$(�• )�'.&2���NK�M����Slack �.�3�1�&9C

GrafanaPrometheus �=B��.&2���!"�/-�'EG:,1��4�I@���������%� ����A;ED

3 1 0 , 22 1 0 . . 8.

Page 60: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

Demo

Grafana��� ������Prometheus��������������

4 1 0 , 22 1 0 . . 8.

Grafana

Azure Container Service ( Kubernetes )

Prometheus

k8s API ServerApp Exporter

cAdvisor

Kube State Metrics

Node Exporter

�������

������

Page 61: 3 · Azure Container Service AKS Azure Portal GUI Service Principal Azure CLI 2.0 Azure Portal Cloud Shell Service Principal

���Azure Container Service�AKS��<���.+�$)�Kubernetes �=@���A9�Web �-1!�#03�:�4���#%&/�=@����� Azure Container Service�AKS��;>��"3&*���!%(2�#03�',� (����Kubernetes �� ��6�B� OSS �75�C?�8������

51 0 , 22 1 0 . .58.

�%��&����� ��#� ���$��������"����!������'