k8s安装过程中出现api-service启动失败

失败原因查看

cat /var/log/messages|grep kube-apiserver|grep -i error
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.535079    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.Service: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.567959    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *storage.StorageClass: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568024    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *apps.StatefulSet: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568178    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *autoscaling.HorizontalPodAutoscaler: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568241    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *batch.Job: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568308    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *certificates.CertificateSigningRequest: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568377    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *autoscaling.HorizontalPodAutoscaler: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568457    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.ReplicationController: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568522    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *extensions.DaemonSet: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568572    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *extensions.Deployment: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568603    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *batch.Job: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568651    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *extensions.Ingress: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568694    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *extensions.ReplicaSet: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568740    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *extensions.NetworkPolicy: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568841    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *policy.PodDisruptionBudget: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568893    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *rbac.Role: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568925    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *rbac.Role: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.568977    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *rbac.RoleBinding: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.569026    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *rbac.ClusterRole: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.569139    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *rbac.ClusterRoleBinding: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.569177    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *rbac.RoleBinding: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.569216    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *rbac.ClusterRole: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.569254    4461 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *rbac.ClusterRoleBinding: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: F0622 20:11:53.639859    4461 controller.go:128] Unable to perform initial IP allocation check: unable to refresh the service IP block: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.961183    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.ReplicationController: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.962516    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.PodTemplate: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.962694    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.LimitRange: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.962761    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.ResourceQuota: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.962839    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.Secret: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.962912    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.ServiceAccount: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.962963    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.PersistentVolume: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.963014    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.PersistentVolumeClaim: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.963069    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.ConfigMap: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.963126    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.Namespace: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.963178    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.Endpoints: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.963215    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.Node: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.963254    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.SecurityContextConstraints: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.963301    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.Pod: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.963353    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *api.Service: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.981891    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *extensions.ReplicaSet: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL
Jun 22 20:11:53 localhost kube-apiserver: E0622 20:11:53.981957    4474 cacher.go:260] unexpected ListAndWatch error: pkg/storage/cacher.go:201: Failed to list *apps.StatefulSet: client: etcd cluster is unavailable or misconfigured; error #0: http: no Host in request URL

很显然是api-service和etcd通信失败

查看 /etc/kubernetes/kube-apiserver 配置文件中 有个笔误

#KUBE_ETCD_SERVERS="--etcd-servers=http:///127.0.0.1:2379" 《=笔误
KUBE_ETCD_SERVERS="--etcd-servers=http://127.0.0.1:2379"

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值