官术网_书友最值得收藏!

  • Getting Started with Kubernetes
  • Jonathan Baier Jesse White
  • 374字
  • 2021-06-10 19:46:58

Kubernetes UI

Since Kubernetes v1.3.x, you can no longer authenticate through public IP addresses to the GUI. To get around this, we'll use the kubectl proxy command. First, grab the token from the configuration command, and then we'll use it to launch a local proxy version of the UI:

$ kubectl config view |grep token
token: RvoYTIn4rExi1bNRzk56g0PU0srZbzOf
$ kubectl proxy --port=8001

Open a browser and enter the following URL: https://localhost/ui/.

You can also type these commands to open a browser window automatically if you're on macOS:  $ open https://localhost/ui/  or  $ xdg-open https://localhost/ui  if you're on Linux.

The certificate is self-signed by default, so you'll need to ignore the warnings in your browser before proceeding. After this, we will see a login dialog:

At this login dialog, you'll need to input the token that you grabbed in the aforementioned command.

This is where we use the credentials listed during the K8s installation. We can find them at any time by simply using the config command  $ kubectl config view.

Use the Token option and log in to your cluster:

Now that we have entered our token, you should see a dashboard like the one in the following screenshot:

The main dashboard takes us to a page with not much display at first. There is a link to deploy a containerized app that will take you to a GUI for deployment. This GUI can be a very easy way to get started deploying apps without worrying about the YAML syntax for Kubernetes. However, as your use of containers matures, it's a good practice to use the YAML definitions that are checked in to source control.

If you click on the Nodes link on the left-hand side menu, you will see some metrics on the current cluster nodes:

At the top, we can see an aggregate of the CPU and memory use followed by a listing of our cluster nodes. Clicking on one of the nodes will take us to a page with detailed information about that node, its health, and various metrics.

The Kubernetes UI has a lot of other views that will become more useful as we start launching real applications and adding configurations to the cluster.

主站蜘蛛池模板: 大理市| 进贤县| 通许县| 榕江县| 万安县| 徐州市| 梅河口市| 邹城市| 大埔县| 金平| 隆德县| 屯昌县| 哈尔滨市| 铁力市| 米脂县| 巴楚县| 新蔡县| 青河县| 吉水县| 宁蒗| 井冈山市| 历史| 保靖县| 彭山县| 龙胜| 长子县| 汨罗市| 黑水县| 清涧县| 达尔| 绥棱县| 淮南市| 张家港市| 饶河县| 古交市| 黄浦区| 壶关县| 洛南县| 周至县| 新乡县| 宁阳县|