feat: Configure production deployment with math-tables namespace and ingress
Changes made: - Remove problematic configuration-snippet from base ingress - Add namespace creation for math-tables - Configure ingress with nginx class and letsencrypt-prod issuer - Set production hostname to math-tables.cl1.parano.ch - Reduce production replicas to 1 - Update copyright year in index.html
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: math-exercises-app
|
||||
annotations:
|
||||
# Development environment annotation
|
||||
environment: development
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: math-exercises
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: development
|
||||
- name: DEBUG
|
||||
value: "false"
|
||||
# Reduce resource consumption in development
|
||||
resources:
|
||||
requests:
|
||||
memory: "32Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "64Mi"
|
||||
cpu: "200m"
|
||||
@@ -0,0 +1,20 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
|
||||
# Development-specific patches
|
||||
patchesStrategicMerge:
|
||||
- deployment-patch.yaml
|
||||
|
||||
# Development-specific configurations
|
||||
images:
|
||||
- name: math-exercises
|
||||
newName: math-exercises
|
||||
newTag: dev-latest
|
||||
|
||||
# Development-specific labels
|
||||
commonLabels:
|
||||
environment: development
|
||||
security-level: standard
|
||||
Reference in New Issue
Block a user