-
Notifications
You must be signed in to change notification settings - Fork 768
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
Update Istio sidecar annotation information for the Katib experiments #2320
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
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**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
**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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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/), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: | ||
|
||
``` |
There was a problem hiding this comment.
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!
``` | |
```shell |
There was a problem hiding this comment.
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!
There was a problem hiding this 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: | ||
``` |
There was a problem hiding this comment.
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)
``` | |
```shell |
Appreciate it.
/assign @gaocegege @johnugeorge @sperlingxx
(OWNERS/approvers other than @andreyvelich 👍)
4f511a1
to
d406cc6
Compare
[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 |
This PR is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
/lgtm
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