标签:sql 阿里云 manage discovery lld tag tables core api
systemctl stop firewalld.service
#停止firewallsystemctl disable firewalld.service
#禁止firewall开机启动
setenforce 0
永久关闭:vim /etc/selinux/config
打开selinux配置文件
swapoff -a && sed -ri ‘s/.*swap.*/#&/‘ /etc/fstab
在/etc/sysctl.conf中添加以下配置:
net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-ip6tables = 1 net.ipv4.ip_forward=1
如果报出参数不存在,则执行
modprobe br_netfilter
即可
并执行sysctl -p
cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=0 EOF yum -y install epel-release yum clean all yum makecache
yum -y install docker kubelet kubeadm kubectl
systemctl enable docker && systemctl start docker
#!/bin/bash
images=(
kube-apiserver:v1.17.0
kube-controller-manager:v1.17.0
kube-scheduler:v1.17.0
kube-proxy:v1.17.0
pause:3.1
etcd:3.4.3-0
coredns:1.6.5
)
for imageName in ${images[@]} ; do
docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName k8s.gcr.io/$imageName
done
kubeadm init
systemctl enable kubelet && systemctl start kubelet
kubeadm join 192.168.191.10:6443 --token tzncas.g6i3cw3mghxno3c3 \
--discovery-token-ca-cert-hash sha256:bd38a62d29a66e4f9d43900ff9d9ebf9caf6fdfb81f2e596eab0379eb983fb06
标签:sql 阿里云 manage discovery lld tag tables core api
原文地址:https://www.cnblogs.com/sxgaofeng/p/12193637.html