- Created complete Helm chart with deployments, services, and ingress - Added support for both web frontend and API backend components - Included autoscaling (HPA) for both components - Added pod disruption budgets for high availability - Configured security contexts and best practices - Created helper templates and configuration management - Added production and development value files - Included comprehensive README with installation instructions
72 lines
1.2 KiB
YAML
72 lines
1.2 KiB
YAML
# Production environment values for api7ee
|
|
# This file contains production-specific configuration overrides
|
|
|
|
global:
|
|
imageRegistry: "registry.commandware.com"
|
|
imagePullSecrets:
|
|
- name: registry-secret
|
|
|
|
web:
|
|
replicaCount: 3
|
|
|
|
image:
|
|
tag: "v1.0.0" # Use specific version in production
|
|
pullPolicy: Always
|
|
|
|
resources:
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
requests:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
|
|
autoscaling:
|
|
enabled: true
|
|
minReplicas: 3
|
|
maxReplicas: 15
|
|
|
|
api:
|
|
replicaCount: 5
|
|
|
|
image:
|
|
tag: "v1.0.0" # Use specific version in production
|
|
pullPolicy: Always
|
|
|
|
resources:
|
|
limits:
|
|
cpu: 2000m
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
|
|
autoscaling:
|
|
enabled: true
|
|
minReplicas: 5
|
|
maxReplicas: 30
|
|
|
|
env:
|
|
- name: LOG_LEVEL
|
|
value: "warn"
|
|
- name: ENVIRONMENT
|
|
value: "production"
|
|
|
|
ingress:
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/rate-limit: "100"
|
|
nginx.ingress.kubernetes.io/ssl-protocols: "TLSv1.2 TLSv1.3"
|
|
nginx.ingress.kubernetes.io/ssl-ciphers: "HIGH:!aNULL:!MD5"
|
|
|
|
podDisruptionBudget:
|
|
enabled: true
|
|
minAvailable: 2
|
|
|
|
metrics:
|
|
enabled: true
|
|
serviceMonitor:
|
|
enabled: true
|
|
interval: 15s
|
|
|
|
networkPolicy:
|
|
enabled: true |