imyuanandyou
imyuanandyou
### 重现步骤 1、使用https://github.com/hhyo/Archery/tree/master/src/charts提供的chat(考虑放到helm仓库吗,后面好升级) 2、更改values.yaml文件(这里的url和urlSecret应该是二选其一吧,总之都试了还是连接到127.0.0.1) mysql: embedded: false url: "mysql://archery:xxxx@mysql:3306/archery" #urlSecret: "mysql://archery:xxxx@mysql:3306/archery" #urlSecretKey: "DATABASE_URL" # embedded 为 false时, 会使用外部的 mysql, 下方的 mysql 配置不会生效 architecture: standalone 3、install后在pod内能看到系统env的环境变量为 (不理解py程序是怎么通过获取到DATABASE_URL的值的,全局搜了关键字也没找到对DATABASE_URL的引用) DATABASE_URL="mysql://archery:xxxx@mysql:3306/archery" 之前有个类似的issue不过没给出答案已经关掉了 https://github.com/hhyo/Archery/issues/1777 ###...
**Describe the Bug** https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/?spm=a2c4g.11186623.0.0.4841229cTTUstn#define-a-grpc-liveness-probe Kubernetes supports gRPC survival probe in version 1.24. When I define the gRPC survival probe, the pod console of kubesphere web will be blank and an...
DecimalBytes : 返回十进制标准(以 1000 为基数)下的可读字节单位字符串。precision 参数指定小数点后的位数,默认为 4。 根据描述precision参数为控制小数点的位数,但某些情况下会变成科学计数法 例如 ``` // 测试6000万这个数 formatter.DecimalBytes(61812496) // 61.812MB formatter.DecimalBytes(61812496, 2) // 61.8MB formatter.DecimalBytes(61812496, 1) // 62MB formatter.DecimalBytes(61812496, 0) // 6e+01MB //再测试4亿这个数 formatter.DecimalBytes(401000000) //401MB...