1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢(xún)
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問(wèn)題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
      Centos7.6使用kubeadm部署Kubernetes1.15集群

      系統(tǒng)運(yùn)維 一、環(huán)境準(zhǔn)備

      172.16.8.101    k8s-master01
      172.16.8.102    k8s-master02
      172.16.8.103    k8s-master03
      172.16.8.104    k8s-master04
      172.16.8.105    k8s-master05
      172.16.8.106    k8s-master06
      #harbor
      172.16.8.201    k8s-node01
      1、升級(jí)內(nèi)核
      CentOS 7.x 系統(tǒng)自帶的 3.10.x 內(nèi)核存在一些 Bugs,導(dǎo)致運(yùn)行的 Docker、Kubernetes 不穩(wěn)定,例如:
      高版本的 docker(1.13 以后) 啟用了 3.10 kernel 實(shí)驗(yàn)支持的 kernel memory account 功能(無(wú)法關(guān)閉),當(dāng)節(jié)點(diǎn)壓力大如頻繁啟動(dòng)和停止容器時(shí)會(huì)導(dǎo)致 cgroup memory leak;
      網(wǎng)絡(luò)設(shè)備引用計(jì)數(shù)泄漏,會(huì)導(dǎo)致類(lèi)似于報(bào)錯(cuò):kernel:unregister_netdevice: waiting for eth0 to become free. Usage count = 1;
      https://blog.51cto.com/10880347/2420861
      https://blog.csdn.net/xiegh3014/article/details/96192233
      2、設(shè)置/etc/hosts
      cat >> /etc/hosts<
      3、關(guān)閉防火墻及SELINUX

      https://devops51.blog.csdn.net/article/details/53031781

      創(chuàng)新互聯(lián)堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:成都做網(wǎng)站、網(wǎng)站制作、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿(mǎn)足客戶(hù)于互聯(lián)網(wǎng)時(shí)代的天涯網(wǎng)站設(shè)計(jì)、移動(dòng)媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!4、關(guān)閉swap分區(qū)
      swapoff -a
      sed -i \'/ swap / s/^\\(.*\\)$/#\\1/g\' /etc/fstab 
      5、Kernel性能調(diào)優(yōu)

      必須關(guān)閉 tcp_tw_recycle,否則和NAT 沖突,會(huì)導(dǎo)致服務(wù)不通;
      關(guān)閉 IPV6,防止觸發(fā) docker BUG;

      cat > /etc/sysctl.d/k8s.conf <
      6、加載內(nèi)核模塊
      modprobe ip_vs_rr
      modprobe br_netfilter
      7、設(shè)置系統(tǒng)時(shí)區(qū)
      調(diào)整系統(tǒng) TimeZone
      timedatectl set-timezone Asia/Shanghai
      
      將當(dāng)前的 UTC 時(shí)間寫(xiě)入硬件時(shí)鐘
      timedatectl set-local-rtc 0
      
      重啟依賴(lài)于系統(tǒng)時(shí)間的服務(wù)
      systemctl restart rsyslog 
      systemctl restart crond

      yum install -y conntrack ntpdate ntp ipvsadm ipset jq iptables curl sysstat libseccomp wget
      yum install -y yum-utils device-mapper-persistent-data lvm2

      使用阿里云Docker Yum源
      yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

      選擇安裝的版本

      yum list docker-ce --showduplicates | sort -r

      已加載插件:fastestmirror, langpacks
      可安裝的軟件包
      Loading mirror speeds from cached hostfile

      epel: mirror01.idc.hinet.net elrepo: mirror.rackspace.com
      docker-ce.x86_64 3:19.03.1-3.el7 docker-ce-stable
      docker-ce.x86_64 3:19.03.0-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.8-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.7-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.6-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.5-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.4-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.3-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.2-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.1-3.el7 docker-ce-stable
      docker-ce.x86_64 3:18.09.0-3.el7 docker-ce-stable
      docker-ce.x86_64 18.06.3.ce-3.el7 docker-ce-stable
      docker-ce.x86_64 18.06.2.ce-3.el7 docker-ce-stable
      docker-ce.x86_64 18.06.1.ce-3.el7 docker-ce-stable
      docker-ce.x86_64 18.06.0.ce-3.el7 docker-ce-stable
      docker-ce.x86_64 18.03.1.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 18.03.0.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.12.1.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.12.0.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.09.1.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.09.0.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.06.2.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.06.1.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.06.0.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.03.3.ce-1.el7 docker-ce-stable
      docker-ce.x86_64 17.03.2.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce-stable
      docker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable

      yum install docker-ce-18.09.8-3.el7 -y

      啟動(dòng)DOcker
      systemctl start docker
      systemctl enable docker

      cat > /etc/docker/daemon.json<{
      "exec-opts": ["native.cgroupdriver=systemd"],
      "registry-mirrors" : [
      "https://ot2k4d59.mirror.aliyuncs.com/"
      ]
      }
      EOF
      配置Docker鏡像倉(cāng)庫(kù)必須重啟
      systemctl restart docker

      查看Docker信息
      [root@k8s-master01 ~]# docker info
      Client:
      Debug Mode: false

      Server:
      Containers: 0
      Running: 0
      Paused: 0
      Stopped: 0
      Images: 0
      Server Version: 18.09.8
      Storage Driver: overlay2
      Backing Filesystem: xfs
      Supports d_type: true
      Native Overlay Diff: true
      Logging Driver: json-file
      Cgroup Driver: systemd
      Plugins:
      Volume: local
      Network: bridge host macvlan null overlay
      Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
      Swarm: inactive
      Runtimes: runc
      Default Runtime: runc
      Init Binary: docker-init
      containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
      runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
      init version: fec3683
      Security Options:
      seccomp
      Profile: default
      Kernel Version: 4.4.183-1.el7.elrepo.x86_64
      Operating System: CentOS Linux 7 (Core)
      OSType: linux
      Architecture: x86_64
      CPUs: 4
      Total Memory: 1.936GiB
      Name: k8s-master01
      ID: YZ5Q:2IUX:THW4:Z7DF:GK43:QG4O:D2M2:DVUL:3YI3:G3Y3:J4QE:5A64
      Docker Root Dir: /var/lib/docker
      Debug Mode: false
      Registry: https://index.docker.io/v1/
      Labels:
      Experimental: false
      Insecure Registries:
      127.0.0.0/8
      Registry Mirrors:
      https://ot2k4d59.mirror.aliyuncs.com/
      Live Restore Enabled: false
      Product License: Community Engine

      cat < /etc/yum.repos.d/kubernetes.repo
      [kubernetes]
      name=Kubernetes
      baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
      enabled=1
      gpgcheck=0
      repo_gpgcheck=0
      gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
      http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
      EOF

      yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes


      當(dāng)前文章:Centos7.6使用kubeadm部署Kubernetes1.15集群
      URL鏈接:http://www.ef60e0e.cn/article/cggogc.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
          1. <ul id="0c1fb"></ul>

            <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
            <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

            渝北区| 阿坝| 运城市| 永州市| 疏勒县| 安达市| 拉孜县| 汪清县| 城固县| 衡山县| 东宁县| 利津县| 炎陵县| 巴彦县| 深圳市| 庆安县| 合肥市| 石棉县| 肃宁县| 湄潭县| 宝兴县| 新乐市| 布尔津县| 永修县| 冕宁县| 乌兰察布市| 阿城市| 新蔡县| 湖北省| 安远县| 屯留县| 资源县| 沐川县| 安福县| 甘谷县| 石景山区| 通州市| 康平县| 桐柏县| 沁源县| 沈阳市|