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

Update Istio sidecar annotation information for the Katib experiments #2320

Merged

Conversation

andreyvelich
Copy link
Member

Fixes: kubeflow/katib#1359.
Blocked by: #2312.

In the v1beta1 Katib version user should manually add sidecar.istio.io/inject: "false" to Experiment's Trial templates.

/assign @gaocegege @johnugeorge
/cc @RFMVasconcelos @8bitmp3

@kubeflow-bot
Copy link

This change is Reviewable

Copy link
Contributor

@8bitmp3 8bitmp3 left a comment

Choose a reason for hiding this comment

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

A few suggestions. Thank you @andreyvelich

[Istio sidecar injection](https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/#automatic-sidecar-injection).
If you installed Kubeflow using [Istio config](https://www.kubeflow.org/docs/started/k8s/kfctl-k8s-istio/),
you have to disable sidecar injection. To do that, specify annotation `sidecar.istio.io/inject: "false"`
in experiment's trial template. See how to do it for `Job`, `TFJob` or `PyTorchJob` in
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion:

Suggested change
in experiment's trial template. See how to do it for `Job`, `TFJob` or `PyTorchJob` in
in your experiment's trial template. For examples on how to do it for `Job`, `TFJob` (TensorFlow) or `PyTorchJob` (PyTorch), refer to the

@@ -670,8 +670,18 @@ to launch an experiment from the command line:
kubectl apply -f <your-path/your-experiment-config.yaml>
```

For example, run the following command to launch an experiment using the
random algorithm example:
**Note that**:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion:

Suggested change
**Note that**:
**Note**:

random algorithm example:
**Note that**:

- If you deployed Katib as part of Kubeflow, you have to change Kubeflow namespace to your profile namespace.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- If you deployed Katib as part of Kubeflow, you have to change Kubeflow namespace to your profile namespace.
- If you deploy Katib as part of Kubeflow, you have to change the Kubeflow namespace to your profile namespace.


- (Optional) Katib's experiments don't work with
[Istio sidecar injection](https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/#automatic-sidecar-injection).
If you installed Kubeflow using [Istio config](https://www.kubeflow.org/docs/started/k8s/kfctl-k8s-istio/),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
If you installed Kubeflow using [Istio config](https://www.kubeflow.org/docs/started/k8s/kfctl-k8s-istio/),
If you install Kubeflow using [Istio config](https://www.kubeflow.org/docs/started/k8s/kfctl-k8s-istio/),

in experiment's trial template. See how to do it for `Job`, `TFJob` or `PyTorchJob` in
[getting-started guide](http://localhost:1313/docs/components/hyperparameter-tuning/hyperparameter/#examples).

Run the following command to launch an experiment using the random algorithm example:

```
Copy link
Contributor

Choose a reason for hiding this comment

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

@andreyvelich If you have time, can you please add shell to three backticks whenever you see code blocks for command line examples? If you don't have time, don't worry. Thanks!

Suggested change
```
```shell

Copy link
Member Author

@andreyvelich andreyvelich Nov 3, 2020

Choose a reason for hiding this comment

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

@andreyvelich If you have time, can you please add shell to three backticks whenever you see code blocks for command line examples? If you don't have time, don't worry. Thanks!

Sure, I'll do it in #2312. Thanks!

Copy link
Member Author

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

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

@8bitmp3 Thank you for the review!
Your comments are addressed.

[`.trialSpec.spec.template.metadata.annotations`](https://github.com/kubeflow/katib/blob/master/examples/v1beta1/random-example.yaml#L52).
For the Kubeflow `TFJob` or other training operators check
[here](https://www.kubeflow.org/docs/components/training/tftraining/#what-is-tfjob) how to set annotation.

1. Deploy the example:
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you @andreyvelich One more thing - again, if you have time - can you add blank lines that separate code blocks and text paragraphs here and elsewhere (e.g. lines 327, 337)

Suggested change
```
```shell

Appreciate it.

/assign @gaocegege @johnugeorge @sperlingxx

(OWNERS/approvers other than @andreyvelich 👍)

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich

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

@andreyvelich andreyvelich changed the title [WIP] Update Istio sidecar annotation information for the Katib experiments Update Istio sidecar annotation information for the Katib experiments Nov 11, 2020
@andreyvelich
Copy link
Member Author

This PR is ready.
/cc @8bitmp3 @gaocegege @johnugeorge

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 👍
/lgtm

@k8s-ci-robot k8s-ci-robot merged commit 5cdf8e8 into kubeflow:master Nov 13, 2020
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.

[Documentation] Annotation to disable istio sidecar container
7 participants