Files
BoosAPI/deploy/k3s/chart/templates/deployment.yaml
T
boos 0106dd3f5d Full internal rename: metapi → boosapi
Rename all remaining internal protocol identifiers:
- x-metapi-* headers → x-boosapi-*
- metapi: reasoning prefix → boosapi:
- __metapi* runtime markers → __boosapi*
- file-metapi-* → file-boosapi-*
- METAPI_* env vars → BOOSAPI_*
- metapi_turn_state/metapi_mcp_item__ etc. → boosapi_*
- package.json name → boosapi
- Docker/deploy/k3s/docs references

46 files changed, 168 insertions, 170 deletions.
typecheck:web passes (0 new errors).

Signed-off-by: Boos4721 <boos4721@icloud.com>
2026-05-16 00:46:28 +08:00

60 lines
2.1 KiB
YAML

{{- if and .Values.persistence.hostPath (gt (int .Values.replicaCount) 1) -}}
{{- fail "deploy/k3s/chart uses node-local hostPath storage; keep replicaCount at 1 or switch persistence.hostPath to shared storage before scaling" -}}
{{- end }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "boosapi.fullname" . }}
labels:
{{- include "boosapi.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: {{ .Values.deployment.strategy.maxSurge }}
maxUnavailable: {{ .Values.deployment.strategy.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "boosapi.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "boosapi.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
boosapi/image-tag: {{ .Values.image.tag | quote }}
boosapi/image-digest: {{ .Values.image.digest | quote }}
checksum/env-secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum | quote }}
spec:
containers:
- name: boosapi
image: "{{ .Values.image.repository }}{{ if .Values.image.digest }}@{{ .Values.image.digest }}{{ else }}:{{ .Values.image.tag }}{{ end }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
- secretRef:
name: {{ include "boosapi.envSecretName" . }}
ports:
- name: http
containerPort: 4000
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 30
periodSeconds: 20
volumeMounts:
- name: boosapi-data
mountPath: /app/data
volumes:
- name: boosapi-data
hostPath:
path: {{ .Values.persistence.hostPath }}
type: DirectoryOrCreate