- 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
74 lines
1.5 KiB
YAML
74 lines
1.5 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
metadata:
|
|
name: rxminder-development
|
|
|
|
# Reference the base configuration
|
|
resources:
|
|
- ../../base
|
|
- namespace.yaml
|
|
|
|
# Override namespace for development
|
|
namespace: rxminder-dev
|
|
|
|
# Development-specific labels
|
|
labels:
|
|
- pairs:
|
|
environment: development
|
|
tier: development
|
|
|
|
# Development 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
|
|
|
|
# Development replicas
|
|
replicas:
|
|
- name: rxminder-frontend
|
|
count: 1
|
|
- 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: "128Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "200m"
|
|
|
|
- target:
|
|
kind: StatefulSet
|
|
name: rxminder-couchdb
|
|
patch: |-
|
|
- op: replace
|
|
path: /spec/template/spec/containers/0/resources
|
|
value:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
|
|
# ConfigMap generation
|
|
configMapGenerator:
|
|
- name: rxminder-config
|
|
envs:
|
|
- config.env
|
|
behavior: create
|