- Implement dual-tier security with ActuatorSecurityConfig having higher priority - Add metrics collection for order creation with tenant tagging - Enhance cache resilience with graceful error handling - Create custom Redis ping health indicator - Add comprehensive K8s deployment manifests with Kustomize overlays - Update OrderController to align with Batch 8 AppService methods - Configure management endpoints with separate port in production - Add deployment scripts for image tag updates Co-authored-by: Qwen-Coder <[email protected]>
37 lines
712 B
YAML
37 lines
712 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
resources:
|
|
- ../../base
|
|
|
|
namePrefix: dev-
|
|
|
|
patches:
|
|
- target:
|
|
kind: Deployment
|
|
name: tmpl-api
|
|
patch: |
|
|
- op: replace
|
|
path: /spec/replicas
|
|
value: 1
|
|
|
|
- target:
|
|
kind: ConfigMap
|
|
name: tmpl-api-config
|
|
patch: |
|
|
- op: replace
|
|
path: /data/SPRING_PROFILES_ACTIVE
|
|
value: "dev,redis"
|
|
|
|
- target:
|
|
kind: Secret
|
|
name: tmpl-api-secret
|
|
patch: |
|
|
- op: replace
|
|
path: /stringData/SPRING_DATASOURCE_URL
|
|
value: "jdbc:postgresql://dev-postgres:5432/tmpl_dev"
|
|
|
|
images:
|
|
- name: tmpl-api
|
|
newName: registry.example.com/tmpl-api
|
|
newTag: latest |