$30 off During Our Annual Pro Sale. View Details »

AKSでマイクロサービス Bootcamp

AKSでマイクロサービス Bootcamp

マイクロサービスとAKSを速習します
入門編です

shin5ok

May 07, 2018
Tweet

More Decks by shin5ok

Other Decks in Technology

Transcript

  1. • ) ( C D • B - D B

    B D • A • D • A D - D - • / - • B • D A • B ) • A B • B
  2. 1 1

  3.   1 u…ekT[e /7Aƒ‚(#?Ixu…  o9!A%5(Cn 2 ZmwOhf Immutableri(.0@(

    $B.2%)`|a  3 APIYlSFe 4'<3B"~cri wGq}XpE  4 RH|J~c 1:B RHDDDr‚ /,(0jQ( 9@8?|J 5 (#?e tNytNri]|  6 DevOps CI/CDpE B6=$1M„  .(04@-'ri 7 L^ €dD‚ _s{P@'>B( 8 * ;>. vbri zgƒ‚7>4>/&<B>+(WK $B.2s\UVri
  4. # ubuntu $,! '0 + > docker run –it ubuntu

    # exit #/ # Azure cli2.0 $,"* mycli .% ) # '0 + > docker run --name mycli -it azuresdk/azure-cli-python:2.0.20 # exit #/ # apache 2.4.29!  ) #  80- 80- (& > docker pull httpd:2.4.29 > docker inspect httpd:2.4.29 > docker run -d -p 80:80 httpd:2.4.29
  5. # 'ubuntu'-$.   " > docker search ubuntu #

    ubuntu 14:10  '+&  > docker pull ubuntu:14.10 # !*(  ,% > docker ps #  )# > docker stop [ID] #     > docker images
  6. 1 6 KEIA " -2 8-2 0 NDF R I

    E M N O" KF K@ OA KF @@ KTOD I& KT KEK CEO KAIM IC @> M F@EM K @ O @> CEO IA DOOKN NDF R I >EO> FAO" MC NDF R I @ FAM KKN K A"CEO :6 3/2 @ FAM KKN K A KEK EINO M MA EMA AION"O O . / " AIOMT"ND D NO @ FAM > E @ O T KKN K A " D NO @ FAM O C T KKN K A NDF R I T KKN K A " D NO @ FAM K ND NDF R I T KKN K A " I ODAMD NO @ FAM M I K @ I A T K DA NDF R I T KKN K A "
  7. version: '2' services: appsample: #  " appsample image: shkawan/appsample:v3.10

    #   environment: # ! - MONGODB_PORT=27017 - MONGODB_HOST=mongodb ports: - 80:80 #   bind mongodb: #  " mongodb image: mongo:3.6.0 # DockerHub  volumes: #    - /tmp/mongodb:/data/db -
  8. 13 13 13 13 13 13 13 13 13 13

    0 24 0 24 0 24 13
  9. # ANC . -. . . . . . .

    . . . . . . . .- RK > . . .-> C M . . S . -. . . . . .  . -. . . . .
  10. NL 1M I U TR M I A> GKP S

    ONK C >> $ 1 - #C = =C C >> $ 1 1 # 1 - C >> $ 1 -# C EC \_ C >> $ > C >> $ EA 1 - > 1 - A> G C >> $ =C 1 - 1 1 > 1 - C >> $$ CC = GC
  11. >G P SMO RKU E< ( >E AE $ _M

    E< ( >E $ A E $ )- $A )- /). E< ( >G E A N E< ( < E G ">G C A E<# (( E< E< ( E G E<
  12. kSYS S bm B EE DM= >LE A L I

    GA G ce EI G gl YR PGA G STni d B EE DM= >LE MG PGA G A GA G EI G PGA G UkSYS bm B EE DM= >LE A L I 5- 0 70-/ 8 - :8 708 -7 8 -10 PGA G # # # I=NG 7MGG GA # B 6 h YcaR 6 bm B EE DM= >LE I IE P PGA G I L # LPI 3 . E G> B EE DM= >LE A L N >
  13. https://Kubernetes.io/docs/tutorials/object-management-kubectl/object-management/       +,&  ("

      ) $ kubectl ' +,& %    *#  Git !& %        Git
  14. :0 / LP = 77 / 0>7 8 /.= 0.

    8. = . . /.= 0. ## 0: P I = 77 / 0>7 > : = - D - I = 77 / 0>7 B := 7: 8 > 8 /.= 0. : > # >. > : > ### > :. .7. 0 = 77 / 0>7 > = 0 =
  15. 0. . : . 8. -. > .5: > P

    0. . : /.: - 0. . : .: /. -. > .5: > > 0 = 5 ## P - 0. . : /.: - = : 0
  16. SSL Gateway  2 Web  4   2

      2 Cosmos DB Log Analytics
  17. Web  4   2   2 Cosmos

    DB Log Analytics Immutable Immutable Immutable Immutable
  18. SSL Gateway  2 Web  4   2

      2 Cosmos DB Log Analytics
  19.       <=7$ 9*3 %: 5

    kubectl 8 <=7/6 !  ! #$ ;4   Git 0'7/6 !  "  ! #$ )   Git  -2 &, (./-2 +1
  20. 1.44 - 3 -. 2/. 1.44 2 /20 8 >

    4 1.44 2 . . > 4 1.44 3 . 4 884> / # . 8 . > 4 1.44 3 . 4 884> / /20 8 > 4 1.44 3 . 4 884> / . . > 4 1.44 3 . 4 884> / -.84 > . > 4 1.44 3 . 4 884> / . 2 . > 4
  21. SSL Gateway  2 Web  4   2

      2 Cosmos DB Log Analytics
  22. > 2 12 2: . .: 32> 12 2: /

    .: 32> 12 2: ++ ++ 2 .1. . :. 2 . >. 2 :. 2> . 2 . > 2 2 .> 2 .> > . 24 :4- 1. 2 . ,@ 42 > 2 7@/2 . 3 12 2:
  23. SSL Gateway  2 Web 4   2 Cosmos

    DB Log Analytics   4
  24. I@ CC , CFN N C > I CFN N

    C : > I CFN N C -- -- I + C + N I C + 1 50/78 40 C + @ + N F >N F IC + I@ :I C + + I@ :I C + 3 CC3FC N+ 0>1F 3 I + N :I C I3FC N+ .C I / I I@ CC , : C CN > CFN N C
  25. Web  4   2    2

    Cosmos DB Log Analytics Ingress Contoller OMS
  26. M KP NU C U >> G - - .

    AC A CE E. >.C 8 > $ MU >> 5E> E ORSP >> 5 > - - . 5 E # C $ U
  27. P MR GEKN S OU P MR 8 A C

    -1 -1. A 8 > A C # $ # -1 -1.
  28. $ az container create -n MyACI -g MyACI --ip-address Public

    -l westus \ > --image shkawan/basicapi:v1