From 4b7a8000e8b6b93bfadc42e3544645f6c29cda94 Mon Sep 17 00:00:00 2001 From: Mattia Mazzucato Date: Thu, 1 Jul 2021 17:05:23 +0200 Subject: [PATCH] helm.yaml: update ci - use ubuntu 20.04 - set nf_conntrack_max to avoid CrashLoopBackOff for kube proxy (see https://github.com/kubernetes-sigs/kind/issues/2240#issuecomment-838510890) - print cluster info as soon as KinD is up - use kind-action v1.4.0 - bump KinD to v0.10.0 Signed-off-by: Mattia Mazzucato --- .github/workflows/helm.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml index 15eb93be..73315ffb 100644 --- a/.github/workflows/helm.yaml +++ b/.github/workflows/helm.yaml @@ -23,7 +23,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - name: Fetch history @@ -44,9 +44,14 @@ jobs: if [[ -n "$changed" ]]; then echo "::set-output name=changed::true" fi - - uses: container-tools/kind-action@v1 + - name: Set nf_conntrack_max value + # This step is required to avoid CrashLoopBackOff for kube-proxy + # see https://github.com/kubernetes-sigs/kind/issues/2240#issuecomment-838510890 + run: | + sudo sysctl net/netfilter/nf_conntrack_max=131072 + - uses: container-tools/kind-action@v1.4.0 with: - version: "v0.8.1" + version: "v0.10.0" node_image: "kindest/node:v1.18.2@sha256:7b27a6d0f2517ff88ba444025beae41491b016bc6af573ba467b70c5e8e0d85f" - name: Build test image run: | @@ -61,6 +66,9 @@ jobs: run: | kubectl cluster-info kubectl get pods -n kube-system + - name: Dump cluster info + run: | + kubectl cluster-info dump - name: Install cert-manager chart as dependency run: | kubectl create namespace cert-manager