From b54b387a8f5f1244b1ebe0d6c035654fb1664853 Mon Sep 17 00:00:00 2001 From: edgar4all Date: Mon, 8 Jan 2024 21:26:33 -0300 Subject: [PATCH] argocd tenia estos archivos en el raiz, pero al tratar de crear la app de argocd, me trata de interpretar package.json que es del projecto de react y explota. --- argocd/deployment.yaml | 27 +++++++++++++++++++++++++++ argocd/ns.yaml | 6 ++++++ 2 files changed, 33 insertions(+) create mode 100644 argocd/deployment.yaml create mode 100644 argocd/ns.yaml diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml new file mode 100644 index 0000000..6bf6d16 --- /dev/null +++ b/argocd/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: react-todo-list + namespace: nstodolist + labels: + app: react-todo-list +spec: + replicas: 2 + selector: + matchLabels: + app: react-todo-list + strategy: + type: RollingUpdate # Update strategy + rollingUpdate: + maxSurge: 1 # MaxPods adicionales cuando updeteamos + maxUnavailable: 0 + template: + metadata: + labels: + app: react-todo-list + spec: + containers: + - name: website + image: edgar4all/react-todo-list:3 + ports: + - containerPort: 3000 \ No newline at end of file diff --git a/argocd/ns.yaml b/argocd/ns.yaml new file mode 100644 index 0000000..cf00f44 --- /dev/null +++ b/argocd/ns.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: nstodolist + labels: + kname: nstodolist \ No newline at end of file