百度智能云

All Product Document

          Cloud Container Engine

          Use Kubectl Under Windows

          • After creating the cluster, download the kubectl tool of Windows version, such as, the 64 bit tool, as follows:

          • After downloading, unzip it to any directory, such as disk D.

          • Enter the user's folder under the directory C:\users \, for example, if the user name is foo, the folder should be C:\users\foo. At the same time, enter the directory and create the folder. kube.

          • On the cluster list page, download the cluster configuration file, place it in the . kube folder created in the previous step, and rename it to config.

          • Open windows command line prompt.

          • Enter the directory where the kubectl file is stored and runkubectl.exe get node to view the nodes of the cluster.

          • In the same directory, create the dashboard.yaml file, whose content is the dashboard.yaml in the previous article. For example, you can use Notepad to create:

          • Then enter kubectl.exe create -f dashboard.yaml to create dashboard.

          • Check whether the creation is successful by the command kubectl.exe get pod --all namespaces.

          • Enter kubectl.exe proxy to open proxy, and then access 127.0.0.1:8001/ui in the browser to access the dashboard.

          Previous
          How do Service Applications Use Load Balance
          Next
          FAQs in Automatic Scaling