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

如何使用lighthouse插件 #9

Open
hudson741 opened this issue Nov 16, 2021 · 5 comments
Open

如何使用lighthouse插件 #9

hudson741 opened this issue Nov 16, 2021 · 5 comments

Comments

@hudson741
Copy link

是修改kubelet启动参数 --container-runtime-endpoint 来指定使用lighthouse插件嘛?

@ddongchen
Copy link
Collaborator

1、修改kubelet参数:--docker-endpoint=unix:///var/run/lighthouse.sock --docker=unix:///var/run/lighthouse.sock
2、plugin-server中指定--hostname-override 和 --kubeconfig

@GaoJie-bupt
Copy link

GaoJie-bupt commented Dec 14, 2021

1、--docker=unix:///var/run/lighthouse.sock 这个配置的作用是什么 貌似没有在kubelet的配置中找到

@kom0055
Copy link

kom0055 commented Dec 14, 2021

看了一部分源码,我猜测步骤如下

  1. 将对docker-socket的请求 全部转发到lighthouse.sock上。
  2. lighthouse会将请求转发给plugin-server
  3. plugin-server prehook修改请求返回给lighthouse,目的可以看lighthouse的readme
  4. lighthouse 将被修改的请求转发给docker
  5. lighthouse 调用posthook

@ddongchen
Copy link
Collaborator

@kom0055 整个流程如您所说。目前正在整理更详细的使用文档,会更清晰地介绍使用方法及整个流程。
kubelet相关参数介绍:
image

@ddongchen
Copy link
Collaborator

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

4 participants