Skip to content

Commit

Permalink
Update nginx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chbinousamy authored Jan 31, 2024
1 parent 30a4716 commit c4d7e63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ jobs:
- name: Deploy nginx
run: |
kubectl create deployment nginx --image=nginx
kubectl create deployment nginx --image=nginx --replicas=3
kubectl wait pod --all --for=condition=Ready -n default
kubectl expose deployment nginx --port=80 --target-port=8000 --name=nginx --type=LoadBalancer
kubectl get pods
kubectl get services
kubectl describe services nginx
curl -m 5 $(kubectl get services | grep nginx | awk '{ print $3 }'):80
curl -m 5 $(kubectl get services | grep nginx | awk '{ print $4 }'):80
- name: Export logs
if: always()
Expand Down

0 comments on commit c4d7e63

Please sign in to comment.