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