首页 > 代码库 > kubeadm 安装1.6.0版本出错 未解决
kubeadm 安装1.6.0版本出错 未解决
工具包已经安装好了。
[root@master data]# rpm -qa |grep kube
kubeadm-1.6.0-0.x86_64
kubectl-1.6.0-0.x86_64
kubelet-1.6.0-0.x86_64
kubernetes-cni-0.5.1-0.x86_64
[root@master data]#
已经手动把所有需要用的镜像下载下来了,
[root@master data]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
gcr.io/google_containers/kube-proxy-amd64 v1.6.0 746d1460005f 3 days ago 109.2 MB
gcr.io/google_containers/kube-controller-manager-amd64 v1.6.0 dc78cc207023 3 days ago 132.7 MB
gcr.io/google_containers/kube-apiserver-amd64 v1.6.0 6a29f77d1186 3 days ago 150.5 MB
gcr.io/google_containers/kube-scheduler-amd64 v1.6.0 dc03ae0150c9 3 days ago 76.75 MB
gcr.io/google_containers/k8s-dns-sidecar-amd64 1.14.1 fc5e302d8309 4 weeks ago 44.52 MB
gcr.io/google_containers/k8s-dns-kube-dns-amd64 1.14.1 f8363dbf447b 4 weeks ago 52.36 MB
gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64 1.14.1 1091847716ec 4 weeks ago 44.84 MB
gcr.io/google_containers/etcd-amd64 3.0.17 243830dae7dd 5 weeks ago 168.9 MB
gcr.io/google_containers/kubernetes-dashboard-amd64 v1.5.1 1180413103fd 11 weeks ago 103.6 MB
gcr.io/google_containers/etcd-amd64 3.0.14-kubeadm 856e39ac7be3 4 months ago 174.9 MB
gcr.io/google_containers/kubedns-amd64 1.9 26cf1ed9b144 4 months ago 47 MB
gcr.io/google_containers/dnsmasq-metrics-amd64 1.0 5271aabced07 4 months ago 14 MB
gcr.io/google_containers/kube-dnsmasq-amd64 1.4 3ec65756a89b 6 months ago 5.126 MB
gcr.io/google_containers/kube-discovery-amd64 1.0 c5e0c9a457fc 6 months ago 134.2 MB
gcr.io/google_containers/exechealthz-amd64 1.2 93a43bfb39bf 6 months ago 8.375 MB
gcr.io/google_containers/pause-amd64 3.0 99e59f495ffa 11 months ago 746.9 kB
gcr.io/google_containers/defaultbackend 1.0 137a07dfd084 17 months ago 7.51 MB
[root@master data]#
停在以下这个位置
[root@master k8s160]# kubeadm init --apiserver-advertise-address 172.16.160.34
[kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters.
[init] Using Kubernetes version: v1.6.0
[init] Using Authorization mode: RBAC
[preflight] Running pre-flight checks
[certificates] Generated CA certificate and key.
[certificates] Generated API server certificate and key.
[certificates] API Server serving cert is signed for DNS names [master.k8s kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 172.16.160.34]
[certificates] Generated API server kubelet client certificate and key.
[certificates] Generated service account token signing key and public key.
[certificates] Generated front-proxy CA certificate and key.
[certificates] Generated front-proxy client certificate and key.
[certificates] Valid certificates and keys now exist in "/etc/kubernetes/pki"
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/controller-manager.conf"
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/scheduler.conf"
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/admin.conf"
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/kubelet.conf"
[apiclient] Created API client, waiting for the control plane to become ready
[apiclient] All control plane components are healthy after 10.787286 seconds
[apiclient] Waiting for at least one node to register and become ready
[apiclient] Temporarily unable to list nodes (will retry)
[apiclient] Temporarily unable to list nodes (will retry)
[apiclient] Temporarily unable to list nodes (will retry)
命令保存:
docker pull gcr.io/google_containers/kube-proxy-amd64:v1.6.0
docker pull gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0
docker pull gcr.io/google_containers/kube-apiserver-amd64:v1.6.0
docker pull gcr.io/google_containers/kube-scheduler-amd64:v1.6.0
docker pull gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.1
docker pull gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.1
docker pull gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.1
docker pull gcr.io/google_containers/etcd-amd64:3.0.17
docker pull gcr.io/google_containers/kubernetes-dashboard-amd64:v1.5.1
docker pull gcr.io/google_containers/etcd-amd64:3.0.14-kubeadm
docker pull gcr.io/google_containers/kubedns-amd64:1.9
docker pull gcr.io/google_containers/dnsmasq-metrics-amd64:1.0
docker pull gcr.io/google_containers/kube-dnsmasq-amd64:1.4
docker pull gcr.io/google_containers/kube-discovery-amd64:1.0
docker pull gcr.io/google_containers/exechealthz-amd64:1.2
docker pull gcr.io/google_containers/pause-amd64:3.0
docker pull gcr.io/google_containers/defaultbackend:1.0
systemctl disable kubelet.service && systemctl stop kubelet.service
systemctl disable docker && systemctl stop docker
docker rm -f -v $(docker ps -q);
find /var/lib/kubelet | xargs -n 1 findmnt -n -t tmpfs -o TARGET -T | uniq | xargs -r umount -v;
rm -r -f /etc/kubernetes /var/lib/kubelet /var/lib/etcd;
systemctl enable kubelet.service && systemctl start kubelet.service
systemctl enable docker && systemctl start docker
systemctl status kubelet.service
systemctl status docker
1.5.4
kubeadm init --api-advertise-addresses 172.16.160.34
或者1.6.0:
kubeadm init --apiserver-advertise-address 172.16.160.34
kubeadm 安装1.6.0版本出错 未解决