From ee610de0d53528126ada326813687fbaaa1b7873 Mon Sep 17 00:00:00 2001 From: DAXweb Date: Sat, 31 Jan 2026 12:50:49 +0100 Subject: [PATCH] Commit 0 --- argomanifest/argo.yaml | 26 +++++++ deploy/deployment.yaml | 167 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 193 insertions(+) create mode 100644 argomanifest/argo.yaml create mode 100644 deploy/deployment.yaml diff --git a/argomanifest/argo.yaml b/argomanifest/argo.yaml new file mode 100644 index 0000000..1737031 --- /dev/null +++ b/argomanifest/argo.yaml @@ -0,0 +1,26 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application + +metadata: + name: buttijo-application + namespace: buttijo + +spec: + project: default + + source: + repoURL: https://giteo.pachamama.daxweb.it/admin/buttijo_argocd + targetRevision: HEAD + path: ./deploy + + destination: + server: https://kubernetes.default.svc + namespace: buttijo + + syncPolicy: + syncOptions: + - CreateNamespace=true + + automated: + selfHeal: true + prune: true \ No newline at end of file diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml new file mode 100644 index 0000000..b72f059 --- /dev/null +++ b/deploy/deployment.yaml @@ -0,0 +1,167 @@ +--- +# Source: zaia-backend/templates/service.yaml +apiVersion: v1 +kind: Service +metadata: + name: zaia-backend + namespace: zaia +spec: + ports: + - port: 3000 + targetPort: 3000 + selector: + app: zaia-backend + type: ClusterIP +--- +# Source: zaia-backend/templates/deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: zaia-backend + namespace: zaia +spec: + minReadySeconds: 10 + replicas: 1 + selector: + matchLabels: + app: zaia-backend + strategy: + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + app: zaia-backend + name: zaia-backend + spec: + containers: + - env: + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://otel-opentelemetry-collector:4318 + - name: OTEL_SERVICE_NAME + value: zaia-backend + - name: NODE_ENV + value: production + - name: TEST_ENV + value: pachamama-staging + image: redik.pachamama.daxweb.it/zaia-backend:latest + imagePullPolicy: Always + name: zaia-backend + ports: + - containerPort: 3000 + name: http + resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 250m + memory: 256Mi +--- +# Source: generated-by-postrender-2.yaml +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: zaia-backend-httproute + namespace: zaia +spec: + hostnames: + - zaia.pachamama.daxweb.it + parentRefs: + - name: traefik-gateway + namespace: traefik + rules: + - backendRefs: + - name: zaia-backend + namespace: zaia + port: 3000 + filters: + - type: URLRewrite + urlRewrite: + path: + replacePrefixMatch: / + type: ReplacePrefixMatch + matches: + - path: + type: PathPrefix + value: /api +--- +--- +# Source: zaia-frontend/templates/service.yaml +apiVersion: v1 +kind: Service +metadata: + name: zaia-frontend + namespace: zaia +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: zaia-frontend + type: ClusterIP +--- +# Source: zaia-frontend/templates/deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: zaia-frontend + namespace: zaia +spec: + minReadySeconds: 10 + replicas: 1 + selector: + matchLabels: + app: zaia-frontend + strategy: + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + app: zaia-frontend + name: zaia-frontend + spec: + containers: + - env: + - name: NODE_ENV + value: production + image: redik.pachamama.daxweb.it/zaia-frontend:latest + imagePullPolicy: Always + name: zaia-frontend + ports: + - containerPort: 80 + name: http + resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 250m + memory: 256Mi +--- +# Source: zaia-frontend/templates/service.yaml +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: zaia-frontend-httproute + namespace: zaia +spec: + hostnames: + - zaia.pachamama.daxweb.it + parentRefs: + - name: traefik-gateway + namespace: traefik + rules: + - backendRefs: + - name: zaia-frontend + namespace: zaia + port: 80 + matches: + - path: + type: PathPrefix + value: /