- Simplify Dockerfile: use pre-built cross-compiled binary instead of building in Alpine (Alpine only has Zig 0.13, we need 0.15) - Fix image URL in k8s manifest: git.mikhailkilin.ru (not gitea.) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: transcribator
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: transcribator-secret
|
|
namespace: transcribator
|
|
type: Opaque
|
|
stringData:
|
|
TELEGRAM_BOT_TOKEN: "REPLACE_ME"
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: transcribator
|
|
namespace: transcribator
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: transcribator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: transcribator
|
|
spec:
|
|
containers:
|
|
- name: transcribator
|
|
image: git.mikhailkilin.ru/killingdruid/transcribator:latest
|
|
env:
|
|
- name: TELEGRAM_BOT_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: transcribator-secret
|
|
key: TELEGRAM_BOT_TOKEN
|
|
- name: WHISPER_URL
|
|
value: "http://whisper.whisper.svc:8000"
|
|
- name: WHISPER_LANGUAGE
|
|
value: "ru"
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "10m"
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "500m"
|