61abd3f560
deploy articulate / build-and-deploy (push) Successful in 1m21s
deploy cube / build-and-deploy (push) Successful in 1m44s
deploy karaoke / build-and-deploy (push) Successful in 1m13s
deploy music / build-and-deploy (push) Successful in 2m23s
deploy notes / build-and-deploy (push) Successful in 2m16s
deploy simpleasm / build-and-deploy (push) Successful in 1m44s
deploy werewolf / build-and-deploy (push) Successful in 1m7s
- 后端 axum + sqlite (recordings 表):上传 multipart 流式落 PVC;spawn worker pending → transcribing (调 mochi 那边 ASR endpoint, fireredasr2 token, Whisper-style multipart) → summarizing (调 gemma-4-31b-it OpenAI 兼容接口) → done
- 鉴权 middleware:Authorization: token <PASSPHRASE>;audio 流播放 ?token= query 兜底;passphrase 走 k8s Secret 不写死
- 前端 Vue3:首次访问弹 passphrase modal;sidebar 录音列表(带状态 chip)+ content 选中显示音频 + 转写 + markdown 纪要;5s polling 进度
- k8s manifest: ns cube-notes / PVC 30Gi / Ingress notes.famzheng.me / bodylimit 600M;Secret notes-creds = {passphrase, asr_token, llm_token}
- portal apps.ts 加 notes entry
133 lines
3.0 KiB
YAML
133 lines
3.0 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: cube-notes
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: notes-data
|
|
namespace: cube-notes
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 30Gi
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: notes
|
|
namespace: cube-notes
|
|
labels:
|
|
app: notes
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: notes
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: notes
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: registry-creds
|
|
containers:
|
|
- name: notes
|
|
image: registry.famzheng.me/mochi/notes:latest
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
env:
|
|
- name: DB_PATH
|
|
value: /data/app.db
|
|
- name: BLOBS_DIR
|
|
value: /data/blobs
|
|
- name: ASR_URL
|
|
value: http://18.159.112.195:8848/v1/audio/transcriptions
|
|
- name: LLM_GATEWAY
|
|
value: http://3.135.65.204:8848/v1
|
|
- name: LLM_MODEL
|
|
value: gemma-4-31b-it
|
|
- name: PASSPHRASE
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: notes-creds
|
|
key: passphrase
|
|
- name: ASR_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: notes-creds
|
|
key: asr_token
|
|
- name: LLM_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: notes-creds
|
|
key: llm_token
|
|
readinessProbe:
|
|
httpGet: { path: /healthz, port: http }
|
|
initialDelaySeconds: 1
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet: { path: /healthz, port: http }
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 15
|
|
resources:
|
|
requests: { cpu: 10m, memory: 32Mi }
|
|
limits: { cpu: 1000m, memory: 512Mi }
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: notes-data
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: notes
|
|
namespace: cube-notes
|
|
spec:
|
|
selector:
|
|
app: notes
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: 8080
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: bodylimit
|
|
namespace: cube-notes
|
|
spec:
|
|
buffering:
|
|
maxRequestBodyBytes: 629145600
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: notes
|
|
namespace: cube-notes
|
|
annotations:
|
|
traefik.ingress.kubernetes.io/router.middlewares: cube-notes-bodylimit@kubernetescrd
|
|
spec:
|
|
ingressClassName: traefik
|
|
rules:
|
|
- host: notes.famzheng.me
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: notes
|
|
port:
|
|
number: 80
|