Use web kubectl
Describes how to use kubectl in the KSV web console.
Kubectl is a command line tool for Kubernetes. You can run kubectl commands to deploy applications, query and manage cluster resources, and query logs.
KubeSphere Virtualization (KSV) web console provides web kubectl on the console for user convenience. By default, only user admin has the permission to use web kubectl for cluster resource O&M.
This topic describes how to use web kubectl to operate on and manage cluster resources.
Procedure
Log in to the KSV web console as user admin.
In the lower-right corner of the page, hover over and select Kubectl.
In the CLI that appears, enter kubectl commands to query and manage Kubernetes cluster resources. For example, run the following command to query the status of all PVCs in the cluster:
kubectl get pvc --all-namespaces
In the CLI, run kubectl commands based on the following syntax:
kubectl [command] [TYPE] [NAME] [flags]
The following table describes the parameters command, TYPE, NAME, and flags in the commands.
Parameter Description commandThe operation that you want to perform on one or more resources, such as create, get, describe, and delete.TYPEThe resource type. Resource types are case-insensitive and you can use the singular, plural, or abbreviated forms.NAMEThe name of the resource. Names are case-sensitive. If the name is omitted, details for all resources are displayed, such as kubectl get pods.flagsThe optional flags. For example, you can use the -s or --server flags to specify the address and port of the Kubernetes API server.To obtain more information about commands, run kubectl help in the CLI or see Kubernetes Kubectl CLI.