1d12cb574e
- Add one-click deploy script (k8s/deploy.sh) for test + prod - Add startupProbe to backend (60x10s = 10min grace for ML model loading) - Add configmap.yaml and secret.yaml (envsubst from backend/.env) - Fix image URLs: add registry.plfai.cn prefix - Fix frontend: API base URL relative (/api/v1), login-required mode - Remove hardcoded localhost references from frontend - Clean broken kustomize overlays - Add nodeAffinity for backend→k8smaster, frontend→plf-cvm/k8smaster - Remove dead ReplicaSets and stale pods during deploy
12 lines
253 B
YAML
12 lines
253 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
resources:
|
|
- backend-deployment.yaml
|
|
- backend-service.yaml
|
|
- frontend-deployment.yaml
|
|
- frontend-service.yaml
|
|
- persistent-volume-claims.yaml
|
|
- configmap.yaml
|
|
- secret.yaml
|