Kubeflow profiles
After Kubeflow is installed, the administrator service profile is already there. Additional workspaces are created with a Profile resource — the namespace appears on its own.
A Kubeflow Profile is a resource of the kubeflow.org API group. It creates a workspace for a team or a user. For the rights model, SSO, and how profiles are assigned, see How Shturval and Kubeflow are connected.
Do not use the default and kubeflow-system namespaces as team workspaces. Kubeflow services are installed in default, and the training controllers (Trainer, JobSet) run in kubeflow-system. For a team's ML work, create a separate Profile — a namespace with the same name is created automatically.
Default profile
The Kubeflow installation (kubeflow-step-4) creates the default Profile kflow-user-admin-namespace (label app.kubernetes.io/managed-by: Helm).
apiVersion: kubeflow.org/v1
kind: Profile
metadata:
annotations:
meta.helm.sh/release-name: kubeflow-step-4-<characters>
meta.helm.sh/release-namespace: default
creationTimestamp: 2026-08-20T08:17:11Z
finalizers:
- profile-finalizer
generation: 2
labels:
app.kubernetes.io/managed-by: Helm
name: kflow-user-admin-namespace
resourceVersion: "8245826"
uid: 7bc
spec:
owner:
kind: User
name: "<KUBEFLOW_LOGIN>"
resourceQuotaSpec: {}
The default profile provides:
- immediately after installation, a namespace and a workspace for the owner with login
<KUBEFLOW_LOGIN>from Install Kubeflow; - the Dashboard and the notebooks/pipelines API rely on this Profile. Without it the UI does not open after SSO;
- Model Registry pods run in this namespace;
- access in this namespace is granted with access sets that include a Kubeflow role, the same way as for any other profile.
Do not create the service profile by hand and do not delete it while kubeflow-step-4 is installed. For teams and other users, create a separate Profile — see below.
Check that the default profile is in the cluster:
kubeflow.org → Profile: object kflow-user-admin-namespace, and owner.name in the specification matches the login <KUBEFLOW_LOGIN> from the installation. The namespace list contains a namespace with the same name.kubectl get profile.kubeflow.org kflow-user-admin-namespace -o yaml
kubectl get namespace kflow-user-admin-namespace --show-labels
Before you create a profile
Before you create a Kubeflow profile in the client cluster, make sure that:
- Kubeflow is installed: Install Kubeflow;
- the CRD
profiles.kubeflow.organd the service Profilekflow-user-admin-namespaceexist.
Services and repositories → Installed services: kubeflow-step-0 … kubeflow-step-4 are in mode Auto and state Healthy.
Administration → Custom resources: group kubeflow.org, resource Profile.
kubectl get crd profiles.kubeflow.org
kubectl get ssc kubeflow-step-0 kubeflow-step-1 kubeflow-step-2 kubeflow-step-3 kubeflow-step-4
kubectl get profile.kubeflow.org
Create a Profile
The Profile name becomes the namespace name. Set the platform user login in spec.owner.name. For the service profile kflow-user-admin-namespace, owner.name is the same login <KUBEFLOW_LOGIN> as user-namespace.profiles[].name in the kubeflow-step-4 installation.
- Open the client cluster.
- Import the manifest: Importing manifests → paste the YAML → Check → Save.
apiVersion: kubeflow.org/v1
kind: Profile
metadata:
name: team-a
spec:
owner:
kind: User
name: admin
| Parameter | Required | Purpose | Where to get it | Example |
|---|---|---|---|---|
spec.owner.kind | Yes | profile owner type | always User | User |
spec.owner.name | Yes | platform user login, not an email address | the same login as in access management and in the User custom resource (auth.shturval.tech) | admin — the built-in administrator |
Replace admin with your profile name and the owner login if the workspace is for another user.
You can also create the profile in Administration → Custom resources → API group kubeflow.org → Profile → + Add.
- Wait until the namespace appears in the cluster namespace list. To open the Kubeflow UI: the namespace page → Kubeflow.
kubectl apply -f - <<'EOF'
apiVersion: kubeflow.org/v1
kind: Profile
metadata:
name: team-a
spec:
owner:
kind: User
name: admin
EOF
Replace admin with the owner login if the profile is not for the administrator. The controller creates the namespace team-a.
The namespace must get the label istio-injection=enabled. In the current kubeflow-step-3 build, ConfigMap profiles-namespace-labels-data-<random-suffix> sets it for profiles from the installation and for profiles created by profiles-controller. 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.
Check the profile
- Custom resources →
kubeflow.org→ Profile: the object exists, andowner.namein the specification is a login, not an email address. - Namespace list: a namespace with the same name exists, and it has the label
istio-injection=enabled. - The namespace page has a Kubeflow button.
export PROFILE_NAME=team-a
kubectl get profile.kubeflow.org "${PROFILE_NAME}"
kubectl get namespace "${PROFILE_NAME}" --show-labels
kubectl get namespace "${PROFILE_NAME}" -o jsonpath='{.metadata.labels.istio-injection}{"\n"}'
The expected label is enabled.
Assign a Kubeflow access set to the owner or the group: Permissions, Assigning access rights.
Access assigned to an OIDC group works through kubectl and when you connect to a Notebook with Connect. Because of a limit in profiles-kfam, the namespace may still be absent from the Kubeflow UI list.
If the namespace did not appear or the Istio label is missing: troubleshooting.
Delete a Profile
Delete only workload Profiles. Do not delete the service profile kflow-user-admin-namespace — kubeflow-step-4 manages it. Before deletion, check the PVCs, the related PVs, and their reclaimPolicy. Back up the data you need to keep. You do not need to delete the namespace separately in advance.
- Open the profile namespace and check its PVCs and related PVs. Save the data you need.
- Custom resources →
kubeflow.org→ Profile → the object (notkflow-user-admin-namespace) → Delete. - Confirm that the namespace is gone, and check the PV state.
kubectl get pvc -n team-a
kubectl get pv
# Run this after you have backed up the data you need.
kubectl delete profile.kubeflow.org team-a
kubectl get namespace team-a
kubectl get pv
Delete a PV in the Released state with reclaimPolicy=Retain by hand only after you confirm that the saved data is no longer needed.