亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Centos7 一鍵安裝K8s master節點

發布時間:2020-06-18 11:35:13 來源:網絡 閱讀:593 作者:xinsir999 欄目:系統運維

#!/bin/bash
#hostnamectl set-hostname k8s
#echo "192.168.5.130 k8s" >> /etc/hosts
#echo "192.168.5.131 k8s1" >> /etc/hosts
#echo "192.168.5.132 k8s2" >> /etc/hosts
#systemctl stop firewalld && systemctl disable firewalld
#sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux
#swapoff -a
#SwapLineNumber=sed -n '/swap/=' /etc/fstab
#sed -i $SwapLineNumber's/^/#&/' /etc/fstab
#echo net.bridge.bridge-nf-call-ip6tables = 1 >> /etc/sysctl.d/k8s.conf
#echo net.bridge.bridge-nf-call-iptables = 1 >> /etc/sysctl.d/k8s.conf
#echo net.ipv4.ip_forward = 1 >> /etc/sysctl.d/k8s.conf
#modprobe br_netfilter
#sysctl -p /etc/sysctl.d/k8s.conf
#下載鏡像
#docker pull cnych/kube-apiserver-amd64:v1.10.0
#docker pull cnych/kube-scheduler-amd64:v1.10.0
#docker pull cnych/kube-controller-manager-amd64:v1.10.0
#docker pull cnych/kube-proxy-amd64:v1.10.0
#docker pull cnych/k8s-dns-kube-dns-amd64:1.14.8
#docker pull cnych/k8s-dns-dnsmasq-nanny-amd64:1.14.8
#docker pull cnych/k8s-dns-sidecar-amd64:1.14.8
#docker pull cnych/etcd-amd64:3.1.12
#docker pull cnych/flannel:v0.10.0-amd64
#docker pull cnych/pause-amd64:3.1

#docker tag cnych/kube-apiserver-amd64:v1.10.0 k8s.gcr.io/kube-apiserver-amd64:v1.10.0
#docker tag cnych/kube-scheduler-amd64:v1.10.0 k8s.gcr.io/kube-scheduler-amd64:v1.10.0
#docker tag cnych/kube-controller-manager-amd64:v1.10.0 k8s.gcr.io/kube-controller-manager-amd64:v1.10.0
#docker tag cnych/kube-proxy-amd64:v1.10.0 k8s.gcr.io/kube-proxy-amd64:v1.10.0
#docker tag cnych/k8s-dns-kube-dns-amd64:1.14.8 k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.8
#docker tag cnych/k8s-dns-dnsmasq-nanny-amd64:1.14.8 k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.8
#docker tag cnych/k8s-dns-sidecar-amd64:1.14.8 k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.8
#docker tag cnych/etcd-amd64:3.1.12 k8s.gcr.io/etcd-amd64:3.1.12
#docker tag cnych/flannel:v0.10.0-amd64 quay.io/coreos/flannel:v0.10.0-amd64
#docker tag cnych/pause-amd64:3.1 k8s.gcr.io/pause-amd64:3.1

#docker rmi cnych/kube-apiserver-amd64:v1.10.0
#docker rmi cnych/kube-scheduler-amd64:v1.10.0
#docker rmi cnych/kube-controller-manager-amd64:v1.10.0
#docker rmi cnych/kube-proxy-amd64:v1.10.0
#docker rmi cnych/k8s-dns-kube-dns-amd64:1.14.8
#docker rmi cnych/k8s-dns-dnsmasq-nanny-amd64:1.14.8
#docker rmi cnych/k8s-dns-sidecar-amd64:1.14.8
#docker rmi cnych/etcd-amd64:3.1.12
#docker rmi cnych/flannel:v0.10.0-amd64
#docker rmi cnych/pause-amd64:3.1

#添加yum源
#cat <<EOF > /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
#安裝kubctl
#yum makecache fast && yum install -y kubelet-1.10.0-0
#yum install -y kubeadm-1.10.0-0 kubectl-1.10.0-0 kubernetes-cni-0.6.0-0.x86_64.rpm
#查看docker驅動
#echo "docker 驅動為:"
#docker info |grep Cgroup
#sleep 5
#修改kubctl驅動 由 systemed--->cgroupfs
#cgroupdriverlineNumber=sed -n '/systemd/=' /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
#sed -i "s/systemd/cgroupfs/g" /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
#重新加載kubectl daemon
#systemctl daemon-reload

read -p "請輸入本機ip地址:" IP
#啟動k8s
kubeadm init --kubernetes-version=v1.10.0 --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=$IP

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

仲巴县| 巍山| 平武县| 兴宁市| 鱼台县| 岗巴县| 凤台县| 特克斯县| 昌都县| 资兴市| 南投县| 宁安市| 肃宁县| 剑阁县| 安岳县| 西城区| 准格尔旗| 龙口市| 青铜峡市| 嫩江县| 奉贤区| 南漳县| 会东县| 云南省| 水富县| 紫金县| 永泰县| 财经| 泊头市| 乌兰察布市| 三原县| 仲巴县| 铁力市| 余庆县| 镇赉县| 崇信县| 灌南县| 永川市| 保亭| 黄浦区| 宜阳县|