代码改变世界

随笔档案-2022年08月

Java Springboot javax.net.ssl.SSLException: Connection reset解决方案

2022-08-22 13:53 by 假面Wilson, 7005 阅读, 收藏, 编辑
摘要: 接口设置HTTPS TLS1.2后,随机出现SSLException: Connection reset报错: javax.net.ssl.SSLException: Connection reset at sun.security.ssl.Alert.createSSLException(Aler 阅读全文

定义pod的hosts文件(HostAliases)

2022-08-20 12:36 by 假面Wilson, 336 阅读, 收藏, 编辑
摘要: 通过HostAliases 向 Pod /etc/hosts 文件添加条目 当 DNS 配置以及其它选项不合理的时候,通过向 Pod 的 /etc/hosts 文件中添加条目, 可以在 Pod 级别覆盖对主机名的解析。你可以通过 PodSpec 的 HostAliases 字段来添加这些自定义条目. 阅读全文

rancher添加用户报错x509: certificate has expired Internal error occurred: failed calling webhook "rancherauth.cattle.io":

2022-08-19 17:13 by 假面Wilson, 728 阅读, 收藏, 编辑
摘要: 错误信息: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post https://rancher-webhook.cattle-system.svc:443/v1/webhook/validatio 阅读全文

Rancher 2.5.x 证书过期报错 x509: certificate has expired or is not yet valid 解决方案

2022-08-19 16:56 by 假面Wilson, 1727 阅读, 收藏, 编辑
摘要: Rancher 的证书过期会出现什么状况?不可以继续通过Rancher UI访问你的集群 查看Rancher Server日志报错:x509: certificate has expired or is not yet valid 大致Google了一下 发现这个bug从去年(2020 年)就已经有 阅读全文

为aws中国配置docker镜像加速

2022-08-16 20:58 by 假面Wilson, 297 阅读, 收藏, 编辑
摘要: 在AWS中国,docker镜像基本无法拉取,更换国内镜像是必须的。 修改docker配置文件 sudo vi /etc/sysconfig/docker 找到OPTIONS参数,在后面加上“--registry-mirror=国内镜像地址” 并保存。 OPTIONS=“--default-ulimi 阅读全文

Kinaba discover查询语法

2022-08-04 15:24 by 假面Wilson, 222 阅读, 收藏, 编辑
摘要: 1、要搜索一个确切的字符串,即精确搜索,需要使用双引号引起来:path:”/app/logs/nginx/access.log” 2、如果不带引号,将会匹配每个单词:uid token 3、模糊搜索:path:”/app/~ 4、* 匹配0到多个字符:*oken 5、? 匹配单个字符 : tok?n 阅读全文
点击右上角即可分享
微信分享提示