Skip to content

Update Istio sidecar annotation information for the Katib experiments#2320

Merged
k8s-ci-robot merged 5 commits into
kubeflow:masterfrom
andreyvelich:issue-1359-istio-sidecar-info
Nov 13, 2020
Merged

Update Istio sidecar annotation information for the Katib experiments#2320
k8s-ci-robot merged 5 commits into
kubeflow:masterfrom
andreyvelich:issue-1359-istio-sidecar-info

Conversation

@andreyvelich

Copy link
Copy Markdown
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
Copy Markdown

This change is Reviewable

@8bitmp3 8bitmp3 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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


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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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/),


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

```

Copy link
Copy Markdown
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

@andreyvelich andreyvelich Nov 3, 2020

Copy link
Copy Markdown
Member Author

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!

@andreyvelich andreyvelich left a comment

Copy link
Copy Markdown
Member Author

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.

[here](https://www.kubeflow.org/docs/components/training/tftraining/#what-is-tfjob) how to set annotation.

1. Deploy the example:
```

Copy link
Copy Markdown
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 👍)

@andreyvelich andreyvelich force-pushed the issue-1359-istio-sidecar-info branch from 4f511a1 to d406cc6 Compare November 11, 2020 13:48
@k8s-ci-robot

Copy link
Copy Markdown
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

Details 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
Copy Markdown
Member Author

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

@gaocegege gaocegege left a comment

Copy link
Copy Markdown
Member

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
aronchick pushed a commit to aronchick/website-2 that referenced this pull request Feb 19, 2026
…kubeflow#2320)

* Add istio sidecar annotation inforation

* Address review comments

* Should be your experiment

* Annotation step after changing namespace

* Fix links
aronchick pushed a commit to aronchick/website-2 that referenced this pull request Feb 19, 2026
…kubeflow#2320)

* Add istio sidecar annotation inforation

* Address review comments

* Should be your experiment

* Annotation step after changing namespace

* Fix links
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