File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88jobs :
99 test-on-minikube :
10- runs-on : ubuntu-22.04 # 👈 More stable than 24.04
10+ runs-on : ubuntu-22.04
1111
1212 steps :
1313 - name : Checkout code
1717 run : |
1818 curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
1919 sudo install minikube-linux-amd64 /usr/local/bin/minikube
20- curl -LO "https://dl.k8s.io/release/$(curl -L - s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
20+ curl -LO "https://dl.k8s.io/release/$(curl -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
2121 chmod +x kubectl
2222 sudo mv kubectl /usr/local/bin/
2323
3030 - name : Apply Kubernetes manifests
3131 run : |
3232 kubectl apply -f k8s/
33- kubectl rollout status deployment/hello-app
33+ echo "Waiting for deployment rollout..."
34+ kubectl rollout status deployment/hello-app || (kubectl describe deployment hello-app && kubectl get pods && kubectl describe pods && exit 1)
3435 kubectl get all
3536
3637 - name : Stop Minikube
Original file line number Diff line number Diff line change 1313 app : hello-app
1414 spec :
1515 containers :
16- - name : hello-container
17- image : k8s.gcr.io/echoserver:1.4
16+ - name : hello-app
17+ image : nginx # Use a known public image
1818 ports :
19- - containerPort : 8080
19+ - containerPort : 80
Original file line number Diff line number Diff line change 88 ports :
99 - protocol : TCP
1010 port : 80
11- targetPort : 8080
12- type : ClusterIP
11+ targetPort : 80
You can’t perform that action at this time.
0 commit comments