Skip to content

Commit

Permalink
Merge pull request #829 from praveenkumar/remove_route
Browse files Browse the repository at this point in the history
Remove crc-dnsmasq container and run dnsmasq directly on vm
  • Loading branch information
praveenkumar authored Jan 11, 2024
2 parents 45082f0 + 35fce67 commit 0d0b75a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions build-patched-kao-kcmo-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export LANG=C.UTF-8

rm -fr crc-cluster-kube-apiserver-operator
rm -fr crc-cluster-kube-controller-manager-operator
rm -fr crc-dnsmasq
rm -fr crc-routes-controller

readonly OCP_VERSION=4.14
Expand Down Expand Up @@ -167,5 +166,4 @@ fi

base_image=$(grep "^FROM openshift/ose-base" crc-cluster-kube-apiserver-operator/Dockerfile | sed 's/^FROM //')

update_base_image crc-dnsmasq "${base_image}"
update_base_image crc-routes-controller "${base_image}"
7 changes: 2 additions & 5 deletions createdisk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,14 @@ fi
prepare_qemu_guest_agent ${VM_IP}

image_tag="latest"
if podman manifest inspect quay.io/crcont/dnsmasq:${OPENSHIFT_VERSION} >/dev/null 2>&1; then
if podman manifest inspect quay.io/crcont/routes-controller:${OPENSHIFT_VERSION} >/dev/null 2>&1; then
image_tag=${OPENSHIFT_VERSION}
fi

# Add gvisor-tap-vsock and crc-dnsmasq services
# Add gvisor-tap-vsock service
${SSH} core@${VM_IP} 'sudo bash -x -s' <<EOF
podman create --name=gvisor-tap-vsock --privileged --net=host -v /etc/resolv.conf:/etc/resolv.conf -it quay.io/crcont/gvisor-tap-vsock:latest
podman generate systemd --restart-policy=no gvisor-tap-vsock > /etc/systemd/system/gvisor-tap-vsock.service
touch /var/srv/dnsmasq.conf
podman create --ip 10.88.0.8 --name crc-dnsmasq -v /var/srv/dnsmasq.conf:/etc/dnsmasq.conf -p 53:53/udp --privileged quay.io/crcont/dnsmasq:${image_tag}
podman generate systemd --restart-policy=no crc-dnsmasq > /etc/systemd/system/crc-dnsmasq.service
systemctl daemon-reload
systemctl enable gvisor-tap-vsock.service
EOF
Expand Down

0 comments on commit 0d0b75a

Please sign in to comment.