centos-docker-k8s
作者:互联网
1.docker按照
直接使用yum即可sudo yum install docker-ce docker-ce-cli containerd.io
2.按照k8s
配置yum源
[k8s] name=k8s enabled=1 gpgcheck=0 baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
yum install kubelet kubeadm kubectl -y
3.启动docker,k8s
systemctl start docker
systemctl enable docker
systemctl enable kubectl
echo "1" >/proc/sys/net/bridge/bridge-nf-call-iptables
swapoff -a
systemctl stop firewalld systemctl disable firewalld
初始化集群
Docker pull aiotceo/kube-controller-manager:v1.19.1
docker tag aiotceo/kube-controller-manager:v1.19.1 k8s.gcr.io/kube-controller-manager:v1.19.1
Docker pull aiotceo/kube-apiserver:v1.19.1
docker tag aiotceo/kube-apiserver:v1.19.1 k8s.gcr.io/kube-apiserver:v1.19.1
docker pull coredns/coredns:1.7.0
docker tag coredns/coredns:1.7.0 k8s.gcr.io/coredns:1.7.0
docker pull aiotceo/kube-scheduler:v1.19.1
docker pull aiotceo/kube-proxy:v1.19.1
docker pull aiotceo/pause:3.2
docker tag aiotceo/kube-scheduler:v1.19.1 k8s.gcr.io/kube-scheduler:v1.19.1
docker tag aiotceo/kube-proxy:v1.19.1 k8s.gcr.io/kube-proxy:v1.19.1
docker tag aiotceo/pause:3.2 k8s.gcr.io/pause:3.2
docker pull microbox/etcd
docker tag microbox/etcd k8s.gcr.io/etcd:3.4.13-0
kubeadm init --v=5
标签:v1.19,kube,centos,io,docker,k8s,aiotceo 来源: https://www.cnblogs.com/yangyang12138/p/13670626.html