Skip to content

Commit

Permalink
add networkManager to disable dhcp on vfs
Browse files Browse the repository at this point in the history
disable dhcp on vfs for vanilly k8s CI.
if we don't disable it the device plugin will not use this devices

Signed-off-by: Sebastian Sch <[email protected]>
  • Loading branch information
SchSeba committed Oct 5, 2023
1 parent 3241c2f commit 41774fb
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions hack/run-e2e-conformance-virtual-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,24 +126,38 @@ cat << EOF > /etc/containers/registries.conf.d/003-${cluster_name}.conf
$insecure_registry
EOF

kcli ssh $cluster_name-ctlplane-0 << EOF
function update_host() {
node_name=$1
kcli ssh $node_name << EOF
sudo su
echo '$insecure_registry' > /etc/containers/registries.conf.d/003-internal.conf
systemctl restart crio
EOF
kcli ssh $cluster_name-worker-0 << EOF
sudo su
echo '$insecure_registry' > /etc/containers/registries.conf.d/003-internal.conf
systemctl restart crio
EOF
echo '[connection]
id=multi
type=ethernet
[ethernet]
[match]
driver=igbvf;
[ipv4]
method=disabled
[ipv6]
addr-gen-mode=default
method=disabled
[proxy]' > /etc/NetworkManager/system-connections/multi.nmconnection
chmod 600 /etc/NetworkManager/system-connections/multi.nmconnection
systemctl restart NetworkManager
kcli ssh $cluster_name-worker-1 << EOF
sudo su
echo '$insecure_registry' > /etc/containers/registries.conf.d/003-internal.conf
systemctl restart crio
EOF

}

update_host $cluster_name-ctlplane-0
update_host $cluster_name-worker-0
update_host $cluster_name-worker-1


kubectl create namespace container-registry

echo "## deploy internal registry"
Expand Down

0 comments on commit 41774fb

Please sign in to comment.