Fix for missing mount when kubeadm init invoked
When kubeadm reset is invoked, the /var/lib/kubelet mount is removed. The "when" conditional in the ansible environment did not seem to detect that the mount command was needed. Updated the command to be a compound bash command to ensure it works in local and remote ansible environments. Change-Id: Ic81d180df9691161e0b75ab7cdeaf2f639b47728 Fixes-Bug: 1849710 Related-Bug: 1847147 Related-Bug: 1838692 Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
This commit is contained in:
parent
c251cda2da
commit
38b20a77b4
|
@ -38,10 +38,9 @@
|
|||
# That bug was re-broken by this commit in k8s 1.16
|
||||
# https://github.com/kubernetes/kubernetes/commit/6845c66efbb888d2f73e1a1c17f0e06b34d8e261
|
||||
- name: Mount kubelet-lv
|
||||
command: mount /var/lib/kubelet/
|
||||
command: bash -c 'mountpoint -q /var/lib/kubelet || mount /var/lib/kubelet'
|
||||
args:
|
||||
warn: false
|
||||
when: '"/var/lib/kubelet/" is not mount'
|
||||
|
||||
# it looks like k8s 1.16 unmounts the folder before clearing it
|
||||
- name: Clear kubelet data
|
||||
|
|
Loading…
Reference in New Issue