Hello team, I'm trying to use Kuberay with Flyte, ...
# ask-the-community
n
Hello team, I'm trying to use Kuberay with Flyte, and one of the issues is adding prometheus annotations to my head/worker ray pods. The annotations seem to be set here , but I am not sure how to set custom annotations. Can anyone help? Thanks!
k
you create a launch plan, and add labels and annotation to it.
Copy code
labels_model = Labels({"label": "foo"})
    annotations_model = Annotations({"annotate": "bar"})
    launch_plan.LaunchPlan.get_or_create(
        workflow=wf,
        name="your_lp_name",
        labels=labels_model,
        annotations=annotations_model,
    )
n
I typically use pyflyte run, is there a solution around it?
Got it working by using a separate script with FlyteRemote to launch the launchplan