• Cloud-Native Container ProductsCloud-Native Container Products
    • KubeSphere Enterprisehot
    • KubeSphere Virtualizationhot
    • KubeSphere Enterprise HCI
  • Cloud-Native ServiceCloud-Native Service
    • KubeSphere Backuphot
    • KubeSphere Litenew
    • KubeSphere Inspectornew
  • Public Cloud Container ServicePublic Cloud Container Service
    • KubeSphere on AWS
    • KubeSphere on DigitalOcean

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

  1. Log in to the KSV web console as user admin.

  2. In the lower-right corner of the page, hover over 18px and select Kubectl.

  3. 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
  4. 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.

    ParameterDescription
    command
    The operation that you want to perform on one or more resources, such as create, get, describe, and delete.
    TYPE
    The resource type. Resource types are case-insensitive and you can use the singular, plural, or abbreviated forms.
    NAME
    The name of the resource. Names are case-sensitive. If the name is omitted, details for all resources are displayed, such as kubectl get pods.
    flags
    The 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.

KubeSphere ®️ © QingCloud Technologies 2022