arm架構(gòu)啟動(dòng)flannel網(wǎng)絡(luò)時(shí)報(bào)錯(cuò)

之前一直用的x86架構(gòu)舶担,現(xiàn)在轉(zhuǎn)為arm架構(gòu)坡疼,在安裝啟動(dòng)flannel網(wǎng)絡(luò)時(shí),遇到一些小問題衣陶,在這里記錄一下柄瑰,具體的安裝過程,就不重復(fù)了剪况,網(wǎng)上有好多相關(guān)的教沾。
systemctl start flanneld
啟動(dòng)就報(bào)了一個(gè)錯(cuò)誤

[root@11 ~]# systemctl start flanneld
Job for flanneld.service failed because the control process exited with error code.
See "systemctl status flanneld.service" and "journalctl -xe" for details.
[root@11 ~]# journalctl -xe
Apr 08 22:53:49 docker01 flanneld-start[31136]: I0408 22:53:49.588177   31136 main.go:211] CLI flags config: {etcdEndpoints:http://192.168.0.224:2379 etcdPrefix:/coreos.com/network etcdKey>
Apr 08 22:53:49 docker01 flanneld-start[31136]: W0408 22:53:49.588296   31136 main.go:630] no subnet found for key: FLANNEL_IPV6_SUBNET in file: /run/flannel/subnet.env
Apr 08 22:53:49 docker01 flanneld-start[31136]: W0408 22:53:49.588334   31136 registry.go:84] no certificate provided: connecting to etcd with http. This is insecure
Apr 08 22:53:49 docker01 flanneld-start[31136]: I0408 22:53:49.588709   31136 main.go:231] Created subnet manager: Etcd Local Manager with Previous Subnet: 10.0.4.0/24
Apr 08 22:53:49 docker01 flanneld-start[31136]: I0408 22:53:49.588733   31136 main.go:234] Installing signal handlers
Apr 08 22:53:49 docker01 flanneld-start[31136]: I0408 22:53:49.591121   31136 main.go:542] Found network config - Backend type: udp
Apr 08 22:53:49 docker01 flanneld-start[31136]: I0408 22:53:49.591157   31136 match.go:206] Determining IP address of default interface
Apr 08 22:53:49 docker01 flanneld-start[31136]: I0408 22:53:49.591399   31136 match.go:259] Using interface with name eth0 and address 192.168.0.252
Apr 08 22:53:49 docker01 flanneld-start[31136]: I0408 22:53:49.591422   31136 match.go:281] Defaulting external address to interface address (192.168.0.252)
Apr 08 22:53:49 docker01 flanneld-start[31136]: E0408 22:53:49.591446   31136 main.go:326] Error fetching backend: UDP backend is not supported on this architecture
Apr 08 22:53:49 docker01 flanneld-start[31136]: I0408 22:53:49.591504   31136 main.go:522] Stopping shutdownHandler...
Apr 08 22:53:49 docker01 systemd[1]: flanneld.service: Main process exited, code=exited, status=1/FAILURE
Apr 08 22:53:49 docker01 systemd[1]: flanneld.service: Failed with result 'exit-code'.
Apr 08 22:53:49 docker01 systemd[1]: Failed to start Flanneld overlay address etcd agent.
-- Subject: Unit flanneld.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit flanneld.service has failed.
-- 
-- The result is RESULT.
Apr 08 22:53:49 docker01 systemd[1]: flanneld.service: Service RestartSec=100ms expired, scheduling restart.
Apr 08 22:53:49 docker01 systemd[1]: flanneld.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Automatic restarting of the unit flanneld.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Apr 08 22:53:49 docker01 systemd[1]: Stopped Flanneld overlay address etcd agent.
-- Subject: Unit flanneld.service has finished shutting down
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit flanneld.service has finished shutting down.
Apr 08 22:53:49 docker01 systemd[1]: flanneld.service: Start request repeated too quickly.
Apr 08 22:53:49 docker01 systemd[1]: flanneld.service: Failed with result 'exit-code'.
Apr 08 22:53:49 docker01 systemd[1]: Failed to start Flanneld overlay address etcd agent.
-- Subject: Unit flanneld.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit flanneld.service has failed.
-- 
-- The result is RESULT.

意思是說,UDP模式在這arm架構(gòu)不能跑拯欧。
flannel默認(rèn)的后端模式就是UDP详囤,既然默認(rèn)的不行,那我們就改改它的模式,flannel后端模式有三種:UDP藏姐、vxlan和host-gw隆箩,
修改它的后端模式,要在etcd集群里用etcdctl命令進(jìn)行修改

etcdctl put /coreos.com/network/config '{"Network":"10.0.0.0/16", "SubnetMin": "10.0.1.0", "SubnetMax": "10.0.20.0", "Backend": {"Type": "vxlan"}}'

一開始羔杨,我沒有設(shè)置backend捌臊,是這樣設(shè)的

etcdctl put /coreos.com/network/config '{"Network":"10.0.0.0/16", "SubnetMin": "10.0.1.0", "SubnetMax": "10.0.20.0"}'

好了,設(shè)置完后兜材,再次啟動(dòng)flannel就可以了理澎。
下面的這些鏈接,有對flannel的工作原理有詳細(xì)的講解曙寡,同學(xué)們自行研讀糠爬。

相關(guān)鏈接:
https://www.cnblogs.com/huiyichanmian/p/15767418.html
https://juejin.cn/post/6994825163757846565
https://code84.com/234492.html
https://www.linuxprobe.com/flannel.html
https://www.shuzhiduo.com/A/KE5QjVWkdL/
https://blog.csdn.net/LSY_CSDN_/article/details/120272835
https://github.com/flannel-io/flannel/issues/1221

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市举庶,隨后出現(xiàn)的幾起案子执隧,更是在濱河造成了極大的恐慌,老刑警劉巖户侥,帶你破解...
    沈念sama閱讀 206,311評論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件镀琉,死亡現(xiàn)場離奇詭異,居然都是意外死亡蕊唐,警方通過查閱死者的電腦和手機(jī)屋摔,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,339評論 2 382
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來替梨,“玉大人钓试,你說我怎么就攤上這事「逼伲” “怎么了亚侠?”我有些...
    開封第一講書人閱讀 152,671評論 0 342
  • 文/不壞的土叔 我叫張陵,是天一觀的道長俗扇。 經(jīng)常有香客問我,道長箕别,這世上最難降的妖魔是什么铜幽? 我笑而不...
    開封第一講書人閱讀 55,252評論 1 279
  • 正文 為了忘掉前任,我火速辦了婚禮串稀,結(jié)果婚禮上除抛,老公的妹妹穿的比我還像新娘。我一直安慰自己母截,他們只是感情好到忽,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,253評論 5 371
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般喘漏。 火紅的嫁衣襯著肌膚如雪护蝶。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,031評論 1 285
  • 那天翩迈,我揣著相機(jī)與錄音持灰,去河邊找鬼。 笑死负饲,一個(gè)胖子當(dāng)著我的面吹牛堤魁,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播返十,決...
    沈念sama閱讀 38,340評論 3 399
  • 文/蒼蘭香墨 我猛地睜開眼妥泉,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了洞坑?” 一聲冷哼從身側(cè)響起盲链,我...
    開封第一講書人閱讀 36,973評論 0 259
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎检诗,沒想到半個(gè)月后匈仗,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 43,466評論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡逢慌,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 35,937評論 2 323
  • 正文 我和宋清朗相戀三年悠轩,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片攻泼。...
    茶點(diǎn)故事閱讀 38,039評論 1 333
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡火架,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出忙菠,到底是詐尸還是另有隱情何鸡,我是刑警寧澤,帶...
    沈念sama閱讀 33,701評論 4 323
  • 正文 年R本政府宣布牛欢,位于F島的核電站骡男,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏傍睹。R本人自食惡果不足惜隔盛,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,254評論 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望拾稳。 院中可真熱鬧吮炕,春花似錦、人聲如沸访得。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,259評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至鳄炉,卻和暖如春杜耙,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背迎膜。 一陣腳步聲響...
    開封第一講書人閱讀 31,485評論 1 262
  • 我被黑心中介騙來泰國打工泥技, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人磕仅。 一個(gè)月前我還...
    沈念sama閱讀 45,497評論 2 354
  • 正文 我出身青樓珊豹,卻偏偏與公主長得像,于是被迫代替她去往敵國和親榕订。 傳聞我的和親對象是個(gè)殘疾皇子店茶,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,786評論 2 345