You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### NetworkPolicy for KFP-to-LlamaStack connectivity
52
+
53
+
The Llama Stack operator creates a NetworkPolicy that restricts ingress to the Llama Stack pod. KFP pipeline pods are not in its allow-list by default, causing connection timeouts. Apply the provided NetworkPolicy to allow same-namespace pods to reach the Llama Stack service:
If you skip this step, KFP pipeline pods might time out when trying to reach the Llama Stack service.
60
+
51
61
## 3) Prepare Manifests for Your Namespace/Environment
52
62
53
63
Update all hardcoded placeholders (especially namespace `tai-garak-lls`) in:
@@ -83,9 +93,10 @@ Set these carefully:
83
93
84
94
### Required values in `lsd-role.yaml`
85
95
86
-
- set namespace
87
-
- verify role name (`ds-pipeline-dspa`) matches your DSP install
96
+
- set namespace in all three resources (Role, and both RoleBindings)
97
+
- verify role name (`ds-pipeline-dspa`) matches your DSP install in the pipeline-management RoleBinding
88
98
- verify service account name (`<lsd-name>-sa`, default in this repo is `llamastack-garak-distribution-sa`)
99
+
- the `lsd-garak-dspa-api-access` Role grants the service account permission to access the DSPA API proxy (required for KFP client connectivity through the external route)
89
100
90
101
91
102
## 4) Deploy PostgreSQL
@@ -182,5 +193,8 @@ Open `demos/guide.ipynb` and run it end-to-end.
182
193
183
194
### KFP jobs cannot call Llama Stack URL
184
195
196
+
- check for NetworkPolicies blocking traffic: `oc get networkpolicy`
197
+
- if pipeline pods time out reaching Llama Stack but port-forward works, apply the NetworkPolicy: `oc apply -f lsd_remote/kfp-setup/kfp-networkpolicy.yaml` (see step 2 above)
198
+
- verify the podSelector label in `kfp-networkpolicy.yaml` matches the Llama Stack pod: `oc get pods --show-labels | grep llamastack`
185
199
- verify `KUBEFLOW_LLAMA_STACK_URL` resolves from inside cluster
186
200
- verify service name/port in `lsd-garak.yaml` matches URL configured in `lsd-config.yaml`
0 commit comments