Skip to content

Commit 50cd35a

Browse files
committed
Update Instructions for Argo Workflow
Signed-off-by: jaffe-fly <[email protected]>
1 parent db17214 commit 50cd35a

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

examples/v1beta1/argo/README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,23 @@ kubectl patch ClusterRole katib-controller -n kubeflow --type=json \
7979
-p='[{"op": "add", "path": "/rules/-", "value": {"apiGroups":["argoproj.io"],"resources":["workflows"],"verbs":["get", "list", "watch", "create", "delete"]}}]'
8080
```
8181
82-
In addition to that, you have to modify Katib
83-
[Controller args](https://github.com/kubeflow/katib/blob/master/manifests/v1beta1/components/controller/controller.yaml#L27)
84-
with the new flag `--trial-resources`.
82+
Run the following command to update [Katib config](https://www.kubeflow.org/docs/components/katib/user-guides/katib-config/#katib-controller-parameters):
8583
86-
Run the following command to update Katib Controller args:
84+
```bash
85+
kubectl edit configMap katib-config -n kubeflow
86+
```
87+
88+
For example, to support Workflow Pipelines, add `Workflow.v1alpha1.argoproj.io` in `trialResources`:
89+
90+
```bash
91+
trialResources:
92+
- Workflow.v1alpha1.argoproj.io
93+
```
94+
95+
After that, you need to restart the Katib controller Pod:
8796

8897
```bash
89-
kubectl patch Deployment katib-controller -n kubeflow --type=json \
90-
-p='[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--trial-resources=Workflow.v1alpha1.argoproj.io"}]'
98+
kubectl delete pod -n kubeflow -l katib.kubeflow.org/component=controller
9199
```
92100

93101
Check that Katib Controller's pod was restarted:
@@ -107,7 +115,7 @@ Check logs from Katib Controller to verify Argo Workflow integration:
107115
```bash
108116
$ kubectl logs $(kubectl get pods -n kubeflow -o name | grep katib-controller) -n kubeflow | grep '"CRD Kind":"Workflow"'
109117

110-
{"level":"info","ts":1628032648.6285546,"logger":"trial-controller","msg":"Job watch added successfully","CRD Group":"argoproj.io","CRD Version":"v1alpha1","CRD Kind":"Workflow"}
118+
{"level":"info","ts":"2024-07-13T10:02:10Z","logger":"trial-controller","msg":"Job watch added successfully","CRD Group":"argoproj.io","CRD Version":"v1alpha1","CRD Kind":"Workflow"}
111119
```
112120

113121
If you ran the above steps successfully, you should be able to run Argo Workflow examples.

0 commit comments

Comments
 (0)