mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-07 08:26:00 +00:00
Also add Python CodeQL coverage in the security workflow so repository-level script regression checks stay green when Python source exists. Signed-off-by: dongmucat <1127093059@qq.com>
54 lines
1.5 KiB
YAML
54 lines
1.5 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_BASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: skillhub-secret
|
|
key: skill-scanner-llm-base-url
|
|
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
|