From 98a77049cd216eb43c4666a74acab14ae8f3ab57 Mon Sep 17 00:00:00 2001 From: Milas Holsting Date: Wed, 13 May 2026 11:02:11 +0200 Subject: [PATCH] remove preview env --- deploy/overlays/preview/deployment.yaml | 26 ---------------------- deploy/overlays/preview/kustomization.yaml | 21 ----------------- 2 files changed, 47 deletions(-) delete mode 100644 deploy/overlays/preview/deployment.yaml delete mode 100644 deploy/overlays/preview/kustomization.yaml diff --git a/deploy/overlays/preview/deployment.yaml b/deploy/overlays/preview/deployment.yaml deleted file mode 100644 index 6f4721c..0000000 --- a/deploy/overlays/preview/deployment.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: election # Must match the name in base/ -spec: - replicas: 2 # Scale up for production - template: - spec: - containers: - - name: election # This name must match base EXACTLY - ports: # Adding this back into the patch solves the diff - - containerPort: 3000 - name: election - # Production-specific resource limits - resources: - limits: - cpu: "1" - memory: "1Gi" - requests: - cpu: "500m" - memory: "512Mi" - # Adding a production-only environment variable - env: - - name: NODE_ENV - value: "production" - diff --git a/deploy/overlays/preview/kustomization.yaml b/deploy/overlays/preview/kustomization.yaml deleted file mode 100644 index a095317..0000000 --- a/deploy/overlays/preview/kustomization.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -# 1. Point to the base manifests -resources: -- ../../base - -# 2. Apply the production-specific changes -patches: -- path: deployment.yaml - target: - kind: Deployment - name: election - -# 4. Change the namespace for this overlay -namespace: vhsmp - -#images: -#- name: election -# newName: reg.milasholsting.dk/vhsmp/election -# newTag: sha-15f1270