diff --git a/.gitea/workflows/e2e.yml b/.gitea/workflows/e2e.yml index 99cd054..b492afe 100644 --- a/.gitea/workflows/e2e.yml +++ b/.gitea/workflows/e2e.yml @@ -17,7 +17,11 @@ jobs: # Install kubectl curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" install kubectl /usr/local/bin/ - + + - name: Delete Kind Cluster + run: | + kind delete cluster --name test-cluster-2 + - name: Debug All run: | docker ps -a @@ -26,7 +30,16 @@ jobs: - name: Create kind cluster run: | - kind create cluster --name test-cluster-2 + tail -f cluster.yml << 'EOF' + # three node (two workers) cluster config + kind: Cluster + apiVersion: kind.x-k8s.io/v1alpha4 + nodes: + - role: control-plane + - role: worker + - role: worker + EOF + kind create cluster --name test-cluster-2 --config cluster.yml - name: Attach kind control-plane to job network and wait run: | @@ -62,6 +75,17 @@ jobs: kubectl get nodes kubectl get pods -A + - name: Debug All + if: always() + run: | + docker ps -a + docker network ls + docker volume ls + + - name: Delete Kind Cluster + run: | + kind delete cluster --name test-cluster-2 + - name: Debug All if: always() run: |