mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-09 03:17:52 +00:00
69 lines
2.1 KiB
YAML
69 lines
2.1 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
|
|
- name: SKILLHUB_SCANNER_MAX_UPLOAD_SIZE_BYTES
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: skillhub-config
|
|
key: skill-scanner-max-upload-size-bytes
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15
|