fix actions

This commit is contained in:
2026-05-13 09:10:47 +02:00
parent a281d9cce9
commit d7ae020130
15 changed files with 327 additions and 1 deletions

View 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"

View 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