Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nameservers: Use nmcli to update the nameserver and search info
From 4.15, because of ovn-kubernetes the info around nameserver and search option in the `/etc/resolv.conf` not match with user expectation. `ovs-configuration` service is run on this node which is a dependency for kubelet and this make changes in the networking by creating bridge network and restarting the NetworkManager. As soon as NM restart happen, changes which are done as part of crc vm post start are vanished. This PR is going to make sure that changes are done using `nmcli` and shouldn't removed when NM restart happen. Following steps are done in this PR - Start the `ovs-configuration` service, even it is enabled it doesn't autostart because it only required by `kubelet-dependencies.target`. - `ovs-configuration` service always create the network named as `ovs-if-br-ex` so we run the nmcli command to update this connection and add the nameserver and search option - Restart the NM to update the /etc/resolv.conf
- Loading branch information