Rancher 2.0 HA with Terraform
by
Kazumichi Yamamoto
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
3BODIFS.FFUVQ5PLZP !ZBNBNPUP@GFCD 3BODIFS ͷ)"ߏ XJUI5FSSBGPN &
Slide 2
Slide 2 text
,B[VNJDIJ :BNBNPUP !ZBNBNPUP@GFCD 8IP
Slide 3
Slide 3 text
3BODIFSͷΠϯετʔϧ $ docker run -d -p 80:80 –p 443:443 rancher/rancher EPDLFSSVO͚ͩͰ0,
Slide 4
Slide 4 text
ຊ൪ӡ༻ͷ߹ʁ ྲྀੴʹͩͱෆ҆ʜ
Slide 5
Slide 5 text
)"ߏ )JHI"WBJMBCJMJUZ
Slide 6
Slide 6 text
)"ߏͷྫ IUUQTSBODIFSDPNEPDTSBODIFSWYFOJOTUBMMBUJPOIBTFSWFSJOTUBMM ,VCFSOFUFT্ʹ 3BODIFSΛσϓϩΠ ϩʔυόϥϯα *OHSFTTͰ44-ऴ
Slide 7
Slide 7 text
,VCFSOFUFTΫϥελΛ Ͳ͏ͬͯ༻ҙ͢Δʁ
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
0WFSWJFX 44) 1SPWJTJPOJOH
Slide 10
Slide 10 text
3,&ͷৄࡉҎԼΛࢀর IUUQTTQFBLFSEFDLDPNZBNBNPUPGFCDCVJMEJOHIBLVCFSOFUFTDMVTUFSTXJUISLF
Slide 11
Slide 11 text
)"ߏͰͷΠϯετʔϧ ϊʔυͷ४උ %/4ͷઃఆ -#ͷઃఆ 3,&ͰLTߏங 3BODIFSͷσϓϩΠ 3,&ͷΠϯετʔϧ ఆٛϑΝΠϧͷ࡞ DMVTUFSZNM lSLF VQz࣮ߦ
Slide 12
Slide 12 text
)"ߏͰͷΠϯετʔϧ ϊʔυͷ४උ %/4ͷઃఆ -#ͷઃఆ 3,&ͰLTߏங 3BODIFSͷσϓϩΠ 3,&ͷΠϯετʔϧ ఆٛϑΝΠϧͷ࡞ DMVTUFSZNM lSLF VQz࣮ߦ
Slide 13
Slide 13 text
5FSSBGPSNͰϊʔυͷ४උ ˙%JHJUBM0DFBOͷ߹
Slide 14
Slide 14 text
5FSSBGPSNͰϊʔυͷ४උ ˙͘͞ΒͷΫϥυͷ߹
Slide 15
Slide 15 text
)"ߏͰͷΠϯετʔϧ ϊʔυͷ४උ %/4ͷઃఆ -#ͷઃఆ 3,&ͰLTߏங 3BODIFSͷσϓϩΠ 3,&ͷΠϯετʔϧ ఆٛϑΝΠϧͷ࡞ DMVTUFSZNM lSLF VQz࣮ߦ ࡁ ࡁ ࡁ
Slide 16
Slide 16 text
)"ߏͰͷΠϯετʔϧ ϊʔυͷ४උ %/4ͷઃఆ -#ͷઃఆ 3,&ͰLTߏங 3BODIFSͷσϓϩΠ 3,&ͷΠϯετʔϧ ఆٛϑΝΠϧͷ࡞ DMVTUFSZNM lSLF VQz࣮ߦ ࡁ ࡁ ࡁ
Slide 17
Slide 17 text
n %PXOMPBE3,&CJOBSZ *OTUBMM3,& $ curl -L -o rke $RKE_URL n 3VODINPE $ chmod +x rke 3,&@63-IUUQTHJUIVCDPNSBODIFSSLFSFMFBTFTEPXOMPBEWSLF@EBSXJOBNE
Slide 18
Slide 18 text
DMVTUFSZNMͷ࡞ node: - address: <ϊʔυͷ*1ΞυϨε> role: [etcd, controlplane, worker] user: rancher ssh_key_path: <44)༻ͷൿີ伴> 5FSSBGPSNͷ࣮ߦ݁ՌͳͲ͔Β ϊʔυͷใΛίϐϖ
Slide 19
Slide 19 text
3VOlSLF VQz $ ./rke up --config cluster.yml
Slide 20
Slide 20 text
DMVTUFSZNMͷ࡞ node: - address: <ϊʔυͷ*1ΞυϨε> role: [etcd, controlplane, worker] user: rancher ssh_key_path: <44)༻ͷൿີ伴> ϊʔυ࡞ͷ*1ΞυϨε͕ มΘͬͨΓ͢Δͱ໘ʜ
Slide 21
Slide 21 text
5FSSBGPSNQSPWJEFSGPS3,& IUUQTXXXUFSSBGPSNJPEPDTQSPWJEFSTUZQFDPNNVOJUZJOEFYIUNM
Slide 22
Slide 22 text
5FSSBGPSNQSPWJEFSGPS3,& 5FSSBGPSN3,&Λ౷߹
Slide 23
Slide 23 text
5FSSBGPSNQSPWJEFSGPS3,& $POGJHϑΝΠϧग़ྗ GPS LVCFDUM LVCFSOFUFTϓϩμΠόʔͱ ࿈ܞͤ͞Δ͜ͱՄೳ IUUQTHJUIVCDPNZBNBNPUPGFCDUFSSBGPSNQSPWJEFSSLF
Slide 24
Slide 24 text
)"ߏͰͷΠϯετʔϧ ϊʔυͷ४උ %/4ͷઃఆ -#ͷઃఆ 3,&ͰLTߏங 3BODIFSͷσϓϩΠ ࡁ ࡁ ࡁ ࡁ
Slide 25
Slide 25 text
)"ߏͰͷΠϯετʔϧ ϊʔυͷ४උ %/4ͷઃఆ -#ͷઃఆ 3,&ͰLTߏங 3BODIFSͷσϓϩΠ ࡁ ࡁ ࡁ ࡁ
Slide 26
Slide 26 text
3BODIFSαʔόͷσϓϩΠ ͓͖ͳํ๏ΛͲ͏ͧʂ LVCFDUM 3,&ͷΞυΦϯ 5FSSBGPSNͷ LTϓϩόΠμ
Slide 27
Slide 27 text
࣮ࡍͬͯΔํ๏ DFSUNBOBHFSͱ3BODIFSΛซ༻ ˙*TTVFS ˙*OHSFTT 3BODIFSαʔό༻ͷূ໌ॻͷऔಘߋ৽ DFSUNBOBHFSʹ͓ͤ͢Δ
Slide 28
Slide 28 text
·ͱΊ LT্ʹσϓϩΠ͢Ε0, खܰʹLTΫϥελΛ࡞ΕΔ 5FSSBGPSN 3BODIFSͷ)" 3,& ϊʔυ%/4-#ͷ࡞ɺ 3,&ͰͷΫϥελߏஙΛ ·ͱΊͯѻ͑Δ
Slide 29
Slide 29 text
&OKPZ