Skip to content
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 docker通过nfs或ConfigMap方式更改canal.properties 启动不成功 #3262

Closed
penweizgx opened this issue Dec 18, 2020 · 2 comments
Closed

Comments

@penweizgx
Copy link

在k8s docker通过nfs或ConfigMap方式挂载,启动不了

WX20201218-162101@2x

WX20201218-162101@2x

@penweizgx
Copy link
Author

暂时解决,不晓得有没有其他问题。
注释掉 canal/docker/image/app.sh文件中的chown ** 和 su admin ** 相关的,以默认的root权限运行

@cndarren
Copy link

我这块是通过configMap挂载方式部署的canal-server,也是报类似错误。我这块的解决方法是,通过在configMap中挂载一个app.sh文件覆盖掉/home/admin/app.sh文件,如下图所示
image
挂载的app.sh可以复制当前canal/docker/image/app.sh内容,然后注释掉下图内容
image
之后全局搜索 su admin ,将su admin 内容替换为 su root,类似下图这样
image
这样做,临时是解决了docker镜像用户admin与k8s pod用户root不一致,导致部署失败的问题;有更好的方式,欢迎交流

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants