-
Notifications
You must be signed in to change notification settings - Fork 448
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
Support Istio-sidecar handling #1638
Comments
The reason for this codes was this. if strings.Contains(cmdline, "envoy") || strings.Contains(cmdline, "sidecar") {
fmt.Printf("Ignore istio-sidecar container's processes")
continue
} When I created my katib-experiment with sidecar-injection == true, There was following process in view of metrics-logger-and-collector sidecar container. |
Thank you for creating this @anencore94. |
Or I think this might be another solution: Inject metrics-logger-and-collector container with container.lifecycle.PreStop to request quitquitquit API to istio-proxy container endpoint. From here:
|
@anencore94 I think you are referring to a private repository. |
unsee :404 |
Thanks @tenzen-y I changed the links |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it. |
@spots107: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@anencore94 what do you think about re-opening this feature? |
Thanks @spots107 |
@anencore94: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
WDYT of this issue ? @kubeflow/wg-automl-leads @tenzen-y |
This is definitely nice to have. @anencore94 Thanks for following this issue |
SGTM. Thanks! @anencore94 |
I remember I solved this problem before, if you need, you can chat with me privately, or I will propose a PR。 |
katib-controller: - Allow traffic to the webhook port in order to let the K8s api server send traffic to this endpoint. katib-db-manager: - Multiple components talk to db-manager for fetching and/or storing metrics. We need to allow ALL trafic as Katib jobs are currently not supporting Istio sidecar injection. Relative Issue: kubeflow#1638 katib-mysql: - The db manager's persistence layer. Allow traffic only from katib-db-manager. Signed-off-by: Apostolos Gerakaris <apoger@arrikto.com>
katib-controller: - Allow traffic to the webhook port in order to let the K8s api server send traffic to this endpoint. katib-db-manager: - Multiple components talk to db-manager for fetching and/or storing metrics. We need to allow ALL trafic as Katib jobs are currently not supporting Istio sidecar injection. Relative Issue: kubeflow#1638 katib-mysql: - The db manager's persistence layer. Allow traffic only from katib-db-manager. Signed-off-by: Apostolos Gerakaris <apoger@arrikto.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/lifecycle frozen |
/kind feature
Describe the solution you'd like
[A clear and concise description of what you want to happen.]
I'd like to run katib-experiment with istio-sidecar injection.
I guess the reason why katib induce user to run katib-experiment with istio-sidecar injection "false" was something like this:
Thus, the following problem is maybe the main issue.
A) katib's metrics-logger-and-collector sidecar container should know when the istio-proxy sidecar container started
B) metrics-logger-and-collector sidecar container should kill when the main container finished well or not.
By the way I think changing initial-logic and end-logic in metrics-collector image, katib could handle this.
Maybe something like this;
katib/cmd/metricscollector/v1beta1/file-metricscollector/main.go
Line 339 in eea6ada
I have no idea how to implement this now, but the primary container's command should be changed automatically by katib experiment/trial's controller as follows:
echo completed > /var/log/katib/$$$$.pid
at the end of primary-container's command.Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
The text was updated successfully, but these errors were encountered: