feat: add generated configuration files and Kubernetes overlays
- Add generated TypeScript configuration exports for all environments - Create development and production Kubernetes overlay directories - Include environment-specific kustomization configurations - Add namespace and resource definitions for proper K8s deployment - Enable environment-specific configuration management
This commit is contained in:
73
k8s-kustomize/overlays/production/kustomization.yaml
Normal file
73
k8s-kustomize/overlays/production/kustomization.yaml
Normal file
@@ -0,0 +1,73 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
metadata:
|
||||
name: rxminder-production
|
||||
|
||||
# Reference the base configuration
|
||||
resources:
|
||||
- ../../base
|
||||
- namespace.yaml
|
||||
|
||||
# Override namespace for production
|
||||
namespace: rxminder-prod
|
||||
|
||||
# Production-specific labels
|
||||
labels:
|
||||
- pairs:
|
||||
environment: production
|
||||
tier: prod
|
||||
|
||||
# Production 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
|
||||
|
||||
# Production replicas
|
||||
replicas:
|
||||
- name: rxminder-frontend
|
||||
count: 3
|
||||
- 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
|
||||
Reference in New Issue
Block a user