skillhub/deploy/k8s/base/configmap.yaml
XiaoSeS fc7c59534a
fix(platform): harden sessions, scanner recovery, and CLI guidance (#801)
* 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>
2026-09-02 20:15:42 +08:00

63 lines
2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: v1
kind: ConfigMap
metadata:
name: skillhub-config
data:
# Redis 配置
# 使用外部 Redis修改为外部主机地址
# 使用内置 Redisoverlays/with-infra保持 redis
redis-host: redis
redis-port: "6379"
# 连接外部 Redis Cluster 时取消下面几行注释。Cluster 节点存在时,
# Spring Boot 会自动忽略上面的单机 host/port。
# redis-cluster-nodes: "redis-0.example.com:6379,redis-1.example.com:6379,redis-2.example.com:6379"
# redis-cluster-max-redirects: "5"
# redis-username: "skillhub"
# redis-ssl-enabled: "true"
# redis-connect-timeout: "5s"
# redis-timeout: "3s"
# redis-client-name: "skillhub"
# 连接外部 Redis Sentinel 时取消下面几行注释。Sentinel 配置优先于
# Cluster 和单机 host/port。
# redis-sentinel-master: "mymaster"
# redis-sentinel-nodes: "sentinel-0.example.com:26379,sentinel-1.example.com:26379,sentinel-2.example.com:26379"
# redis-sentinel-username: "sentinel-user"
# redis-sentinel-check-list: "true"
# 技能存储路径
storage-base-path: /var/lib/skillhub/storage
# 存储配置
# local: 本地存储(默认), s3: S3/OSS 对象存储
skillhub-storage-provider: local
# 技能扫描器配置
skill-scanner-enabled: "true"
skill-scanner-url: http://skillhub-scanner:8000
skill-scanner-mode: upload
skill-scanner-read-timeout: "900000"
skill-scan-reclaim-min-idle: PT16M
skill-scanner-max-concurrent-scans: "1"
skill-scanner-hard-timeout-seconds: "930"
# Bootstrap 管理员配置(非敏感)
bootstrap-admin-enabled: "true"
bootstrap-admin-user-id: docker-admin
bootstrap-admin-username: admin
bootstrap-admin-display-name: Platform Admin
bootstrap-admin-email: admin@example.com
# Session 配置
# HTTP 环境设为 falseHTTPS 环境设为 true
session-cookie-secure: "false"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: skillhub-storage-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi