Enabled and disabled MLOps Studio component validation

Scenario - Kubeflow with Notebooks, KServe and Spark

1. Objective

Verify that a cluster created only with:

  • Notebooks,

  • KServe,

  • Spark,

works correctly and that the disabled components:

  • Pipelines,

  • Katib,

  • Model Registry,

  • Trainer,

  • Volumes Web App,

are not available.

This is a quick smoke test. It does not include extensive functional testing.

2. Prerequisites

  1. Create a new Kubernetes/Kubeflow cluster in the cluster management panel.

  2. Enable:

    • Notebooks,

    • KServe,

    • Spark.

  3. Disable:

    • Pipelines,

    • Katib,

    • Model Registry,

    • Trainer,

    • Volumes.

  4. Wait until the cluster is ready.

  5. Download the user kubeconfig.

  6. Prepare:

    • the user namespace,

    • a simple KServe manifest,

    • a known working SparkApplication manifest, for example spark-pi.yaml.

3. Environment setup

export KUBECONFIG=<PATH_TO_KUBECONFIG>
export NS=<NAMESPACE_NAME>

Verify user access:

kubectl auth can-i list pods -n "$NS"

Expected result: yes.

4. Quick UI verification

Log in to Kubeflow Dashboard.

Verify that the following are available:

  • Notebooks,

  • KServe functionality, if your distribution exposes it in the UI.

Spark may not have a separate Dashboard page.

Verify that the following are not available:

  • Pipelines,

  • Katib / Experiments,

  • Model Registry,

  • Trainer,

  • Volumes.

Additionally

When creating a Notebook, there should be no integration options for:

  • Pipelines,

  • Model Registry.

Expected result: disabled components are not visible and there are no empty or broken links.

5. Verify APIs of enabled components

Run:

kubectl api-resources | grep -i notebook
kubectl api-resources | grep -i inferenceservice
kubectl api-resources | grep -i sparkapplication

Expected result:

  • Notebook,

  • InferenceService,

  • SparkApplication

are available.

6. Minimal Notebooks test

  1. Create a small Notebook from the UI.

  2. Use small CPU and memory values.

  3. Wait approximately 60 seconds.

  4. Check:

kubectl get notebooks -n "$NS"
kubectl get pods -n "$NS"

Expected result:

  • the Notebook exists,

  • its pod is Running,

  • all containers are ready, for example 2/2.

Open JupyterLab and run:

print("Notebook works")

Expected result: the text is displayed correctly.

7. Minimal KServe test

Set the name:

export ISVC=iris-sk

Create a simple InferenceService:

cat <<EOF | kubectl apply -n "$NS" -f -
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
  name: $ISVC
spec:
  predictor:
    model:
      modelFormat:
        name: sklearn
      storageUri: gs://kfserving-examples/models/sklearn/1.0/model
      resources:
        requests:
          cpu: 100m
          memory: 512Mi
        limits:
          cpu: "1"
          memory: 1Gi
EOF

Wait up to 120 seconds:

kubectl wait -n "$NS" \
  --for=condition=Ready \
  "inferenceservice/$ISVC" \
  --timeout=120s

Check the status:

kubectl get inferenceservice "$ISVC" -n "$NS"

Expected result: READY=True.

This minimal scenario does not require public DNS to work. A correct Ready=True status is sufficient.

8. Minimal Spark test

Use a known working manifest, for example spark-pi.yaml.

kubectl apply -n "$NS" -f spark-pi.yaml
kubectl get sparkapplications -n "$NS"

Wait up to approximately 120 seconds, then check again:

kubectl get sparkapplications -n "$NS"

Expected result: the application reaches COMPLETED.

If the manifest downloads an image or JAR from an external repository, the first run may take longer.

9. Minimal Katib test with kubectl

Run:

cat <<'EOF' | kubectl apply --validate=false -n "$NS" -f -
apiVersion: kubeflow.org/v1beta1
kind: Experiment
metadata:
  name: disabled-katib-test
spec: {}
EOF

Expected error:

no matches for kind "Experiment" in version "kubeflow.org/v1beta1"

This confirms that the Experiment API is not available.

10. Minimal Pipelines and Model Registry test with kubectl

Before the test, stop or remove unnecessary workloads if the namespace has a small CPU or memory quota.

Create one small diagnostic pod:

cat <<'EOF' | kubectl apply -n "$NS" -f -
apiVersion: v1
kind: Pod
metadata:
  name: disabled-components-test
  annotations:
    sidecar.istio.io/inject: "false"
spec:
  restartPolicy: Never
  containers:
    - name: curl
      image: curlimages/curl
      command: ["sh", "-c"]
      args:
        - |
          echo "=== PIPELINES ==="
          curl -sv --connect-timeout 3 --max-time 5 \
            http://ml-pipeline.kubeflow.svc.cluster.local:8888/ || true
          echo "=== MODEL REGISTRY ==="
          curl -sv --connect-timeout 3 --max-time 5 \
            http://model-registry-service.model-registry.svc.cluster.local:8080/ || true
      resources:
        requests:
          cpu: 10m
          memory: 16Mi
        limits:
          cpu: 50m
          memory: 64Mi
EOF

Wait approximately 20 seconds, then run:

kubectl get pod disabled-components-test -n "$NS"
kubectl logs disabled-components-test -n "$NS"

Expected result for both addresses:

Could not resolve host

Interpretation:

  • the Pipelines Service does not exist,

  • the Model Registry Service does not exist,

  • the components are not available inside the cluster.

If the pod remains in SchedulingGated, this means there is insufficient Kueue quota. It does not mean that Pipelines or Model Registry is available. Free CPU and memory and repeat the test.

11. Minimal test from the Notebook terminal

Run in the terminal of the running Notebook:

curl -sv --connect-timeout 3 --max-time 5 \
http://ml-pipeline.kubeflow.svc.cluster.local:8888/
curl -sv --connect-timeout 3 --max-time 5 \
http://model-registry-service.model-registry.svc.cluster.local:8080/

Check Katib API resources:

TOKEN="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"; \
curl -sS --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt \
-H "Authorization: Bearer $TOKEN" \
https://kubernetes.default.svc/apis/kubeflow.org/v1beta1

Expected result:

  • Pipelines: Could not resolve host,

  • Model Registry: Could not resolve host,

  • the API response does not contain experiments, trials, or suggestions.

The presence of notebooks and profiles is correct.

12. Volumes verification

The missing Volumes page means that Volumes Web App is not installed. It does not mean that Kubernetes PVC support is disabled.

Check:

kubectl auth can-i create persistentvolumeclaims -n "$NS"
kubectl get pvc -n "$NS"

Expected result:

  • the user can create PVCs,

  • the Notebook PVC may be Bound,

  • the Volumes page is still not visible in the UI.

13. Pass criteria

The test passes when:

  • the Notebook starts and runs simple code,

  • the InferenceService reaches Ready=True,

  • the SparkApplication reaches COMPLETED,

  • Pipelines is not visible in the UI and its Service does not exist,

  • Model Registry is not visible in the UI and its Service does not exist,

  • Katib does not expose the Experiment resource,

  • Trainer is not visible in the UI,

  • Volumes Web App is not visible,

  • Kubernetes PVC functionality still works,

  • the Notebook creation form does not offer Pipelines or Model Registry integration.

14. Cleanup

kubectl delete pod disabled-components-test -n "$NS" --ignore-not-found
kubectl delete inferenceservice "$ISVC" -n "$NS" --ignore-not-found
kubectl delete -n "$NS" -f spark-pi.yaml --ignore-not-found

Delete the Notebook from the UI. Delete PVCs only if they are no longer required.