From 485fe2258c1991d290778b45a908f3d471730305 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Wed, 19 Aug 2020 15:00:45 +0200 Subject: [PATCH] improve podman ci --- .github/workflows/podman.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/podman.yml b/.github/workflows/podman.yml index 5afc7185a8..dc7d22b7d6 100644 --- a/.github/workflows/podman.yml +++ b/.github/workflows/podman.yml @@ -34,6 +34,17 @@ jobs: - name: Install kind run: sudo make install INSTALL_DIR=/usr/local/bin + - name: Install kubectl + run: | + curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl + chmod +x ./kubectl + sudo mv ./kubectl /usr/local/bin/kubectl + + - name: Enable ipv4 and ipv6 forwarding + run: | + sudo sysctl -w net.ipv6.conf.all.forwarding=1 + sudo sysctl -w net.ipv4.ip_forward=1 + - name: Install podman run: | . /etc/os-release @@ -87,6 +98,12 @@ jobs: - role: worker EOF + - name: Get Cluster status + run: | + sudo kubectl get nodes -o wide + sudo kubectl get pods -A + continue-on-error: true + # TODO: implement this - name: Load docker image run: sudo KIND_EXPERIMENTAL_PROVIDER=podman kind load docker-image busybox:2