feat: update generated configs and environment files

- Regenerate all environment-specific config files with unified config
- Update Vite environment files for all environments (dev/staging/prod)
- Update Docker environment files with current configuration
- Update Kubernetes config.env files for development and production
- Add staging environment configurations and overlays
- Ensures all generated files reflect unified configuration system
This commit is contained in:
William Valentin
2025-09-08 20:44:19 -07:00
parent b81f9b2970
commit 8e1456d52b
12 changed files with 281 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
# Kubernetes configuration for development
# Generated automatically from unified configuration
# Generated on: 2025-09-08T16:32:25.389Z
# Generated on: 2025-09-09T03:27:30.598Z
APP_NAME=rxminder
APP_VERSION=1.0.0
@@ -15,7 +15,7 @@ USE_MOCK_DB=false
KUBERNETES_NAMESPACE=rxminder-dev
INGRESS_HOST=rxminder.192.168.153.243.nip.io
INGRESS_CLASS=nginx
CERT_MANAGER_ISSUER=letsencrypt-prod
CERT_MANAGER_ISSUER=selfsigned
STORAGE_CLASS=longhorn
STORAGE_SIZE=1Gi
ENABLE_EMAIL_VERIFICATION=true

View File

@@ -1,6 +1,6 @@
# Kubernetes configuration for production
# Generated automatically from unified configuration
# Generated on: 2025-09-08T16:25:25.055Z
# Generated on: 2025-09-09T03:27:30.604Z
APP_NAME=rxminder
APP_VERSION=1.0.0
@@ -27,10 +27,10 @@ DEBUG_MODE=true
LOG_LEVEL=debug
LOG_FORMAT=json
CACHE_TTL=3600
REQUEST_TIMEOUT=30000
REQUEST_TIMEOUT=120000
MAX_CONNECTIONS=200
ENABLE_CORS=true
CORS_ORIGIN=*
CORS_ORIGIN=https://rxminder.com
FRONTEND_REPLICAS=3
DATABASE_REPLICAS=1
FRONTEND_MEMORY_REQUEST=256Mi

View File

@@ -0,0 +1,43 @@
# Kubernetes configuration for staging
# Generated automatically from unified configuration
# Generated on: 2025-09-09T03:27:30.602Z
APP_NAME=rxminder
APP_VERSION=1.0.0
NODE_ENV=staging
APP_BASE_URL=rxminder.192.168.153.243.nip.io
PORT=5173
COUCHDB_URL=http://rxminder-couchdb-service:5984
COUCHDB_USER=admin
COUCHDB_PASSWORD=L7tfqHyg0T4sIYiWK
COUCHDB_DATABASE_NAME=meds_app
USE_MOCK_DB=false
KUBERNETES_NAMESPACE=rxminder-staging
INGRESS_HOST=rxminder.192.168.153.243.nip.io
INGRESS_CLASS=nginx
CERT_MANAGER_ISSUER=letsencrypt-staging
STORAGE_CLASS=longhorn
STORAGE_SIZE=1Gi
ENABLE_EMAIL_VERIFICATION=true
ENABLE_OAUTH=true
ENABLE_ADMIN_INTERFACE=true
ENABLE_MONITORING=false
ENABLE_METRICS=false
DEBUG_MODE=true
LOG_LEVEL=debug
LOG_FORMAT=json
CACHE_TTL=1800
REQUEST_TIMEOUT=60000
MAX_CONNECTIONS=150
ENABLE_CORS=true
CORS_ORIGIN=https://staging.rxminder.com
FRONTEND_REPLICAS=2
DATABASE_REPLICAS=1
FRONTEND_MEMORY_REQUEST=256Mi
FRONTEND_CPU_REQUEST=100m
FRONTEND_MEMORY_LIMIT=512Mi
FRONTEND_CPU_LIMIT=500m
DATABASE_MEMORY_REQUEST=512Mi
DATABASE_CPU_REQUEST=200m
DATABASE_MEMORY_LIMIT=1Gi
DATABASE_CPU_LIMIT=1000m

View File

@@ -0,0 +1,73 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: rxminder-staging
# Reference the base configuration
resources:
- ../../base
- namespace.yaml
# Override namespace for staging
namespace: rxminder-staging
# Staging-specific labels
labels:
- pairs:
environment: staging
tier: staging
# Staging image tags and configurations
images:
- name: frontend-image
newName: gitea-http.taildb3494.ts.net/will/meds
newTag: latest
- name: couchdb-image
newName: couchdb
newTag: 3.3.2
# Staging replicas
replicas:
- name: rxminder-frontend
count: 2
- name: rxminder-couchdb
count: 1
# Environment-specific patches
patches:
# Resource limits
- target:
kind: Deployment
name: rxminder-frontend
patch: |-
- op: replace
path: /spec/template/spec/containers/0/resources
value:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
- target:
kind: StatefulSet
name: rxminder-couchdb
patch: |-
- op: replace
path: /spec/template/spec/containers/0/resources
value:
requests:
memory: "512Mi"
cpu: "200m"
limits:
memory: "1Gi"
cpu: "1000m"
# ConfigMap generation
configMapGenerator:
- name: rxminder-config
envs:
- config.env
behavior: create