Add shared Kubernetes configuration files

- Add k8s/configmap.yaml with shared environment variables
- Add k8s/lpt-secrets.yaml template (secrets not committed)
- Add k8s/regcred-secret.yaml template (managed by workflow)
- Add k8s/README.md with deployment instructions
- Remove incorrect deployment/service files from root k8s/

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-20 21:27:50 +08:00
co-authored by Claude Opus 4.8
parent 5497dfc290
commit 977a031393
6 changed files with 205 additions and 77 deletions
-62
View File
@@ -1,62 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: lpt-ai
namespace: lpt-dev
labels:
app: lpt-ai
spec:
replicas: 1
selector:
matchLabels:
app: lpt-ai
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
template:
metadata:
labels:
app: lpt-ai
spec:
imagePullSecrets:
- name: regcred
containers:
- name: lpt-ai
image: 192.168.123.199:5000/lpt-ai:dev
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5199
env:
- name: LLM_API_KEY
valueFrom:
secretKeyRef:
name: lpt-secrets
key: llm-api-key
envFrom:
- configMapRef:
name: lpt-config
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi
livenessProbe:
httpGet:
path: /health
port: 5199
initialDelaySeconds: 10
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 5199
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3