kubeadm 安装1.6.0版本出错 未解决

工具包已经安装好了。

[[email protected] 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
[[email protected] data]#

已经手动把所有需要用的镜像下载下来了,

[[email protected] 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
[[email protected] data]#

停在以下这个位置

[[email protected] 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

时间: 2024-10-23 21:37:30

kubeadm 安装1.6.0版本出错 未解决的相关文章

CentOS安装redis-audit 但执行时出错未解决 记录一下安装过程

网上很多安装过程都太老了,测试很多方法终于成功了,但执行时还是出错,哪位熟悉的可以告知一下. yum install -y ruby rubygems ruby-devel git gcc gem sources --remove http://rubygems.org/gem sources -a https://ruby.taobao.org/gem sources -lgem install bundler git clone https://github.com/snmaynard/re

centos7使用kubeadm安装kubernetes 1.11版本多主高可用

centos7使用kubeadm安装kubernetes 1.11版本多主高可用 [TOC] kubernetes介绍要学习一个新的东西,先了解它是什么,熟悉基本概念会有很大帮助.以下是我学习时看过的一篇核心概念介绍.http://dockone.io/article/932 搭建Kubernetes集群环境有以下3种方式: minikubeMinikube是一个工具,可以在本地快速运行一个单点的Kubernetes,尝试Kubernetes或日常开发的用户使用.不能用于生产环境.官方地址:ht

一次在CentOS7上安装部署Zabbix3.0版本及快速进行基本配置的实例

Zabbix3.0的安装.部署.配置,必须基于LAMP环境或是是LNMP环境. 关于LAMP环境的简单快速搭建,见博客:http://afterdawn.blog.51cto.com/7503144/1923139 注意:以下步骤都是在LAMP配置之后进行的. 本文不会再对zabbix-server和zabbix-agent理论知识再进行介绍,建议看完http://afterdawn.blog.51cto.com/7503144/1922502再进行zabbix实战. Zabbix3.0对软硬件

kubernetes 实践三:使用kubeadm安装k8s1.16.0

环境版本说明: 三台vmware虚拟机,系统版本CentOS7.6. Kubernetes 1.16.0,当前最新版. flannel v0.11 docker 18.09 使用kubeadm可以简单的搭建一套k8s集群环境,而不用关注安装部署的细节,而且现在k8s的版本更新频率很快,所以这种方法十分推荐. 相关准备 注:本节相关操作要在所有节点上执行. 硬件环境 使用三台vmware虚拟机,配置网络,并保证可以联网. k8s-master 4G 4核 CentOS7 192.168.10.20

CentOS7安装kubernetes V1.0版本

各组件版本如下: 1.Kubernetes-1.02.docker-1.8.03.flannel-0.5.34.etcd-2.1.1 kubernetes环境部署: 1.Master:172.16.198.1292.Slave: 172.16.198.128 两台虚拟机准备工作: 1.每台机器禁用firewalld: systemctl stop firewalldsystemctl disable firewalld 2.禁用selinux: vi /etc/selinux/config#SE

centos7源码安装git2.10.0版本

由于Centos7使用yum -y install git 安装的git版本是git --versiongit version 1.9.x想要升级到2.10.0:升级安装git的时候,最好一次安装依赖.yum install -y tk zlib-devel openssl-devel perl cpio expat-devel gettext-devel asciidoc xmltoyum install perl-ExtUtils-MakeMaker packageyum remove gi

CentOS7.5利用Kubeadm安装kubernets1.13.0(国内版)

国内版一.部署Kubernetes1.13.0(无dashboard)前期准备(all node): #swapoff -a#防火墙关闭!# cat <<EOF > /etc/sysctl.d/k8s.confnet.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1EOF!# sysctl --system1.解压all node#tar -zxvf k8s_1.13.0.tar.gz2.安

centos安装git 2.0版本

本地服务器版本:[root@vm_001034_op-test git-2.0.5]# cat /etc/redhat-release CentOS release 6.5 (Final)[root@vm_001034_op-test git-2.0.5]# 笔者从网上找了很多资料,最终参考几份资料才安装成功的.原因很简单,就是没有安装git的依赖包.以下yum是执行的一些解决依赖的yum命令,有些报错有些成功,应该是最后几条生效解决了 :yum groupinstall "Developmen

centos安装redis 5.0版本

我在本地VM-Centos里安装5.0.5时安装遇到了些问题,参考了Blog:https://www.cnblogs.com/shawhe/p/9548620.html 顺利安装完成. 安装redis 集群参考:https://blog.csdn.net/weixin_37882382/article/details/83538367 原文地址:https://www.cnblogs.com/yangzhilong/p/10914894.html