-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用k8s部署连接外部数据库和redis,执行sql备份sql语句报错 #2616
Comments
goinception 的pod 重启了吗? 里面的配置更新到位了吗? |
已经重启并且更新到位 |
看一下你archery 后台的备份库有没有写对, 还有代码可以用 master 分支的试一下 |
你好, 更新了仓库的 readme, 请阅读 wiki 获取最新的部署指引 |
还是不对,我就是用wiki里面的k8s方式部署的 2.archery-values.yaml文件如下
ime="2024/05/07 17:20:30.859" level=error msg="con:98, config: user: 'public_admin'\npassword: 'xxxxxx'\nhost: 'xxxxx.mysql.rds.aliyuncs.com'\nport: 3306\nexecute: 1\nignorewarnings: 1\nbackup: 1\nsleep: 200\nsleeprows: 100\n, parsed: map[string]interface {}{"backup":1, "execute":1, "host":"xxxxxx.mysql.rds.aliyuncs.com", "ignorewarnings":1, "password":"xxxxxx", "port":3306, "sleep":200, "sleeprows":100, "user":"public_admin"} (err: con:98 dial tcp: lookup archery-mysql on 10.100.0.10:53: no such host)" file=session_inception.go func=parseOptions line=2153 |
不好意思这确实是 chart 的代码和说明不够清晰导致的, 请使用最新的 helm chart , 最新的 goinception chart 新增了环境变量配置备份数据库的功能, 另外比较建议你使用 master 分支的代码进行测试, 你使用的版本比较老, 不保证能和 k8s 兼容 有什么改进的点欢迎pr |
你这个还是有问题,archery/values.yaml里面下面的变量还是替换不了goinception/values.yaml的值, |
goinception 是 archery的依赖,你得写
|
执行sql上线错误 一会是这种: 一会是这种: 版本信息如下 |
先看第一个问题哈,第一个问题你能确认IP解析是否正确吗? 他说access denied 那应该就是权限不够呀,你试试多授权一些,可以看看wiki备份库需要什么权限 |
第二个问题应该是你解析的问题,你可以试一下写全域名,比如 archery-goinception.namespace 或者 archery-goinception.namespace.k8s…… |
邮箱firehalt@126.com 能否邮件指导一下,谢谢
|
https://hanchuanchuan.github.io/goInception/zh/permission.html#%E5%AE%A1%E6%A0%B8%E5%8A%9F%E8%83%BD 这是goinception 需要的权限说明,请参考一下 |
|
1 |
重现步骤
使用k8s部署的,连接的外部数据库和redis
1.已经修改goinception里面关于数据库的信息
backup_port = 3306
backup_host = "xxx.mysql.rds.aliyuncs.com"
backup_user = "public_admin"
backup_password = "xxx"
预期外的结果
可以使用k8s部署
日志文本
版本
1.10.0
部署方式
K8S
是否还有其他可以辅助定位问题的信息?比如数据库版本等
k8s部署的,
The text was updated successfully, but these errors were encountered: