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

Disable istio sidecar injection in Suggestion and Training Jobs #1050

Merged
merged 3 commits into from
Feb 11, 2020

Conversation

andreyvelich
Copy link
Member

@andreyvelich andreyvelich commented Feb 9, 2020

Fixes: kubeflow/kubeflow#4742.

I added part in Katib controller to create Suggestion deployment with sidecar.istio.io/inject: false annotation.
I am not sure that we can add this annotation to training jobs in the controller since we submit job from Unstructured object: https://github.com/kubeflow/katib/blob/master/pkg/controller.v1alpha3/trial/trial_controller.go#L271.

Because of that, I added annotations to template in each example.

/assign @johnugeorge @richardsliu

/cc @hougangliu @gaocegege @krishnadurai


This change is Reviewable

@johnugeorge
Copy link
Member

Will this solve the problem without adding to the training pods? Have you tried?

Btwn, unstructured is just a map

@andreyvelich
Copy link
Member Author

andreyvelich commented Feb 10, 2020

Will this solve the problem without adding to the training pods? Have you tried?

No, we must add it to training jobs. The main problem happens when we download datasets in training job behind istio-proxy.

Btwn, unstructured is just a map

Ok, in that case, we can work only with 3 supported job type (v1Job, TFJob and PytorchJob) and I will try to add annotation to them before submitting.

@andreyvelich
Copy link
Member Author

I added few changes to this PR.

Instead of changing each example yaml file, I add istio sidecar annotation in the Katib controller.

In that case, I add annotation to the right place depends on JobKind and user can't submit any other job than Job, TFJob, PytorchJob.

If we don't want to limit user with these types of Training Jobs, we can run script with annotation only for these three types.
So, if user wants to submit other jobs, user has to add annotation manually to the yaml file.

What do you think @richardsliu @gaocegege @hougangliu @johnugeorge ?

@andreyvelich
Copy link
Member Author

/retest

4 similar comments
@andreyvelich
Copy link
Member Author

/retest

@richardsliu
Copy link
Contributor

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@johnugeorge
Copy link
Member

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnugeorge

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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

Successfully merging this pull request may close these issues.

Katib training containers should wait until istio proxy will be ready
5 participants