2017-04-20 20:52:06 +08:00
|
|
|
|
## 问题记录
|
|
|
|
|
|
|
|
|
|
安装、使用kubernetes的过程中遇到的所有问题的记录。
|
|
|
|
|
|
|
|
|
|
推荐直接在Kubernetes的GitHub上[提issue](https://github.com/kubernetes/kubernetes/issues/new),在此记录所提交的issue。
|
|
|
|
|
|
|
|
|
|
## 1.[Failed to start ContainerManager failed to initialise top level QOS containers #43856](https://github.com/kubernetes/kubernetes/issues/43856)
|
|
|
|
|
|
|
|
|
|
重启kubelet时报错,目前的解决方法是:
|
|
|
|
|
|
2017-04-21 18:18:31 +08:00
|
|
|
|
1.在docker.service配置中增加的`--exec-opt native.cgroupdriver=systemd`配置。
|
2017-04-20 20:52:06 +08:00
|
|
|
|
|
2017-04-21 18:18:31 +08:00
|
|
|
|
2.手动删除slice(貌似不管用)
|
|
|
|
|
|
|
|
|
|
3.重启主机,这招最管用😄
|
2017-04-20 20:52:06 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
2017-04-20 21:00:41 +08:00
|
|
|
|
for i in $(systemctl list-unit-files —no-legend —no-pager -l | grep —color=never -o .*.slice | grep kubepod);do systemctl stop $i;done
|
2017-04-20 20:52:06 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 2.[High Availability of Kube-apiserver #19816](https://github.com/kubernetes/kubernetes/issues/19816)
|
|
|
|
|
|
2017-04-20 21:00:41 +08:00
|
|
|
|
API server的HA如何实现?或者说这个master节点上的服务`api-server`、`scheduler`、`controller` 如何实现HA?目前的解决方案是什么?
|