mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-27 01:23:30 +00:00
* fix(auth): recover from unreadable sessions Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * fix(scanner): defer unavailable scan tasks safely Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * fix(web): prefer the SkillHub CLI install command Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * fix(auth): decode session cookies during recovery Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * fix(runtime): address scanner and session review findings Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * fix(scanner): defer all server-side outages Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * docs(scanner): clarify deferred failure semantics Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * test(scanner): cover recovery boundaries Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * fix(scanner): register startup hook on router Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> * test(e2e): align install defaults and reuse auth session Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> --------- Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
64 lines
1.9 KiB
YAML
64 lines
1.9 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
|
|
- name: SKILLHUB_SCANNER_MAX_CONCURRENT_SCANS
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: skillhub-config
|
|
key: skill-scanner-max-concurrent-scans
|
|
- name: SKILLHUB_SCANNER_HARD_TIMEOUT_SECONDS
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: skillhub-config
|
|
key: skill-scanner-hard-timeout-seconds
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15
|