This is an automated email from the ASF dual-hosted git repository.
karan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 48cf745f9a7 Fixing "integration-k8s-leadership-tests" (#18299)
48cf745f9a7 is described below
commit 48cf745f9a766aa9a967b124921140c455f00295
Author: Karan Kumar <[email protected]>
AuthorDate: Mon Jul 21 15:14:27 2025 +0530
Fixing "integration-k8s-leadership-tests" (#18299)
There was a Cgroup mismatch issue:
Docker was using : systemd where as the older version of K3s (v1.21) and
kubectl defaults to cgroupfs.
Hence:
updated both kubectl and k3s to the latest version.
updated setup_k8s_cluster.sh for easier debugging.
---
integration-tests/script/setup_k8s_cluster.sh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/integration-tests/script/setup_k8s_cluster.sh
b/integration-tests/script/setup_k8s_cluster.sh
index 98886f2befc..9439ca97cbe 100755
--- a/integration-tests/script/setup_k8s_cluster.sh
+++ b/integration-tests/script/setup_k8s_cluster.sh
@@ -17,12 +17,17 @@
set -e
set -x
-export INSTALL_K3S_VERSION=v1.21.14+k3s1
+export INSTALL_K3S_VERSION=v1.33.2+k3s1
export KUBECONFIG=$HOME/.kube/config
# Launch K8S cluster
-curl -Lo kubectl
https://storage.googleapis.com/kubernetes-release/release/v1.18.1/bin/linux/amd64/kubectl
&& chmod +x kubectl && sudo mv kubectl /usr/local/bin/
-curl -sfL https://get.k3s.io | bash /dev/stdin --docker
+curl -Lo kubectl https://dl.k8s.io/release/v1.33.0/bin/linux/amd64/kubectl &&
chmod +x kubectl && sudo mv kubectl /usr/local/bin/
+
+## Errors are usually found in journalctl logs, hence we use `|| true` to
avoid script failure
+curl -sfL https://get.k3s.io | bash /dev/stdin --docker || true
+systemctl status k3s.service || true
+journalctl -u k3s.service
+
mkdir -p $HOME/.kube
sudo cp /etc/rancher/k3s/k3s.yaml $KUBECONFIG
sudo chmod 777 $KUBECONFIG
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]