From c4d7e6334fd45415e19f1751ab4d02200a26723c Mon Sep 17 00:00:00 2001 From: Samy CHBINOU Date: Wed, 31 Jan 2024 18:02:01 +0100 Subject: [PATCH] Update nginx.yml --- .github/workflows/nginx.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index c4a1dcee70..3ddd96f52f 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -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()