remove preview env
This commit is contained in:
@@ -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"
|
|
||||||
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user