add H20 kaniko build + H20 cw manifest
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
# responses-shim — 安徽游方-H20 集群版
|
||||
# 与 b300 版差异:①无 nodeSelector(平台按 --node-group 线上H20 注入调度约束)
|
||||
# ②上游指向 ds0731 的 sglang router Service(ds-v4-flash-0731;若后续 H20 重上 dsv4.1,
|
||||
# 改 UPSTREAM_BASE 即可)③镜像来自 kmctl create image(kaniko 从 Gitee 源码构建,平台用户镜像)
|
||||
# 部署: wsl kmctl --cluster 安徽游方-H20 create cw responses-shim-h20 \
|
||||
# -f /mnt/d/B300/responses-shim/deploy/responses-shim-h20-cw.yaml --node-group 线上H20
|
||||
# 冒烟(scratch 无 shell,借 newapi pod 执行):
|
||||
# wsl kmctl --cluster 安徽游方-H20 exec cw ymk-newapi --pod <new-api-server-pod> -- \
|
||||
# sh -c 'curl -s http://responses-shim-h20:8080/healthz'
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: responses-shim
|
||||
labels:
|
||||
app: responses-shim
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: responses-shim
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: responses-shim
|
||||
spec:
|
||||
containers:
|
||||
- name: shim
|
||||
image: __H20_IMAGE__ # kmctl create image 产物,部署前替换
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: UPSTREAM_BASE
|
||||
value: "http://sglang-router-svc-ds-4p4d:8000"
|
||||
- name: LISTEN
|
||||
value: ":8080"
|
||||
- name: STOP_SCOPE
|
||||
value: "content"
|
||||
ports:
|
||||
- {containerPort: 8080}
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 512Mi
|
||||
readinessProbe:
|
||||
httpGet: {path: /healthz, port: 8080}
|
||||
initialDelaySeconds: 2
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet: {path: /healthz, port: 8080}
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 20
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: responses-shim-h20
|
||||
labels:
|
||||
app: responses-shim
|
||||
spec:
|
||||
selector:
|
||||
app: responses-shim
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
Reference in New Issue
Block a user