fix bug in 95.clean.yml: cannot remove‘/var/run/docker/netns/default’: Device or resource busy

pull/275/head
jmgao 2017-11-12 16:17:50 +08:00
parent 253f109e47
commit 0685f87fc1
2 changed files with 8 additions and 2 deletions

View File

@ -5,6 +5,14 @@
shell: "systemctl stop calico-node docker"
ignore_errors: true
# 因为calico-kube-controller使用了host网络相当于使用了docker -net=host需要
# 卸载 /var/run/docker/netns/default
- name: 卸载docker 相关fs1
mount: path=/var/run/docker/netns/default state=unmounted
- name: 卸载docker 相关fs2
mount: path=/var/lib/docker/overlay state=unmounted
- name: 清理目录和文件
file: name={{ item }} state=absent
with_items:

View File

@ -22,8 +22,6 @@ ExecStart={{ bin_dir }}/kubelet \
--cluster-domain={{ CLUSTER_DNS_DOMAIN }} \
--hairpin-mode promiscuous-bridge \
--allow-privileged=true \
--fail-swap-on=false
--serialize-image-pulls=false \
--logtostderr=true \
--v=2
#kubelet cAdvisor 默认在所有接口监听 4194 端口的请求, 以下iptables限制内网访问