Troubleshooting
The ML scenarios section is being refined. Individual steps and examples may be added. If you have questions, contact the Shturval platform team.
- Where to start
- Not enough Worker nodes
- A kubeflow-step stays unhealthy
- Wrong redirect URL
- Kubeflow UI: 503 or upstream connect error
- The browser shows old errors
- A Profile is not created, or the namespace has no Istio
- Kubeflow pods are created without a sidecar
- The GPU label did not appear
- Kernel versions and NVIDIA packages
- A Notebook with a GPU does not start
- Remove the installation by hand
- A diagnostic file for support
На этой странице
- Where to start
- Not enough Worker nodes
- A kubeflow-step stays unhealthy
- Wrong redirect URL
- Kubeflow UI: 503 or upstream connect error
- The browser shows old errors
- A Profile is not created, or the namespace has no Istio
- Kubeflow pods are created without a sidecar
- The GPU label did not appear
- Kernel versions and NVIDIA packages
- A Notebook with a GPU does not start
- Remove the installation by hand
- A diagnostic file for support
This page does not replace Install Kubeflow and GPU Operator and NVIDIA drivers. If a resource is missing or was created with the wrong parameters, go back to the matching installation step and apply the manifest again. The checks after each step are on the GUI and CLI tabs of the installation pages.
| Symptom | Section |
|---|---|
Pods Pending, Insufficient memory, a taint on the Control Plane | Not enough Worker nodes |
SSC kubeflow-step-* stays out of Healthy for a long time | A kubeflow-step stays unhealthy |
After SSO the browser goes to another host (flow.…, not kubeflow.<commonName>) | Wrong redirect URL |
upstream connect error, 503 in the UI | Kubeflow UI: 503 or upstream connect error |
| It works in a private window and fails in the normal profile | The browser shows old errors |
The Profile does not appear, there is no istio-injection | A Profile is not created, or the namespace has no Istio |
NCI nvidia-drivers Applied 0/0 | The GPU label did not appear |
| The driver NCI is in error, kernel packages are not installed | Kernel versions and NVIDIA packages |
| A Notebook with a GPU is in CrashLoop | A Notebook with a GPU does not start |
In the first minutes after a service is enabled, some Kubeflow pods may restart while they wait for the Istio sidecar or MySQL. Judge whether the pods become Running/Ready, not the total restart count. If the state does not change for a long time, check the pod events.
Where to start
Collect the state in the client cluster. The SSCs and NCIs show which step of the Kubeflow installation or the GPU setup stopped.
- Open the client cluster.
- Services and repositories → Installed services:
kubeflow-step-0…kubeflow-step-4, andgpu-operatorif the GPU Operator is installed. Mode Auto, state Healthy. If a service failed, open it and check the events and the pods in its namespace. - Administration → Manage nodes: how many Worker nodes are Ready, and whether a Control Plane taint is on the only nodes that can run the workload.
- In namespaces
default,istio-system, and, if the GPU Operator is installed,gpu-operator, find pods whose state is notRunningorCompleted. - If you installed NVIDIA: Administration → Node configuration: NCI
nvidia-drivers,nvidia-runtime-minimal,nvidia-fabricmanager.
kubectl get nodes -o wide
kubectl get pods -A | grep -v "Running\|Completed"
kubectl get events -A --sort-by=.lastTimestamp
kubectl get ssc
kubectl get nci
Then follow the symptom in the table. Do not repeat the whole installation.
Not enough Worker nodes
Istio and the kubeflow-step-* chain create many pods. The GPU Operator is separate and only if you installed NVIDIA. The Control Plane usually has a taint: ordinary pods are not scheduled there. On one Worker, Kubeflow with Istio often does not fit: the scheduler reports Insufficient memory, and the step SSC does not become Healthy.
A Kubeflow installation in a client cluster needs at least three Worker nodes (Control Plane nodes are not included). If other services already run on the Worker nodes, you may need more than three nodes.
A typical pod event:
0/N nodes are available: X Insufficient memory, Y node(s) had untolerated taint(s)
- Administration → Manage nodes: separate Control Plane and Worker. Workers are Ready and have no
control-plane/mastertaint. - Open the Pending pod (often
istiodinistio-system,metadata-writer,workflow-controller,katib-mysqlindefault) → events. Look forFailedSchedulingandInsufficient memory. - If there are fewer than three Workers, add nodes: scaling node groups. For Shturval v2 — adding hosts.
- Wait until the new Worker is Ready and the Cilium agent on it is Running. Until Cilium is Ready, the Istio webhook can answer
no route to host. - If pods still do not become
Running/Readyafter the nodes are added, delete the stuck pods: the controller creates them again.
kubectl get nodes -L node-role.kubernetes.io/control-plane
kubectl describe node <worker>
kubectl describe pod -n <namespace> <pod> | grep -A 20 Events
Add a Worker the usual platform way, then:
kubectl get pods -A -o wide --field-selector spec.nodeName=<new-worker>
kubectl get pods -n istio-system
kubectl delete pod -n default <stuck-pod>
Do not reinstall kubeflow-step-* because of a shortage of nodes: first give the scheduler a place to put the pods. The step chain: step 2 of the Kubeflow installation.
A kubeflow-step stays unhealthy
Kubeflow is installed with SSC kubeflow-step-0 … kubeflow-step-4 in mode Auto (step 2.2). If one SSC stays out of Healthy for a long time, diagnose that step. Do not recreate SSCs that are already working.
First rule out a shortage of Workers. Then see what the pod is waiting for: an image, a volume, the Istio sidecar, or an SSC dependency.
- Installed services → the stuck
kubeflow-step-*→ Manage: mode, state, events. - The service namespace (
default) → pods that are not Ready. Open the pod: events, and theistio-proxycontainer if it is there. - If the Istio sidecar is Incomplete, check the Cilium SSP from step 2.1:
shturval-networkingmust havecni.exclusive: falseandsocketLB.hostNamespaceOnly: true. - Storage / PVCs in
default: a volume from a previous installation isTerminatingorBoundto a deleted pod. Before you delete it, check the related PV, itsreclaimPolicy, the PVC owner, and whether you have a backup. Delete only a confirmed leftover PVC whose data is no longer needed. Then set the SSC back to mode Auto.
kubectl get ssc kubeflow-step-0 kubeflow-step-1 kubeflow-step-2 kubeflow-step-3 kubeflow-step-4
kubectl describe ssc <kubeflow-step-name>
kubectl get pods,pvc -n default
kubectl get events -n default --sort-by=.lastTimestamp
kubectl describe pod -n default <pod>
Cilium SSP: kubectl get shturvalservicepatch shturval-networking-for-istio.
A leftover PVC:
kubectl get pvc -n default
kubectl describe pvc <name> -n default
# Run this only for a confirmed leftover PVC after you have backed up the data.
kubectl delete pvc <name> -n default
If the SSC mode is not Auto, set auto and look at get ssc / the pods again:
kubectl patch ssc <kubeflow-step-name> --type=merge -p '{"spec":{"mode":"auto"}}'
kubectl get ssc <kubeflow-step-name>
Wrong redirect URL
After SSO the browser must return to https://kubeflow.<commonName>/oauth2/callback, then open the Kubeflow UI. Take <commonName> from SSC shturval-ingress-controller in the client cluster — the same way as in the installation.
If the callback goes to another host (often the oauth2-proxy chart default such as https://flow.<…>/oauth2/callback, or the management cluster host), the OIDC client is not the cause: AuthOidcClient in step 1 sets the SSO issuer, and where to return after login is oauth2-proxy.oauth2Cfg.redirect_url on kubeflow-step-1.
An issuer like https://shturval.alpha.<management-host> is normal. It is not normal when, after login, Location does not point to kubeflow.<commonName>.
- Client cluster → Installed services →
shturval-ingress-controller→ Manage → Manifest: savecontroller.shturval.commonName. - Installed services →
kubeflow-step-2: in the Ingress specification the host iskubeflow.<commonName>, notflow.and not the management cluster commonName. - Installed services →
kubeflow-step-1→ Manage → service specification. It must be:
oauth2-proxy:
oauth2Cfg:
oidc_issuer_url: "<OIDC_ISSUER_URL>"
redirect_url: https://kubeflow.<commonName>/oauth2/callback
Take redirect_url from step 2.2. Save the specification.
4. Namespace oauth2-proxy: delete the oauth2-proxy pod so it starts with the new URL. Editing only the ConfigMap in this namespace is not enough: the SSC Helm reconcile overwrites it.
kubectl get ssc shturval-ingress-controller \
-o jsonpath='{.status.appliedCustomValues.controller.shturval.commonName}{"\n"}'
kubectl get ssc kubeflow-step-1 -o yaml | grep -A 20 'oauth2-proxy:'
kubectl get ingress -A | grep -i kubeflow
In the kubeflow-step-1 customvalues, set oauth2-proxy.oauth2Cfg.redirect_url: https://kubeflow.<commonName>/oauth2/callback (the same fragment as in step 2.2), save the SSC, and restart the pod:
kubectl delete pod -n oauth2-proxy -l app.kubernetes.io/name=oauth2-proxy
If the label is missing, find the pod: kubectl get pods -n oauth2-proxy.
After the fix, open https://kubeflow.<commonName>/ in a private window. Otherwise the browser can return an old Location from the cache.
Kubeflow UI: 503 or upstream connect error
In the first minutes after installation the error can appear while Kubeflow components and Istio routes are not ready yet. If the error stays, check the Ingress, istio-ingressgateway, and the sidecar of the target pod. The UI host is set in step 2.2.
- Namespace
istio-system: podistio-ingressgatewayis Running / Ready. - Namespace
default: Dashboard and jupyter-web-app pods are Ready, and the containers includeistio-proxy. - If there is no sidecar — the Istio label.
- Open the UI in a private window. If it works only there — the browser cache.
kubectl get pods -n istio-system -l app=istio-ingressgateway
kubectl get pods -n default -l app=jupyter-web-app
kubectl get pods -n default -l app=jupyter-web-app -o yaml \
| grep -A 3 "name: istio-proxy"
Look at the growth of cx_connect_fail (not a single value) twice, with a pause:
GW=$(kubectl get pods -n istio-system -l app=istio-ingressgateway \
-o jsonpath='{.items[0].metadata.name}')
kubectl exec -n istio-system "${GW}" -c istio-proxy -- \
curl -s localhost:15000/clusters 2>&1 | grep "jupyter-web-app" | grep cx_connect_fail
The browser shows old errors
A useful test: the UI opens in a private window, and in the normal profile you see 503, 405, or an old redirect.
On the page https://kubeflow.<commonName>/:
- F12 → Application → Storage → Clear site data (cookies, cache, Service workers, Local storage).
- Close DevTools and do a hard refresh.
Clearing only cookies is not enough: the Dashboard keeps state in a Service Worker, the HTTP cache, IndexedDB, and LocalStorage.
A Profile is not created, or the namespace has no Istio
How to create a profile is on Kubeflow profiles: create the Profile resource, and the namespace appears on its own. For the service profile kflow-user-admin-namespace, spec.owner.name is the login from the installation (<KUBEFLOW_LOGIN>). For a profile created separately, spec.owner.name is also the platform user login.
profiles-controller adds the label istio-injection=enabled to the profile namespace from ConfigMap profiles-namespace-labels-data-<random-suffix>. Do not edit the ConfigMap by hand: the SSC operator rolls the change back. If the build is older and the label is missing, set it on the profile namespace: check after installation.
- Administration → Custom resources →
kubeflow.org→ Profile: the object exists, and the specification has an owner. - The namespace with the same name: annotation
owner, labelistio-injection=enabled. - If the label is missing — on the current build, check that
kubeflow-step-3is installed: ConfigMapprofiles-namespace-labels-data-<random-suffix>already containsistio-injection: "enabled", and you do not edit it. On an older build, add the labelistio-injection=enabledto the namespace and recreate only the pods that have no sidecar. Do not delete the profile namespace without a backup.
export PROFILE_NAME=<profile-name>
kubectl get namespace "${PROFILE_NAME}" -o yaml
kubectl get profile.kubeflow.org "${PROFILE_NAME}" -o yaml
kubectl get namespace "${PROFILE_NAME}" -o jsonpath='{.metadata.labels.istio-injection}{"\n"}'
kubectl get events -A --sort-by=.lastTimestamp | grep "${PROFILE_NAME}"
Kubeflow pods are created without a sidecar
Namespaces kubeflow, kubeflow-system, and kflow-user-admin-namespace, and the profile namespace, must have the label istio-injection=enabled. In the current kubeflow-step-3 build, ConfigMap profiles-namespace-labels-data-<random-suffix> sets it. Do not edit the ConfigMap. If the label is missing on the namespace, put it back and recreate the pods that have no sidecar.
- Namespaces
kubeflow,kubeflow-system,kflow-user-admin-namespace, and the profile namespace: labelistio-injection=enabled. If the label is missing, add it to the namespace. - Pods in these namespaces: init container
istio-proxy. If it is missing after the label appears, recreate only those pods (delete them, and the ReplicaSet starts new ones with the sidecar).
kubectl get ns kubeflow kubeflow-system kflow-user-admin-namespace \
-o jsonpath='{range .items[*]}{.metadata.name}{" "}{.metadata.labels.istio-injection}{"\n"}{end}'
The expected value is enabled. If the profile namespace has no label:
kubectl label namespace kflow-user-<profile>-namespace istio-injection=enabled
Then recreate the pods that have no sidecar.
The GPU label did not appear
The GPU Operator (step 1) sets nvidia.com/gpu.present=true when NFD sees an NVIDIA PCI device. Without the label, the NCIs from step 2 do not find nodes: nvidia-drivers stays at Applied 0/0. The NCI is not broken. How the selectors work next: GPU Operator and NVIDIA drivers.
- Installed services →
gpu-operator: Auto, Healthy. Pods in namespacegpu-operatorare Running. - Manage nodes → the GPU node → labels:
nvidia.com/gpu.present=true. - Node configuration →
nvidia-drivers: Applied is greater than 0 on the GPU nodes. - If the label is missing, check the state, events, and logs of the
gpu-operatorpods, and whether the NVIDIA device is visible on the node.
Add the label by hand only for diagnostics, not in production. After the check, follow the GPU Operator and the manifests of step 2 again.
kubectl get nodes -L nvidia.com/gpu.present
kubectl get nci nvidia-drivers
kubectl get pods -n gpu-operator
kubectl get events -n gpu-operator --sort-by=.lastTimestamp
Temporarily:
kubectl label node <node-name> nvidia.com/gpu.present=true --overwrite
Kernel versions and NVIDIA packages
NCI nvidia-drivers installs kernel-lt-devel and kernel-lt-headers at one version — the version written in the NCI on GPU Operator and NVIDIA drivers. The example in the manifest is 5.15.178-1.el8 (without the .x86_64 suffix). Take the version from the node page, the Description block. Do not type an arbitrary string. The kernel must be the same on every GPU node. Otherwise the package is not selected, the driver is not built, and Applied goes to an error.
The driver package version (NVIDIA_DRIVER_VERSION) must be in the shturval_rpm_nvidia mirror. The version list is in the parameter table on the GPU page. Do not repeat the curl to the repository from here.
- Manage nodes → each node → Description: the kernel version. Every GPU node shows the same string.
- Node configuration →
nvidia-drivers→ packages:kernel-lt-devel/kernel-lt-headersat the same version as in Description. - If the kernels differ, first align the kernel version on the nodes, then fix the package versions in the NCI (the manifest of step 2). Do not change the version on only one node if the shared NCI applies to the whole group.
kubectl get nodes \
-o jsonpath='{.items[*].status.nodeInfo.kernelVersion}' | tr ' ' '\n' | sort -u
kubectl get nci nvidia-drivers -o yaml | grep -A2 'kernel-lt'
The kernel command must print one line. Compare it with version of the packages in the NCI.
A Notebook with a GPU does not start
Check that a node with the GPU label exists, the runtime NCI is applied, and the pod events do not contain FailedScheduling. Node operations: GPU Operator and NVIDIA drivers.
- The profile namespace → the notebook pod: events and logs. Look for a shortage of
nvidia.com/gpu, the runtime, and the hookdisable-device-node-modification. - Manage nodes / Node configuration: the GPU label and the runtime NCI, as in the sections above.
- Changes to the CDI hook and the toolkit belong in a maintenance window, not on a working node that has a workload.
kubectl describe pod -n <profile-namespace> <notebook-pod>
kubectl logs -n <profile-namespace> <notebook-pod> --all-containers --tail=100
kubectl get events -n <profile-namespace> --sort-by=.lastTimestamp
kubectl get nci
kubectl get nodes -L nvidia.com/gpu.present
Remove the installation by hand
Delete in reverse order: profiles, optional external KServe, Kubeflow, then the GPU Operator and the NCIs if you installed them. Take the manifests again from Install Kubeflow and GPU.
- Check the PVCs/PVs and save the data you need, then delete only the workload Profiles: Kubeflow profiles. Do not delete the service profile
kflow-user-admin-namespaceby hand. - If you configured external KServe — the objects from External access to KServe: Ingress, AuthorizationPolicy, SSP
knative-for-kserve-externalandkserve-path-template, ConfigMapregistry-root-cainknative-serving, and the test InferenceService. - Installed services:
kubeflow-step-4…kubeflow-step-0, thengpu-operator(if you installed it) — mode Off, wait until the release is removed, then delete the instance. - SSP
shturval-networking-for-istio: Manage onshturval-networking→ the SSP tab, or theShturvalServicePatchcustom resource. - If you installed NVIDIA: Node configuration — NCI
nvidia-drivers,nvidia-runtime-minimal,nvidia-fabricmanager, and the NFD rulenvidia-nvswitch. - Check that namespace
oauth2-proxyand the PVCs indefaultare not left behind.
List the profiles, check the related PVCs/PVs, and delete only workload profiles. Do not delete the service profile kflow-user-admin-namespace:
kubectl get profile.kubeflow.org
kubectl get pvc -A
kubectl get pv
kubectl delete profile.kubeflow.org <workload-profile-name>
If you configured external access to KServe:
kubectl delete inferenceservice sklearn-iris -n <profile-namespace> --ignore-not-found
kubectl delete -n istio-system ingress kserve-external --ignore-not-found
kubectl delete -n istio-system authorizationpolicy kserve-inference-access --ignore-not-found
kubectl delete shturvalservicepatch knative-for-kserve-external kserve-path-template --ignore-not-found
kubectl delete configmap registry-root-ca -n knative-serving --ignore-not-found
for ssc in kubeflow-step-4 kubeflow-step-3 kubeflow-step-2 kubeflow-step-1 kubeflow-step-0 gpu-operator; do
kubectl patch ssc "${ssc}" --type=merge -p '{"spec":{"mode":"absent"}}' || true
done
Wait until each Helm release is removed and check the SSC state. Only then delete the objects:
kubectl get ssc kubeflow-step-4 kubeflow-step-3 kubeflow-step-2 kubeflow-step-1 kubeflow-step-0 gpu-operator
for ssc in kubeflow-step-4 kubeflow-step-3 kubeflow-step-2 kubeflow-step-1 kubeflow-step-0 gpu-operator; do
kubectl delete ssc "${ssc}" --ignore-not-found
done
kubectl delete shturvalservicepatch shturval-networking-for-istio --ignore-not-found
kubectl delete nci nvidia-drivers nvidia-runtime-minimal nvidia-fabricmanager --ignore-not-found
kubectl delete nodefeaturerule nvidia-nvswitch --ignore-not-found
kubectl get ns default kubeflow-system oauth2-proxy knative-serving knative-eventing
kubectl get pvc -A
kubectl get pv
A diagnostic file for support
https://kubeflow.<commonName>/.{
echo "=== nodes ==="; kubectl get nodes -o wide
echo "=== pods ==="; kubectl get pods -A
echo "=== events ==="; kubectl get events -A --sort-by='.lastTimestamp' | tail -50
echo "=== ssc ==="; kubectl get ssc
echo "=== nci ==="; kubectl get nci
} > /tmp/kubeflow-diag.txt