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

Kubectl Apply 2019: 闇の魔術に対する防衛術 / Kubectl Apply...

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

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

Kohei Ota

June 18, 2019
Tweet

More Decks by Kohei Ota

Other Decks in Technology

Transcript

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

    ࠜຊతͳ໰୊͕ղܾ͢ΔΘ͚Ͱ͸ͳ͍ w ϩʔϧόοΫͳͲ͸૬มΘΒͣҰఆͷͭΒΈ͕͋Δ w ,VCFSOFUFTͷΤίγεςϜͰΧόʔ͍͔ͯ͘͠͠ͳ͍
  3. ͜ͷͭͷมߋ͕΋ͨΒ͢ޫ w ͦͷ࣌ʑʹ͓͚ΔZBNMͷग़ྗ݁Ռ͕อূ͞ΕΔ ,VTUPNJ[F (JU  w ࣮ࡍʹ࣮ߦ͞Εͨͱ͖ͷ൓өঢ়گ͕Θ͔Δ EJ⒎ 

    w طଘͷߏ੒ʹରͯ͠େ͖͘Ճ͑Δมߋ͕ͳ͍ w ࣮֬ʹطଘͷߏ੒ΑΓ͸ϦεΫΛݮΒͭͭࣗ͠ಈԽΛ࣮ݱͰ͖Δ
  4. ݁Ռߟ͑ͨߏ੒ w ߏ੒ w $*0QT ,VTUPNJ[F EJ⒎Ͱ͕Μ͹Δ w બఆཧ༝ w

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