dockertagmirrorgooglecontainers/kube-apiserver-amd64:v1.13.3k8s.gcr.io/kube-apiserver:v1.13.3
dockertagmirrorgooglecontainers/kube-controller-manager-amd64:v1.13.3k8s.gcr.io/kube-controller-manager:v1.13.3
dockertagmirrorgooglecontainers/kube-scheduler-amd64:v1.13.3k8s.gcr.io/kube-scheduler:v1.13.3
dockertagmirrorgooglecontainers/kube-proxy-amd64:v1.13.3k8s.gcr.io/kube-proxy:v1.13.3
dockertagmirrorgooglecontainers/pause-amd64:3.1k8s.gcr.io/pause:3.1
dockertagmirrorgooglecontainers/etcd-amd64:3.2.24k8s.gcr.io/etcd:3.2.24
dockertagcoredns/coredns:1.2.6k8s.gcr.io/coredns:1.2.6
dockertagmirrorgooglecontainers/kubernetes-dashboard-amd64:v1.10.1k8s.gcr.io/kubernetes-dashboard-amd64:v1.10.1
运行节点镜像列表(node1、node2)
#flannel镜像可以直接下,这里不作处理这里主要解决google镜像无法下载问题
dockerpullmirrorgooglecontainers/kube-proxy-amd64:v1.13.3
dockerpullmirrorgooglecontainers/pause-amd64:3.1
dockertagmirrorgooglecontainers/kube-proxy-amd64:v1.13.3k8s.gcr.io/kube-proxy:v1.13.3
dockertagmirrorgooglecontainers/pause-amd64:3.1k8s.gcr.io/pause:3.1
主节点初始化
kubeadminit--kubernetes-version=v1.13.3--pod-network-cidr=10.244.0.0/16--apiserver-advertise-address=0.0.0.0
1
2 [root@master~]#kubeadminit‐‐kubernetes‐version=v1.13.3‐‐pod‐network‐cidr=10.244.0.0/16‐‐apiserver‐advertise‐ad
dress=0.0.0.0
3 [init]UsingKubernetesversion:v1.13.3
4 [preflight]Runningpre‐flightchecks
5 errorexecutionphasepreflight:[preflight]Somefatalerrorsoccurred:
6 [ERRORSwap]:runningwithswaponisnotsupported.Pleasedisableswap
7 [preflight]Ifyouknowwhatyouaredoing,youcanmakeachecknon‐fatalwith`‐‐ignore‐preflight‐errors=...`
8 [root@master~]#swapoff‐a
9 [root@master~]##限制开机启动
10 [root@master~]#sed‐i's/\/dev\/mapper\/centos‐swap/#\/dev\/mapper\/centos‐swap/g'/etc/fstab
11 [root@master~]#kubeadminit‐‐kubernetes‐version=v1.13.3‐‐pod‐network‐cidr=10.244.0.0/16‐‐apiserver‐advertise‐a
ddress=0.0.0.0
12 [init]UsingKubernetesversion:v1.13.3
13 [preflight]Runningpre‐flightchecks
14 [preflight]PullingimagesrequiredforsettingupaKubernetescluster
15 [preflight]Thismighttakeaminuteortwo,dependingonthespeedofyourinternetconnection
16 [preflight]Youcanalsoperformthisactioninbeforehandusing'kubeadmconfigimagespull'
17 [kubelet‐start]Writingkubeletenvironmentfilewithflagstofile"/var/lib/kubelet/kubeadm‐flags.env"
18 [kubelet‐start]Writingkubeletconfigurationtofile"/var/lib/kubelet/config.yaml"
19 [kubelet‐start]Activatingthekubeletservice
20 [certs]UsingcertificateDirfolder"/etc/kubernetes/pki"
21 [certs]Generating"etcd/ca"certificateandkey
22 [certs]Generating"etcd/peer"certificateandkey
23 [certs]etcd/peerservingcertissignedforDNSnames[masterlocalhost]andIPs[192.168.1.111127.0.0.1::1]
24 [certs]Generating"etcd/healthcheck‐client"certificateandkey
25 [certs]Generating"etcd/server"certificateandkey
26 [certs]etcd/serverservingcertissignedforDNSnames[masterlocalhost]andIPs[192.168.1.111127.0.0.1::1]
27 [certs]Generating"apiserver‐etcd‐client"certificateandkey
28 [certs]Generating"ca"certificateandkey
29 [certs]Generating"apiserver‐kubelet‐client"certificateandkey
30 [certs]Generating"apiserver"certificateandkey
31 [certs]apiserverservingcertissignedforDNSnames[masterkuberneteskubernetes.defaultkubernetes.default.svc
kubernetes.default.svc.cluster.local]andIPs[10.96.0.1192.168.1.111]
32 [certs]Generating"front‐proxy‐ca"certificateandkey