kata-deploy: Fix the pod of kata deploy starts to occur an error

If a pod of kata is deployed on a machine, after the machine restarts, the pod status of kata-deploy will be CrashLoopBackOff.

Fixes: #5868
Signed-off-by: SinghWang <wangxin_0611@126.com>
This commit is contained in:
singhwang 2022-12-03 19:11:42 +08:00 committed by SinghWang
parent 8246de821f
commit b087667ac5

View File

@ -56,7 +56,7 @@ function get_container_runtime() {
function install_artifacts() {
echo "copying kata artifacts onto host"
cp -a /opt/kata-artifacts/opt/kata/* /opt/kata/
cp -au /opt/kata-artifacts/opt/kata/* /opt/kata/
chmod +x /opt/kata/bin/*
chmod +x /opt/kata/runtime-rs/bin/*
}