diduweiwu
1、您说的redis是指你们自己部署的吧,
2、Kubesphere自己用到的redis的端口是没有暴露出来;
- kubectl -n kubesphere-system edit cm caddyfile
authenticate {
token-idle-timeout 40m
redis-url redis://redis.kubesphere-system.svc:6379
secret {$JWT_SECRET}
}
修改配置中 redis-url, 格式为 redis://:password@host:port/db
- kubectl -n kubesphere-system edit cm ks-console-config
redis:
port: 6379
host: redis.kubesphere-system.svc
password: <>
修改 redis 的配置
- kubectl -n kubesphere-system edit deploy ks-account
containers:
- command:
- ks-iam
- –logtostderr=true
- –jwt-secret=$(JWT_SECRET)
- –admin-password=$(ADMIN_PASSWORD)
- –enable-multi-login=False
- –token-idle-timeout=40m
- –redis-url=redis://redis.kubesphere-system.svc:6379
修改参数中redis-url,格式为 redis://:password@host:port/db
- 重启 ks-console,ks-apigateway,ks-account 三个组件