mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-04-05 09:10:46 +00:00
.gitea/workflows/e2e.yml aktualisiert
This commit is contained in:
@ -17,7 +17,11 @@ jobs:
|
|||||||
# Install kubectl
|
# Install kubectl
|
||||||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/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/
|
install kubectl /usr/local/bin/
|
||||||
|
|
||||||
|
- name: Delete Kind Cluster
|
||||||
|
run: |
|
||||||
|
kind delete cluster --name test-cluster-2
|
||||||
|
|
||||||
- name: Debug All
|
- name: Debug All
|
||||||
run: |
|
run: |
|
||||||
docker ps -a
|
docker ps -a
|
||||||
@ -26,7 +30,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Create kind cluster
|
- name: Create kind cluster
|
||||||
run: |
|
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
|
- name: Attach kind control-plane to job network and wait
|
||||||
run: |
|
run: |
|
||||||
@ -62,6 +75,17 @@ jobs:
|
|||||||
kubectl get nodes
|
kubectl get nodes
|
||||||
kubectl get pods -A
|
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
|
- name: Debug All
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user