Execute systemctl daemon-reload to update docker unit proxy settings

Change-Id: Ifeaade1976d935b1f8026a723981b3f3e03d37bc
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Andrii Ostapenko 2021-03-01 14:00:10 -06:00
parent 27b94cbd1b
commit 8e341b4e83
No known key found for this signature in database
GPG Key ID: F3E83668DBB223B3
3 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,8 @@ stringData:
gecos: deployer gecos: deployer
ssh_pwauth: True ssh_pwauth: True
runcmd: 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;' - /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 - kubeadm init --config /tmp/kubeadm.yaml
- mkdir -p /opt/metal3-dev-env/ironic/html/images - mkdir -p /opt/metal3-dev-env/ironic/html/images

View File

@ -24,6 +24,7 @@ spec:
preKubeadmCommands: preKubeadmCommands:
# Restart docker to apply any proxy settings # Restart docker to apply any proxy settings
- export HOME=/root - export HOME=/root
- systemctl daemon-reload
- systemctl restart docker - systemctl restart docker
initConfiguration: initConfiguration:
nodeRegistration: nodeRegistration:

View File

@ -22,6 +22,7 @@ spec:
preKubeadmCommands: preKubeadmCommands:
# Restart docker to apply any proxy settings # Restart docker to apply any proxy settings
- export HOME=/root - export HOME=/root
- systemctl daemon-reload
- systemctl restart docker - systemctl restart docker
users: users:
- name: deployer - name: deployer