mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-09 03:17:52 +00:00
- Restructure k8s configs with base/overlays pattern for flexibility - Add overlays/with-infra for full deployment (PostgreSQL + Redis) - Add overlays/external for external database scenarios - Add comprehensive ConfigMap with bootstrap admin settings - Fix health check path to /actuator/health (auth issue) - Add SKILLHUB_API_UPSTREAM env for frontend - Set SESSION_COOKIE_SECURE=false for HTTP environments - Add Chinese and English documentation in docs/skillhub/
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: skillhub-scanner
|
|
labels:
|
|
app.kubernetes.io/name: skillhub-scanner
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: skillhub-scanner
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: skillhub-scanner
|
|
spec:
|
|
containers:
|
|
- name: scanner
|
|
image: ghcr.io/iflytek/skillhub-scanner:edge
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8000
|
|
name: http
|
|
env:
|
|
- name: SKILL_SCANNER_LLM_API_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: skillhub-secret
|
|
key: skill-scanner-llm-api-key
|
|
optional: true
|
|
- name: SKILL_SCANNER_LLM_MODEL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: skillhub-secret
|
|
key: skill-scanner-llm-model
|
|
optional: true
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15
|