NYC's Blog - Ubuntu16.04手动部署Kubernetes(1)——Master和Node部署 的评论 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html zh-CN 之前在《Kubernetes初体验》中我们使用Minikube快速体验了一把Kubernetes,然后在《Kubernetes架构及资源关系简单总结》一文中我们又简单介绍了Kubernetes的... Thu, 20 Dec 2018 14:39:03 +0800 Thu, 20 Dec 2018 14:39:03 +0800 NYC http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-516 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-516 Thu, 20 Dec 2018 14:39:03 +0800 NYC 没有日志,光这个看不出来问题呀....

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-516#comments
鼠我最好 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-515 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-515 Thu, 13 Dec 2018 01:06:45 +0800 鼠我最好 [root@k8s-master1 etcd-v3.3.10]# systemctl status kube-apiserver.service
● kube-apiserver.service - Kubernetes API Server
Loaded: loaded (/usr/lib/systemd/system/kube-apiserver.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since 四 2018-12-13 01:02:42 CST; 1min 5s ago

 Docs: https://github.com/kubernetes/kubernetes

12月 13 01:02:41 k8s-master1 systemd[1]: kube-apiserver.service failed to run 'start' task: Is a directory
12月 13 01:02:41 k8s-master1 systemd[1]: Failed to start Kubernetes API Server.
12月 13 01:02:41 k8s-master1 systemd[1]: Unit kube-apiserver.service entered failed state.
12月 13 01:02:41 k8s-master1 systemd[1]: kube-apiserver.service failed.
12月 13 01:02:41 k8s-master1 systemd[1]: Starting Kubernetes API Server...
12月 13 01:02:42 k8s-master1 systemd[1]: kube-apiserver.service holdoff time over, scheduling restart.
12月 13 01:02:42 k8s-master1 systemd[1]: start request repeated too quickly for kube-apiserver.service
12月 13 01:02:42 k8s-master1 systemd[1]: Failed to start Kubernetes API Server.
12月 13 01:02:42 k8s-master1 systemd[1]: Unit kube-apiserver.service entered failed state.
12月 13 01:02:42 k8s-master1 systemd[1]: kube-apiserver.service failed.

是什么问题呢?怎么解决呢?

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-515#comments
NYC http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-457 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-457 Mon, 16 Apr 2018 21:24:36 +0800 NYC @all 因为换工作原因,已经很久不搞Kubernetes了,而K8s发展特别快,所以本文的一些方式对于新版本可能已经不太适用了,但因为没有尝试过新版本,所以很多问题无法解答,抱歉。

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-457#comments
logic http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-454 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-454 Thu, 12 Apr 2018 23:11:50 +0800 logic 我查看了一下 是1。8.11版本

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-454#comments
logic http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-453 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-453 Thu, 12 Apr 2018 22:48:50 +0800 logic 是啊,我也是这一步卡住了,但是我的报错信息是 Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled
Drop-In: /etc/systemd/system/kubelet.service.d

       └─10-kubeadm.conf

Active: inactive (dead) (Result: exit-code) since 四 2018-04-12 22:37:43 CST; 59s ago
我也不知道是什么版本,反正是下载的最新的kubernetes,希望哪位大神可以帮忙答疑,万分感谢

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-453#comments
jiamin http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-451 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-451 Sun, 08 Apr 2018 20:57:47 +0800 jiamin 感谢,解决了我的问题

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-451#comments
爱编程的小猫 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-450 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-450 Sun, 08 Apr 2018 11:24:30 +0800 爱编程的小猫 你看看是不是没有关闭交换空间.运行swapoff -a 然后再启动试试

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-450#comments
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-448 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-448 Wed, 28 Mar 2018 18:03:34 +0800 请问这个问题您解决了吗?我也遇到了!

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-448#comments
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-447 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-447 Tue, 27 Mar 2018 17:12:59 +0800 运行etcd后变成这样了,一直保持这样不动!
2018-03-27 17:10:59.476632 I | etcdmain: etcd Version: 3.0.4
2018-03-27 17:10:59.477839 I | etcdmain: Git SHA: d53923c
2018-03-27 17:10:59.478332 I | etcdmain: Go Version: go1.6.3
2018-03-27 17:10:59.478870 I | etcdmain: Go OS/Arch: linux/amd64
2018-03-27 17:10:59.479432 I | etcdmain: setting maximum number of CPUs to 1, total number of available CPUs is 1
2018-03-27 17:10:59.480142 W | etcdmain: no data-dir provided, using default data-dir ./default.etcd
2018-03-27 17:10:59.481491 I | etcdmain: listening for peers on http://localhost:2380
2018-03-27 17:10:59.482292 I | etcdmain: listening for client requests on localhost:2379
2018-03-27 17:10:59.487576 I | etcdserver: name = default
2018-03-27 17:10:59.488298 I | etcdserver: data dir = default.etcd
2018-03-27 17:10:59.488821 I | etcdserver: member dir = default.etcd/member
2018-03-27 17:10:59.489250 I | etcdserver: heartbeat = 100ms
2018-03-27 17:10:59.489669 I | etcdserver: election = 1000ms
2018-03-27 17:10:59.490900 I | etcdserver: snapshot count = 10000
2018-03-27 17:10:59.491330 I | etcdserver: advertise client URLs = http://localhost:2379
2018-03-27 17:10:59.491860 I | etcdserver: initial advertise peer URLs = http://localhost:2380
2018-03-27 17:10:59.492152 I | etcdserver: initial cluster = default=http://localhost:2380
2018-03-27 17:10:59.496832 I | etcdserver: starting member 8e9e05c52164694d in cluster cdf818194e3a8c32
2018-03-27 17:10:59.497220 I | raft: 8e9e05c52164694d became follower at term 0
2018-03-27 17:10:59.497466 I | raft: newRaft 8e9e05c52164694d [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2018-03-27 17:10:59.497709 I | raft: 8e9e05c52164694d became follower at term 1
2018-03-27 17:10:59.505315 I | etcdserver: starting server... [version: 3.0.4, cluster version: to_be_decided]
2018-03-27 17:10:59.506764 I | membership: added member 8e9e05c52164694d [http://localhost:2380] to cluster cdf818194e3a8c32
2018-03-27 17:10:59.699176 I | raft: 8e9e05c52164694d is starting a new election at term 1
2018-03-27 17:10:59.699880 I | raft: 8e9e05c52164694d became candidate at term 2
2018-03-27 17:10:59.700375 I | raft: 8e9e05c52164694d received vote from 8e9e05c52164694d at term 2
2018-03-27 17:10:59.700841 I | raft: 8e9e05c52164694d became leader at term 2
2018-03-27 17:10:59.701247 I | raft: raft.node: 8e9e05c52164694d elected leader 8e9e05c52164694d at term 2
2018-03-27 17:10:59.702513 I | etcdserver: published {Name:default ClientURLs:[http://localhost:2379]} to cluster cdf818194e3a8c32
2018-03-27 17:10:59.703305 I | etcdmain: ready to serve client requests
2018-03-27 17:10:59.704032 I | etcdserver: setting up the initial cluster version to 3.0
2018-03-27 17:10:59.704782 E | etcdmain: forgot to set Type=notify in systemd service file?
2018-03-27 17:10:59.708561 N | membership: set the initial cluster version to 3.0
2018-03-27 17:10:59.711522 I | api: enabled capabilities for version 3.0
2018-03-27 17:10:59.712014 N | etcdmain: serving insecure client requests on localhost:2379, this is strongly discouraged!

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-447#comments
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-446 http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-446 Tue, 27 Mar 2018 17:09:21 +0800 请问手动安装etcd是下载好后直接./etcd就行吗?卡在这里不动了
2018-03-27 17:05:45.947682 I | etcdmain: etcd Version: 3.0.4
2018-03-27 17:05:45.949403 I | etcdmain: Git SHA: d53923c
2018-03-27 17:05:45.949915 I | etcdmain: Go Version: go1.6.3
2018-03-27 17:05:45.950393 I | etcdmain: Go OS/Arch: linux/amd64
2018-03-27 17:05:45.950793 I | etcdmain: setting maximum number of CPUs to 1, total number of available CPUs is 1
2018-03-27 17:05:45.951203 W | etcdmain: no data-dir provided, using default data-dir ./default.etcd
2018-03-27 17:05:45.951659 N | etcdmain: the server is already initialized as member before, starting as etcd member...
2018-03-27 17:05:45.952481 I | etcdmain: listening for peers on http://localhost:2380
2018-03-27 17:05:45.953019 I | etcdmain: listening for client requests on localhost:2379
2018-03-27 17:05:45.954994 I | etcdserver: name = default
2018-03-27 17:05:45.955506 I | etcdserver: data dir = default.etcd
2018-03-27 17:05:45.955919 I | etcdserver: member dir = default.etcd/member
2018-03-27 17:05:45.956340 I | etcdserver: heartbeat = 100ms
2018-03-27 17:05:45.956743 I | etcdserver: election = 1000ms
2018-03-27 17:05:45.957158 I | etcdserver: snapshot count = 10000
2018-03-27 17:05:45.957566 I | etcdserver: advertise client URLs = http://localhost:2379
2018-03-27 17:05:45.959619 I | etcdserver: restarting member 8e9e05c52164694d in cluster cdf818194e3a8c32 at commit index 419
2018-03-27 17:05:45.960496 I | raft: 8e9e05c52164694d became follower at term 4
2018-03-27 17:05:45.960948 I | raft: newRaft 8e9e05c52164694d [peers: [], term: 4, commit: 419, applied: 0, lastindex: 419, lastterm: 4]
2018-03-27 17:05:45.963913 I | etcdserver: starting server... [version: 3.0.4, cluster version: to_be_decided]
2018-03-27 17:05:45.965996 I | membership: added member 8e9e05c52164694d [http://localhost:2380] to cluster cdf818194e3a8c32
2018-03-27 17:05:45.966871 N | membership: set the initial cluster version to 3.0
2018-03-27 17:05:45.967384 I | api: enabled capabilities for version 3.0
2018-03-27 17:05:46.762603 I | raft: 8e9e05c52164694d is starting a new election at term 4
2018-03-27 17:05:46.762756 I | raft: 8e9e05c52164694d became candidate at term 5
2018-03-27 17:05:46.762788 I | raft: 8e9e05c52164694d received vote from 8e9e05c52164694d at term 5
2018-03-27 17:05:46.762838 I | raft: 8e9e05c52164694d became leader at term 5
2018-03-27 17:05:46.762870 I | raft: raft.node: 8e9e05c52164694d elected leader 8e9e05c52164694d at term 5
2018-03-27 17:05:46.764991 I | etcdserver: published {Name:default ClientURLs:[http://localhost:2379]} to cluster cdf818194e3a8c32
2018-03-27 17:05:46.768356 I | etcdmain: ready to serve client requests
2018-03-27 17:05:46.771749 N | etcdmain: serving insecure client requests on localhost:2379, this is strongly discouraged!
2018-03-27 17:05:46.776294 E | etcdmain: forgot to set Type=notify in systemd service file?

]]>
http://niyanchun.com/deploy-kubernetes-step-by-step-on-trusty-section-1.html/comment-page-1#comment-446#comments