Web Kubectl

    KubeSphere provides web kubectl on the console for user convenience. By default, in the current version, only the account granted the role (such as the default account admin) has the permission to use web kubectl for cluster resource operation and management.

    This tutorial demonstrates how to use web kubectl to operate on and manage cluster resources.

    1. You can see the kubectl interface in the pop-up window. If you have enabled the multi-cluster feature, you need to select the target cluster first from the drop-down list in the upper-right corner. This drop-down list is not visible if the multi-cluster feature is not enabled.

    2. Use the following syntax to run kubectl commands from your terminal window:

      1. kubectl [command] [TYPE] [NAME] [flags]

      Note

      • Where command, TYPE, , and flags are:
        • TYPE: Specifies the resource type. Resource types are case-insensitive and you can specify the singular, plural, or abbreviated forms.
        • NAME: Specifies 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: Specifies optional flags. For example, you can use the -s or flags to specify the address and port of the Kubernetes API server.