Skip to content

Commit

Permalink
kubeadm: use both cni dirs with crio
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Apr 26, 2024
1 parent e616d9a commit 6bafce1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kvirt/cluster/kubeadm/pre_el.sh
Expand Up @@ -40,6 +40,10 @@ gpgcheck=1
gpgkey=https://pkgs.k8s.io/addons:/cri-o:/$PROJECT_PATH/rpm/repodata/repomd.xml.key""" >/etc/yum.repos.d/cri-o.repo
dnf -y install container-selinux cri-o conntrack
sed -i 's@conmon = .*@conmon = "/bin/conmon"@' /etc/crio/crio.conf
echo """[crio.network]
plugin_dirs = [
"/opt/cni/bin/", "/usr/libexec/cni"
]""" > /etc/crio/crio.conf.d/00-plugin-dir.conf
{% if HTTP_PROXY is defined %}
mkdir /etc/systemd/system/crio.service.d
cat > /etc/systemd/system/crio.service.d/http_proxy.conf << EOF
Expand Down
4 changes: 4 additions & 0 deletions kvirt/cluster/kubeadm/pre_ubuntu.sh
Expand Up @@ -30,6 +30,10 @@ echo "deb [signed-by=/etc/apt/keyrings/cri-o-apt-keyring.gpg] https://pkgs.k8s.i
apt-get update
apt-get -y install cri-o cri-o-runc software-properties-common
sed -i 's@conmon = .*@conmon = "/bin/conmon"@' /etc/crio/crio.conf
echo """[crio.network]
plugin_dirs = [
"/opt/cni/bin/", "/usr/libexec/cni"
]""" > /etc/crio/crio.conf.d/00-plugin-dir.conf
{% if HTTP_PROXY is defined %}
mkdir /etc/systemd/system/crio.service.d
cat > /etc/systemd/system/crio.service.d/http_proxy.conf << EOF
Expand Down

0 comments on commit 6bafce1

Please sign in to comment.