You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2022/06/29 16:53:24 UTC
[flink] branch release-1.15 updated: [FLINK-28269][Kubernetes] Install cri-dockerd and crictl so that we can continue to use Kubernetes 1.24+ and the `none` driver, since Kubernetes 1.24 has dropped support for Dockershim.
This is an automated email from the ASF dual-hosted git repository.
martijnvisser pushed a commit to branch release-1.15
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.15 by this push:
new 82953560041 [FLINK-28269][Kubernetes] Install cri-dockerd and crictl so that we can continue to use Kubernetes 1.24+ and the `none` driver, since Kubernetes 1.24 has dropped support for Dockershim.
82953560041 is described below
commit 82953560041636f397bc30d47d2312a00349b2b5
Author: MartijnVisser <ma...@apache.org>
AuthorDate: Wed Jun 29 11:39:19 2022 +0200
[FLINK-28269][Kubernetes] Install cri-dockerd and crictl so that we can continue to use Kubernetes 1.24+ and the `none` driver, since Kubernetes 1.24 has dropped support for Dockershim.
---
.../test-scripts/common_kubernetes.sh | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/flink-end-to-end-tests/test-scripts/common_kubernetes.sh b/flink-end-to-end-tests/test-scripts/common_kubernetes.sh
index 00585205074..fc5a10a45f3 100755
--- a/flink-end-to-end-tests/test-scripts/common_kubernetes.sh
+++ b/flink-end-to-end-tests/test-scripts/common_kubernetes.sh
@@ -50,6 +50,25 @@ function setup_kubernetes_for_linux {
fi
# conntrack is required for minikube 1.9 and later
sudo apt-get install conntrack
+ # crictl is required for cri-dockerd
+ VERSION="v1.24.2"
+ wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/crictl-$VERSION-linux-amd64.tar.gz
+ sudo tar zxvf crictl-$VERSION-linux-amd64.tar.gz -C /usr/local/bin
+ rm -f crictl-$VERSION-linux-amd64.tar.gz
+ # cri-dockerd is required to use Kubernetes 1.24+ and the none driver
+ git clone https://github.com/Mirantis/cri-dockerd.git
+ cd cri-dockerd
+ # Checkout version 0.2.3
+ git checkout tags/v0.2.3 -b v0.2.3
+ mkdir bin
+ go get && go build -o bin/cri-dockerd
+ mkdir -p /usr/local/bin
+ sudo install -o root -g root -m 0755 bin/cri-dockerd /usr/local/bin/cri-dockerd
+ sudo cp -a packaging/systemd/* /etc/systemd/system
+ sudo sed -i -e 's,/usr/bin/cri-dockerd,/usr/local/bin/cri-dockerd,' /etc/systemd/system/cri-docker.service
+ sudo systemctl daemon-reload
+ sudo systemctl enable cri-docker.service
+ sudo systemctl enable --now cri-docker.socket
# required to resolve HOST_JUJU_LOCK_PERMISSION error of "minikube start --vm-driver=none"
sudo sysctl fs.protected_regular=0
}