diff --git a/manifests/function/ephemeral/secret.yaml b/manifests/function/ephemeral/secret.yaml index 0970a7ed8..d7e55a23e 100644 --- a/manifests/function/ephemeral/secret.yaml +++ b/manifests/function/ephemeral/secret.yaml @@ -26,6 +26,8 @@ stringData: gecos: deployer ssh_pwauth: True runcmd: + - systemctl daemon-reload + - systemctl restart docker - /bin/bash -c 'kernel_libsubdir="$(ls /lib/modules | head -1)"; config_dir="/lib/modules/${kernel_libsubdir}/build"; mkdir -p "${config_dir}"; if [ -f /run/live/medium/config ] && [ ! -f "${config_dir}/.config" ]; then ln -s /run/live/medium/config "${config_dir}/.config"; fi;' - kubeadm init --config /tmp/kubeadm.yaml - mkdir -p /opt/metal3-dev-env/ironic/html/images diff --git a/manifests/function/k8scontrol/controlplane.yaml b/manifests/function/k8scontrol/controlplane.yaml index 71d4d264d..ef69a640a 100644 --- a/manifests/function/k8scontrol/controlplane.yaml +++ b/manifests/function/k8scontrol/controlplane.yaml @@ -24,6 +24,7 @@ spec: preKubeadmCommands: # Restart docker to apply any proxy settings - export HOME=/root + - systemctl daemon-reload - systemctl restart docker initConfiguration: nodeRegistration: diff --git a/manifests/site/test-site/target/workers/provision/kubeadmconfigtemplate.yaml b/manifests/site/test-site/target/workers/provision/kubeadmconfigtemplate.yaml index 710d2b096..a5e6cd22c 100644 --- a/manifests/site/test-site/target/workers/provision/kubeadmconfigtemplate.yaml +++ b/manifests/site/test-site/target/workers/provision/kubeadmconfigtemplate.yaml @@ -22,6 +22,7 @@ spec: preKubeadmCommands: # Restart docker to apply any proxy settings - export HOME=/root + - systemctl daemon-reload - systemctl restart docker users: - name: deployer