Don't block on Kubernetes installation cleanup operations
@@ -7,7 +7,7 @@ CNI_BIN_DIR="/opt/cni/bin"
CNI_DOWNLOADS_DIR="/opt/cni/downloads"
function removeEtcd() {
- rm -rf /usr/bin/etcd
+ rm -rf /usr/bin/etcd &
}
function installEtcd() {
@@ -110,7 +110,7 @@ function installNetworkPlugin() {
installAzureCNI
fi
installCNI
- rm -rf $CNI_DOWNLOADS_DIR
+ rm -rf $CNI_DOWNLOADS_DIR &
}
function downloadCNI() {
@@ -192,8 +192,7 @@ function extractHyperkube() {
mv "/usr/local/bin/kubelet-${KUBERNETES_VERSION}" "/usr/local/bin/kubelet"
mv "/usr/local/bin/kubectl-${KUBERNETES_VERSION}" "/usr/local/bin/kubectl"
chmod a+x /usr/local/bin/kubelet /usr/local/bin/kubectl
- rm -rf /usr/local/bin/kubelet-* /usr/local/bin/kubectl-*
- rm -rf /home/rootfs-*
+ rm -rf /usr/local/bin/kubelet-* /usr/local/bin/kubectl-* /home/rootfs-* &
}
function pullContainerImage() {
