37cac72085
- Docker/K8s 배포 설정을 pipeline-backend/pipeline-front로 통일 - 네임스페이스, 서비스, PVC 등 k8s 리소스명 pipeline-* 로 변경 - AI 에이전트 관리 기능 추가 (에이전트, 그룹, 프로바이더, 대화, API 키, 지식베이스) - 장비 연결 관리 기능 추가 (PLC/Modbus/OPC-UA/MQTT) - 배치 스케줄러에 AI agent/device collection/crawling 타입 추가 - 배치 편집 UI 개선 (6가지 실행 방식 지원) - 회사별 페이지(COMPANY_*) 제거 및 AdminPageRenderer 최적화 - 메뉴 재구성: 장비 연결 관리 시스템관리로 이동, 에이전트 오케스트레이션으로 개명 - ai-assistant 디렉토리 제거 (backend-node로 통합) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
133 lines
2.9 KiB
YAML
133 lines
2.9 KiB
YAML
# pipeline Backend Deployment
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: pipeline-backend
|
|
namespace: pipeline
|
|
labels:
|
|
app: pipeline-backend
|
|
component: backend
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: pipeline-backend
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: pipeline-backend
|
|
component: backend
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: harbor-registry
|
|
containers:
|
|
- name: pipeline-backend
|
|
image: harbor.wace.me/vexplor/pipeline-backend:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 3001
|
|
protocol: TCP
|
|
envFrom:
|
|
- configMapRef:
|
|
name: pipeline-config
|
|
- secretRef:
|
|
name: pipeline-secret
|
|
env:
|
|
- name: PORT
|
|
value: "3001"
|
|
- name: HOST
|
|
value: "0.0.0.0"
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3001
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3001
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
volumeMounts:
|
|
- name: uploads
|
|
mountPath: /app/uploads
|
|
- name: data
|
|
mountPath: /app/data
|
|
- name: logs
|
|
mountPath: /app/logs
|
|
volumes:
|
|
- name: uploads
|
|
persistentVolumeClaim:
|
|
claimName: pipeline-backend-uploads-pvc
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: pipeline-backend-data-pvc
|
|
- name: logs
|
|
emptyDir: {}
|
|
|
|
---
|
|
# Backend Service
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: pipeline-backend-service
|
|
namespace: pipeline
|
|
labels:
|
|
app: pipeline-backend
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: pipeline-backend
|
|
ports:
|
|
- name: http
|
|
port: 3001
|
|
targetPort: 3001
|
|
protocol: TCP
|
|
|
|
---
|
|
# Backend PVC - Uploads
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: pipeline-backend-uploads-pvc
|
|
namespace: pipeline
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
storageClassName: local-path
|
|
|
|
---
|
|
# Backend PVC - Data
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: pipeline-backend-data-pvc
|
|
namespace: pipeline
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|
|
storageClassName: local-path
|