Save 37% off PRO during our Black Friday Sale! »

[re:Growth 2019] Fargate for EKS

D63b0683b8fdd02c71c802691f97c04c?s=47 jogannaoki
December 12, 2019

[re:Growth 2019] Fargate for EKS

D63b0683b8fdd02c71c802691f97c04c?s=128

jogannaoki

December 12, 2019
Tweet

Transcript

  1. None
  2. Fargate for EKS AWSࣄۀຊ෦ ίϯαϧςΟϯά෦ ৓؛ ௚ر

  3. 3 Please Share on social media #cmregrowth

  4. εϥΠυ͸ޙͰೖख͢Δ͜ͱ͕ग़དྷ·͢ͷͰ ൃදதͷ಺༰ΛϝϞ͢Δඞཁ͸͋Γ·ͤΜɻ ࣸਅࡱӨΛ͢Δ৔߹͸ ϑϥογϡɾγϟολʔԻ͕ग़ͳ͍Α͏ʹ͝഑ྀ͍ͩ͘͞

  5. ৓؛ ௚ر(Jogan Naoki) Ϋϥεϝιουגࣜձࣾ AWSࣄۀຊ෦ ίϯαϧςΟϯά෦ →CXࣄۀ෦ʢ2020/01 ༧ఆʣ ޷͖ͳAWSαʔϏεɿLambda 5

    ࣗݾ঺հ
  6. 6

  7. ໨࣍ ʙ ຊ೔ͷ಺༰ Kuberntes ͷ͓͞Β͍ ͜Ε·ͰͷEKS Fargate for EKS͋ ͭ·ΓͲ͏ͳͬͨͷ͔

    Fargate for EKSͷ੍໿
  8. 8 Kuberntes ͷ͓͞Β͍

  9. ͦ΋ͦ΋kubernetesͬͯԿ • ίϯςφԽ͞ΕͨΞϓϦέʔγϣϯΛಈ͔ͨ͢Ίͷ ϓϥοτϑΥʔϜ • σϓϩΠɺεέʔϦϯάͳͲΛࣗಈԽ • ίϯςφΦʔέετϨʔγϣϯπʔϧͷσϑΝΫτ

  10. 10 KubernetesͷΠϯϑϥߏ੒ Worker Master Kubernetes Cluster

  11. 11 KubernetesͷΠϯϑϥߏ੒ Worker Master Kubernetes Cluster ɾk8sΫϥελΛ؅ཧ͢ΔͨΊͷ ίϯϙʔωϯτ܈ ɾk8s؅ཧ༻ͷΤϯυϙΠϯτͳͲ

  12. 12 KubernetesͷΠϯϑϥߏ੒ Worker Master Kubernetes Cluster ɾίϯςφͷ࣮ߦ؀ڥ

  13. 13 Kubernetesͷجຊૢ࡞ $ kubectl apply -f pod.yaml Nginxίϯςφ࡞੒͍ͨ͠ͳʔ LTͷΦϒδΣΫτΛఆٛͨ͠ϚχϡϑΣετϑΝΠϧΛ࡞੒ $-*πʔϧʢLVCFDUMʣͳͲΛར༻͠Ϋϥελʹର͠σϓϩΠࢦࣔ

    Master
  14. 14 Kubernetesͷجຊૢ࡞ Worker Master Kubernetes Cluster Nginx Pod Nginx Pod

    WorkerϊʔυͰ ίϯςφ͕ىಈ
  15. 15 ͜Ε·ͰͷEKS

  16. 16 KubernetesͷΠϯϑϥߏ੒ Worker Master Kubernetes Cluster

  17. 17 KubernetesͷΠϯϑϥߏ੒ Worker Kubernetes Cluster Amazon EKS

  18. 18 KubernetesͷΠϯϑϥߏ੒ Worker Kubernetes Cluster Amazon EKS Workerϊʔυ΋ Ұ෦؅ཧ

  19. $ kubectl get nodes NAME STATUS ROLES AGE VERSION ip-XXX.internal

    Ready <none> 2m v1.14.8-eks $ kubectl get pod NAME READY STATUS RESTARTS AGE deployment-5bb5496c6d-2cxwm 1/1 Running 0 26m deployment-5bb5496c6d-5dsf8 1/1 Running 0 26m 19 ͜Ε·ͰͷEKS Amazon EKS Auto Scaling group Managed Node Groups Nginx Pod Nginx Pod
  20. $ kubectl get nodes NAME STATUS ROLES AGE VERSION ip-XXX.internal

    Ready <none> 2m v1.14.8-eks $ kubectl get pod NAME READY STATUS RESTARTS AGE deployment-5bb5496c6d-2cxwm 1/1 Running 0 26m deployment-5bb5496c6d-5dsf8 1/1 Running 0 26m 20 ͜Ε·ͰͷEKS Amazon EKS Auto Scaling group Managed Node Groups Nginx Pod Nginx Pod طଘPodͷෛՙ͕ ߴ·Δ
  21. 21 ͜Ε·ͰͷEKS $ kubectl get nodes NAME STATUS ROLES AGE

    VERSION ip-XXX.internal Ready <none> 2m v1.14.8-eks
 ip-XXX.internal Ready <none> 2m v1.14.8-eks $ kubectl get pod NAME READY STATUS RESTARTS AGE deployment-5bb5496c6d-2cxwm 1/1 Running 0 26m deployment-5bb5496c6d-5dsf8 1/1 Running 0 26m deployment-5bb5496c6d-7nbiu 1/1 Running 0 26m Amazon EKS Auto Scaling group Managed Node Groups Nginx Pod Nginx Pod Nginx Pod EC2εέʔϧޙʹPod͕ىಈ ʢίϯϐϡʔτϦιʔε͕଍Γͳ͍৔߹ʣ
  22. 22 Fargate for EKS

  23. 23 Fargate for EKS Amazon EKS Nginx Pod Nginx Pod

    Fargate Fargate $ kubectl get nodes NAME STATUS ROLES AGE VERSION fargate-ip-XXX.internal Ready <none> 25m v1.14.8-eks fargate-ip-XXX.internal Ready <none> 26m v1.14.8-eks
 $ kubectl get pod NAME READY STATUS RESTARTS AGE deployment-5bb5496c6d-2cxwm 1/1 Running 0 26m deployment-5bb5496c6d-5dsf8 1/1 Running 0 26m
  24. 24 Fargate for EKS Amazon EKS Nginx Pod Nginx Pod

    Fargate Fargate $ kubectl get nodes NAME STATUS ROLES AGE VERSION fargate-ip-XXX.internal Ready <none> 25m v1.14.8-eks fargate-ip-XXX.internal Ready <none> 26m v1.14.8-eks
 $ kubectl get pod NAME READY STATUS RESTARTS AGE deployment-5bb5496c6d-2cxwm 1/1 Running 0 26m deployment-5bb5496c6d-5dsf8 1/1 Running 0 26m طଘPodͷෛՙ͕ ߴ·Δ
  25. 25 Fargate for EKS Amazon EKS $ kubectl get nodes

    NAME STATUS ROLES AGE VERSION fargate-ip-XXX.internal Ready <none> 25m v1.14.8-eks fargate-ip-XXX.internal Ready <none> 26m v1.14.8-eks
 fargate-ip-XXX.internal Ready <none> 26m v1.14.8-eks
 $ kubectl get pod NAME READY STATUS RESTARTS AGE deployment-5bb5496c6d-2cxwm 1/1 Running 0 26m deployment-5bb5496c6d-5dsf8 1/1 Running 0 26m deployment-5bb5496c6d-7nbiu 1/1 Running 0 26m Fargate Fargate Fargate Nginx Pod Nginx Pod Nginx Pod FargateʢPodʣ͕ىಈ
  26. 26 ͭ·ΓͲ͏ͳͬͨͷ͔

  27. 27 ͭ·Γ Auto Scaling group ʢManaged Node Groupsʣ Fargate Podͷεέʔϧ

    EC2ͷϦιʔε͕଍Γͳ͍৔߹ EC2͕εέʔϧͨ͠ޙPod͕ىಈ FargateʢPodʣ͕ىಈ Host AWS͕ఏڙ͢ΔAMIΛར༻͠ىಈ ͳ͠ Host:Pod 1:many 1:1 Node(Group)ͷ؅ཧ ඞཁ ෆཁ
  28. ͭ·Γ Ϣʔβʔ͕؅ཧ͢ΔϨΠϠʔ͕ݮΓӡ༻ָ͕ʹͳͬͨʢ͸ͣʣ

  29. 29 Fargate for EKSͷ੍໿

  30. Fargate for EKSͷ੍໿(2019/12ݱࡏ) • ར༻Ͱ͖Δϩʔυόϥϯα͸ALBͷʢNLB : comming soonʣ • DeamonSet͸αϙʔτ͞Εͳ͍

    • GPU͕࢖༻Ͱ͖ͳ͍ • FargateͰ࣮ߦ͞Ε͍ͯΔϙουʹ͸
 ύϒϦοΫIPΞυϨεׂ͕Γ౰ͯΔ͜ͱ͕Ͱ͖ͳ͍
  31. 31 ͓·͚

  32. 32 AWSͰίϯςφΛಈ͔ͨ͢Ίͷج൫ Amazon ECS 2014 2017 Amazon ECS Fargate Amazon

    EKS 2019 Amazon EKS Fargate NEW!! EC2 (Auto Scaring group) EC2 (Auto Scaling group) Control Plane Data Plane
  33. &,4 'BSHBUFɺ&$4 'BSHBUF Ͳ͕͍͍ͬͪͷʁ

  34. Amazon ECS ໎͍ͬͯΔਓ͸ ͬͪ͜ͷํ͕͍͍͔΋ʁ

  35. 35