b5bcfb533b
When multiple Connect-enabled task groups start on the same client node, a race condition in the CNI plugins for creating iptables chains causes one of the tasks to fail. We upstreamed a patch to CNI plugins to make iptables chain creation idempotent. This changeset updates end-to-end testing, development tooling, and documentation to use 0.8.4 which includes our patch.
21 lines
456 B
Bash
Executable file
21 lines
456 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
|
|
VERSION="v0.8.4"
|
|
DOWNLOAD=https://github.com/containernetworking/plugins/releases/download/${VERSION}/cni-plugins-linux-amd64-${VERSION}.tgz
|
|
TARGET_DIR=/opt/cni/bin
|
|
|
|
function install_cni() {
|
|
mkdir -p ${TARGET_DIR}
|
|
if [[ -e ${TARGET_DIR}/${VERSION} ]] ; then
|
|
return
|
|
fi
|
|
|
|
wget -q -O /tmp/cni-plugins.tar.gz ${DOWNLOAD}
|
|
tar -xf /tmp/cni-plugins.tar.gz -C ${TARGET_DIR}
|
|
touch ${TARGET_DIR}/${VERSION}
|
|
}
|
|
|
|
install_cni
|