Files
GraphRAGAgent/k8s/base/frontend-deployment.yaml
T
admin 58079daba9
GraphRAG CI/CD / build-and-deploy (push) Failing after 3m49s
feat: 添加 Gitea Actions CI/CD — tag 驱动环境部署
- git push → 构建镜像 (sha-xxx) → 部署到 test (graphrag-test)
- git push --tags → 构建镜像 (vx.y.z) → 部署到 prod (graphrag-prod)
- DNS + hostAliases + nodeAffinity 固化到 deployment yaml
- 前后端均固定到 k8smaster 节点,便于 CI 导入 containerd 镜像
2026-06-18 14:26:15 +08:00

63 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
labels:
app: graphrag
component: frontend
spec:
replicas: 1
selector:
matchLabels:
app: graphrag
component: frontend
template:
metadata:
labels:
app: graphrag
component: frontend
spec:
dnsConfig:
options:
- name: ndots
value: "1"
- name: timeout
value: "3"
- name: attempts
value: "2"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k8smaster
containers:
- name: frontend
image: registry.plfai.cn/graphrag-frontend:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
protocol: TCP
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 30
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 3
periodSeconds: 10