From a5958171569b73bd9e82815e160c09c68d1d6e0b Mon Sep 17 00:00:00 2001 From: Samy CHBINOU Date: Wed, 31 Jan 2024 15:09:22 +0100 Subject: [PATCH] Update nginx.yml --- .github/workflows/nginx.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index 587e6e8935..1a47908762 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -76,11 +76,10 @@ jobs: - name: Deploy nginx run: | - kubectl run nginx-app --image=nginx --port=80 + kubectl create deployment nginx --image=nginx kubectl wait pod --all --for=condition=Ready - kubectl get pods - kubectl expose deployment nginx-app --type=NodePort - kubectl describe services nginx-app + kubectl expose deployment nginx --type=LoadBalancer --port=8080 + kubectl describe services nginx - name: Export logs if: always()