From 3ec096a7dffa9f9bb6cf09dcc5f100beea2169cf Mon Sep 17 00:00:00 2001 From: Quang Pham Date: Sun, 29 Oct 2023 09:42:40 +0100 Subject: [PATCH] use kubectl apply --- .github/workflows/deploy.yml | 2 +- eks/install.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 eks/install.sh diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 89944829..f3035135 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -49,7 +49,7 @@ jobs: - name: Deploy image to Amazon EKS run: | kubectl apply -f eks/aws-auth.yaml - kubectl rollout restart -f eks/deployment.yaml + kubectl apply -f eks/deployment.yaml kubectl apply -f eks/service.yaml kubectl apply -f eks/issuer.yaml kubectl apply -f eks/ingress.yaml diff --git a/eks/install.sh b/eks/install.sh new file mode 100644 index 00000000..6a02f9dd --- /dev/null +++ b/eks/install.sh @@ -0,0 +1,2 @@ +kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.2/deploy/static/provider/aws/deploy.yaml +kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.1/cert-manager.yaml