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

kubesprayで作って壊そうk8sクラスタ

 kubesprayで作って壊そうk8sクラスタ

2022/10/12 K8s@home #1のLT資料です。

Kentaro Sasaki

October 12, 2022
Tweet

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ ࠤʑ໦ ݈ଠ࿕ (Kentaro Sasaki) - ɹ@ponzmild • ॴଐ: ೔ຊΞΠɾϏʔɾΤϜגࣜձࣾ

    • ීஈͷ͓࢓ࣄ: OpenShiftͰΞϓϦ։ൃ & ϞμφΠθʔγϣϯࢧԉ • ॻ੶ࣥච: ʰApache KafkaΛ͸͡ΊΔʱ(ΠϯϓϨεR&Dࣾ) • ࣗ୐k8sྺ: ໿1೥ 2
  2. ௕͘ӡ༻͍ͯ͠Δͱ࡞Γ௚͕࣌͘͢Δ ෺ཧϚγϯ ϋΠύʔόΠβʔ ෺ཧϚγϯ ෺ཧϚγϯ 7. 7. 7. 7. 7.

    ,VCFSOFUFT 1PE 1PE 1PE Ϧιʔε૿ڧɺNWઃఆͷมߋɺ ిݯஅͰμ΢ϯ ఆظతͳόʔδϣϯΞοϓ Pod͔Βར༻͢Δύοέʔδಋೖɺ ಉډ͢ΔVMͷͨΊʹϦιʔεۭ͚Θͨ͠ K8sΫϥελͷόʔδϣϯΞοϓɺ ίϯϙʔωϯτͷ૊߹ͤ΍࣮૷มߋ 4
  3. kubesprayͷ࢓૊Έ ෺ཧϚγϯ ϋΠύʔόΠβʔ ෺ཧϚγϯ ෺ཧϚγϯ 7. 7. 7. 7. 7.

    ,VCFSOFUFT kubespray Ansible Ansible Playbook (YAML) K8sʹඞཁͳOSઃఆ Addons 1PE 1PE 1PE 9
  4. kubesprayͰخ͍͠ϙΠϯτ 👍 • K8sΫϥελͷίϯϙʔωϯτબఆɾઃఆ஋͸PlaybookΛݟΕ͹શͯΘ͔Δ • Git؅ཧ͢Ε͹ɺͳͥͦͷઃఆʹ͔ͨ͠ (=Why) ஌ݟ͕ίϛοτϩάʹ࢒Δ • Կճ࣮ߦͯ͠΋݁Ռ͕ಉ͡ʹͳΔ

    = “ႈ౳” • ҆৺ͯ͠k8sΫϥελΛ࡞Γ௚͠Մೳ (※ͨͩ͠VMΑΓ্ͷϨΠϠʔʹݶΔ) • PlaybookͷҰ෦͚ͩྲྀ͢͜ͱ΋Մೳ • طଘͷPlaybook͔ΒKubesprayͷPlaybookΛݺͼग़͢͜ͱ΋ՄೳͰ͢ 17
  5. (ࢀߟ) kubesprayͷAddons • Load Balancer … MetalLB • Ingress …

    NGINX Ingress Controller • Storage … CephFS, RBD, Rancher Local Path Provisioner • Observability … Metrics Server • GitOps … ArgoCD • Security … Cert Manager 20 ※ AddonsͷҰཡ͸v2.20.0࣌఺ LTΫϥελͱಉ͡ϥ ΠϑαΠΫϧͰಋೖ͢Δ 1BB4ίϯϙʔωϯτ