Edit System Resources on the Console
When you install Kube AI Hub, the workspace system-workspace is created where all Kube AI Hub system projects and Kubernetes system projects run. To avoid any misoperation on both systems, you are not allowed to edit resources in the workspace directly on the console. However, you can still make adjustments to resources using kubectl.
This tutorial demonstrates how to enable the editing function of system-workspace resources.
Warning
system-workspace may cause unexpected results, such as Kube AI Hub system and node failures, and your business may be affected. Please be extremely careful about the operation.Edit the Console Configuration
-
Log in to Kube AI Hub as
admin. Click
in the lower-right corner and select Kubectl. -
Execute the following command:
kubectl -n kubesphere-system edit cm ks-console-config -
Add the
systemWorkspacefield underclientand save the file.client: version: kubesphere: v3.4.1 kubernetes: v1.22.12 openpitrix: v3.4.0 enableKubeConfig: true systemWorkspace: "$" # Add this line manually. -
Redeploy
ks-consoleby executing the following command and wait for Pods to be recreated.kubectl -n kubesphere-system rollout restart deployment ks-console -
Refresh the Kube AI Hub console and you can see that editing buttons in projects in
system-workspaceappear. -
If you want to disable the editing function on the console, delete the field
systemWorkspaceby following the same steps above.