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

It is dangerous to inject hosts before dfdaemon starts #979

Open
hongfeioo opened this issue Jan 11, 2022 · 2 comments
Open

It is dangerous to inject hosts before dfdaemon starts #979

hongfeioo opened this issue Jan 11, 2022 · 2 comments
Assignees

Comments

@hongfeioo
Copy link
Contributor

Bug report:

dfdaemon启动时,会通过 postStart 劫持镜像仓库的域名;
此时如果dfdaemon一直无法启动, 会引起node节点上的业务无法拉取镜像,并且是影响的整个集群(因为dfdaemon是daemonset部署的)

Expected behavior:

确保dfdaemon启动正常后再注入 /etc/hosts文件

How to reproduce it:

Environment:

  • Dragonfly version: v2.0.2-alpha.6
  • OS: centos7
  • Kernel (e.g. uname -a):
  • Others:
@jim3ma
Copy link
Member

jim3ma commented Jan 12, 2022

dfdaemon 容器无法启动的时候,postStart 也会执行么?

@jim3ma
Copy link
Member

jim3ma commented Jan 12, 2022

dfdaemon 容器无法启动的时候,postStart 也会执行么?

我看了一下官方文档,postStart 是容器创建后就会执行的,的确会有问题,需要做一些检查

@gaius-qi gaius-qi removed the kind/bug label Feb 6, 2023
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

3 participants