Kubectl Apply 2019: 闇の魔術に対する防衛術 / Kubectl Apply 2019: Defence Against the Dark Arts

Kubectl Apply 2019: 闇の魔術に対する防衛術 / Kubectl Apply 2019: Defence Against the Dark Arts

A talk at Kubernetes Meetup Tokyo #20 @ Google Japan Office

Ad22fcf5773b906c08330f4d57242212?s=128

Kohei Ota

June 18, 2019
Tweet

Transcript

  1. 8.
  2. 9.
  3. 10.
  4. 11.
  5. 12.
  6. 13.
  7. 14.
  8. 21.
  9. 26.
  10. 28.
  11. 29.
  12. 32.
  13. 44.
  14. 51.

    P kubernetes @MELANIECEBULA kubectl apply Production Deployment Canary Deployment Production

    ConfigMap Canary ConfigMap Production Service Canary Service kubernetes cluster Dev Deployment Dev ConfigMap Dev Service kubernetes config files lots of boilerplate repetitive by environment resources environments
  15. 53.
  16. 60.

    ,VCFDUMEJ⒎͕΋ͨΒ͢ޫ w ϝϦοτ w $*πʔϧ಺ͰEJ⒎ͱͬͯϩά͕࢒ͤΔΑ͏ʹͳͬͨ w ࠷୹Ͱߦ௥Ճ͢Δ͚ͩͳͷͰΒͪ͘Μ w σϝϦοτ w

    ࠜຊతͳ໰୊͕ղܾ͢ΔΘ͚Ͱ͸ͳ͍ w ϩʔϧόοΫͳͲ͸૬มΘΒͣҰఆͷͭΒΈ͕͋Δ w ,VCFSOFUFTͷΤίγεςϜͰΧόʔ͍͔ͯ͘͠͠ͳ͍
  17. 64.

    ͜ͷͭͷมߋ͕΋ͨΒ͢ޫ w ͦͷ࣌ʑʹ͓͚ΔZBNMͷग़ྗ݁Ռ͕อূ͞ΕΔ ,VTUPNJ[F (JU  w ࣮ࡍʹ࣮ߦ͞Εͨͱ͖ͷ൓өঢ়گ͕Θ͔Δ EJ⒎ 

    w طଘͷߏ੒ʹରͯ͠େ͖͘Ճ͑Δมߋ͕ͳ͍ w ࣮֬ʹطଘͷߏ੒ΑΓ͸ϦεΫΛݮΒͭͭࣗ͠ಈԽΛ࣮ݱͰ͖Δ
  18. 66.

    ݁Ռߟ͑ͨߏ੒ w ߏ੒ w $*0QT ,VTUPNJ[F EJ⒎Ͱ͕Μ͹Δ w બఆཧ༝ w

    ͦΜͳʹن໛͕େ͖͘ͳ͍ w (JU0QT͕Μ͹ΕΔ΄Ͳӡ༻νʔϜ͕੒ख़͍ͯ͠ͳ͍ w 4JNQMFJTCFTU