diff --git a/argocd/deploy/deployment.yaml b/argocd/deploy/deployment.yaml index d563575..c7213a5 100644 --- a/argocd/deploy/deployment.yaml +++ b/argocd/deploy/deployment.yaml @@ -43,21 +43,21 @@ spec: - name: OTEL_SERVICE_NAME value: zaia-backend - name: NODE_ENV - value: development + value: production - name: TEST_ENV - value: pachamama trionfa - image: redik.pachamama.daxweb.it/zaia-backend:002fdca - imagePullPolicy: Never + value: pachamama-production + image: redik.pachamama.daxweb.it/zaia-backend:98ca8d2 + imagePullPolicy: Always name: zaia-backend ports: - containerPort: 3000 name: http resources: limits: - cpu: 200m - memory: 256Mi + cpu: 500m + memory: 512Mi requests: - cpu: 200m + cpu: 250m memory: 256Mi --- # Source: generated-by-postrender-2.yaml @@ -68,7 +68,7 @@ metadata: namespace: zaia spec: hostnames: - - work-cluster.local + - zaia.pachamama.daxweb.it parentRefs: - name: traefik-gateway namespace: traefik @@ -97,8 +97,8 @@ metadata: namespace: zaia spec: ports: - - port: 5173 - targetPort: 5173 + - port: 80 + targetPort: 80 selector: app: zaia-frontend type: ClusterIP @@ -129,19 +129,19 @@ spec: containers: - env: - name: NODE_ENV - value: development - image: redik.pachamama.daxweb.it/zaia-frontend:002fdca - imagePullPolicy: Never + value: production + image: redik.pachamama.daxweb.it/zaia-frontend:98ca8d2 + imagePullPolicy: Always name: zaia-frontend ports: - containerPort: 80 name: http resources: limits: - cpu: 200m - memory: 256Mi + cpu: 500m + memory: 512Mi requests: - cpu: 200m + cpu: 250m memory: 256Mi --- # Source: zaia-frontend/templates/service.yaml @@ -152,7 +152,7 @@ metadata: namespace: zaia spec: hostnames: - - work-cluster.local + - zaia.pachamama.daxweb.it parentRefs: - name: traefik-gateway namespace: traefik @@ -160,7 +160,7 @@ spec: - backendRefs: - name: zaia-frontend namespace: zaia - port: 5173 + port: 80 matches: - path: type: PathPrefix diff --git a/argomanifest/argo.yaml b/argomanifest/argo.yaml deleted file mode 100644 index 48afc91..0000000 --- a/argomanifest/argo.yaml +++ /dev/null @@ -1,26 +0,0 @@ -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 deleted file mode 100644 index d563575..0000000 --- a/deploy/deployment.yaml +++ /dev/null @@ -1,167 +0,0 @@ ---- -# 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: development - - name: TEST_ENV - value: pachamama trionfa - image: redik.pachamama.daxweb.it/zaia-backend:002fdca - imagePullPolicy: Never - name: zaia-backend - ports: - - containerPort: 3000 - name: http - resources: - limits: - cpu: 200m - memory: 256Mi - requests: - cpu: 200m - 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: - - work-cluster.local - 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: 5173 - targetPort: 5173 - 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: development - image: redik.pachamama.daxweb.it/zaia-frontend:002fdca - imagePullPolicy: Never - name: zaia-frontend - ports: - - containerPort: 80 - name: http - resources: - limits: - cpu: 200m - memory: 256Mi - requests: - cpu: 200m - 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: - - work-cluster.local - parentRefs: - - name: traefik-gateway - namespace: traefik - rules: - - backendRefs: - - name: zaia-frontend - namespace: zaia - port: 5173 - matches: - - path: - type: PathPrefix - value: /