摘要:環(huán)境準(zhǔn)備虛擬機(jī)主機(jī)名角色虛擬機(jī)需要和外網(wǎng)通信,需要配置配置主機(jī)名配置網(wǎng)絡(luò)代理有條件可選用戶(hù)名密碼代理端口用戶(hù)名密碼代理端口可選,如果訪問(wèn)外網(wǎng)需要代理請(qǐng)正確填寫(xiě)用戶(hù)名密碼代理和端口,追加以上內(nèi)容到,執(zhí)行命令使其生效配置代理有條件可選追加上一步
環(huán)境準(zhǔn)備 虛擬機(jī)
主機(jī)名 | IP | OS | 角色 |
---|---|---|---|
host01 | 192.168.31.63 | CentOS 7 | Master & Node |
虛擬機(jī)需要和外網(wǎng)通信,需要配置EIP配置主機(jī)名
[root@host01 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.31.63 host01配置網(wǎng)絡(luò)代理(有條件可選)
export http_proxy="http://用戶(hù)名:密碼@代理IP:端口" export https_proxy="https://用戶(hù)名:密碼@代理IP:端口" export NO_PROXY="127.0.0.1,localhost"
可選,如果訪問(wèn)外網(wǎng)需要代理請(qǐng)正確填寫(xiě)用戶(hù)名、密碼、代理IP和端口,追加以上內(nèi)容到/root/.bashrc,執(zhí)行命令使其生效
[root@host01 ~]# source /root/.bashrc配置Yum代理(有條件可選)
追加上一步代理配置內(nèi)容到/etc/yum.conf
關(guān)閉防火墻[root@host01 ~]# systemctl stop firewalld [root@host01 ~]# systemctl disable firewalld禁用SELINUX
[root@host01 ~]# cat /etc/selinux/config | grep SELINUX= # SELINUX=disabled SELINUX=disabled [root@host01 ~]# setenforce 0
確保SELINUX=disabled配置系統(tǒng)項(xiàng)
[root@host01 ~]# cat /etc/sysctl.d/k8s.conf net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 net.ipv4.ip_forward = 1 vm.swappiness=0 [root@host01 ~]# sysctl -p /etc/sysctl.d/k8s.conf net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 net.ipv4.ip_forward = 1 vm.swappiness = 0
新建/etc/sysctl.d/k8s.conf并追加相應(yīng)內(nèi)容關(guān)閉SWAP
[root@host01 ~]# swapoff -a
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請(qǐng)注明本文地址:http://m.hztianpu.com/yun/32697.html
安裝Docker 安裝 [root@host01 ~]# yum makecache [root@host01 ~]# yum install docker [root@host01 ~]# yum install golang 啟動(dòng) [root@host01 ~]# systemctl enable docker [root@host01 ~]# systemctl start docker [...
安裝Docker 安裝 [root@host01 ~]# yum makecache [root@host01 ~]# yum install docker [root@host01 ~]# yum install golang 啟動(dòng) [root@host01 ~]# systemctl enable docker [root@host01 ~]# systemctl start docker [...
摘要:時(shí)間年月日星期日說(shuō)明本文部分內(nèi)容均來(lái)自慕課網(wǎng)。整體目錄結(jié)構(gòu)如下項(xiàng)目文件用于數(shù)據(jù)持久化配置項(xiàng)目配置配置視圖解析器配置靜態(tài)資源映射配置配置配置自定義指令配置解析器配置,類(lèi)似于項(xiàng)目啟動(dòng)類(lèi)新建,注冊(cè)配置類(lèi),并將其和當(dāng)前關(guān)聯(lián)。 時(shí)間:2017年3月19日星期日說(shuō)明:本文部分內(nèi)容均來(lái)自慕課網(wǎng)。@慕課網(wǎng):http://www.imooc.com教學(xué)示例源碼:無(wú)個(gè)人學(xué)習(xí)源碼:https://githu...
摘要:即將發(fā)布經(jīng)過(guò)漫長(zhǎng)的等待,即將發(fā)布。是一款很不錯(cuò)的組件庫(kù),雖然在的下載量仍遠(yuǎn)高于,但不可否認(rèn)的是在生態(tài)和社區(qū)活躍度上,更勝一籌。 .markdown-body{word-break:break-word;line-height:1.75;font-weight:400;font-size:15px;overflow-x:hidden;color:#333}.markdown-body h1,...
閱讀 3053·2021-10-20 13:46
閱讀 2575·2021-08-12 13:22
閱讀 2754·2019-08-30 15:54
閱讀 2388·2019-08-30 15:53
閱讀 607·2019-08-30 13:47
閱讀 3634·2019-08-23 16:56
閱讀 1782·2019-08-23 13:02
閱讀 1848·2019-08-23 12:25