fix actions
This commit is contained in:
26
deploy/overlays/production/deployment.yaml
Normal file
26
deploy/overlays/production/deployment.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
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"
|
||||
|
||||
24
deploy/overlays/production/kustomization.yaml
Normal file
24
deploy/overlays/production/kustomization.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
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-6017ea9
|
||||
- name: election-migration
|
||||
newName: reg.milasholsting.dk/vhsmp/election-migrator
|
||||
newTag: sha-6017ea9
|
||||
Reference in New Issue
Block a user