我是靠谱客的博主 忧心热狗,最近开发中收集的这篇文章主要介绍rancher UI 使用,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

1.Running rancher UI

  The UI and API will be available on the exposed port 8080. After the docker image is downloaded, it will take a minute or two before Rancher has successfully started and is available to view.
  Navigate to the following URL: http://192.168.5.156 :8080. The 192.168.5.156 is the public IP address of the host that is running Rancher server.
  Once the UI is up and running, you can start by adding hosts or select a container orchestration from the Infrastructure catalog. By default, if a different container orchestration type is not selected, the environment will be using cattle. After the hosts are added into Rancher, you can start adding services or launch templates from the Rancher catalog.
  
这里写图片描述


2.Add a host

  Please pay attention to the words that are shown on the screen:Before adding your first service or launching a container, you’ll need to add a Linux host that supports Docker v1.10.3 or higher. Add a host
Click “Add a host”,which will immediately bring you to the Hosts page.

这里写图片描述

  Rancher will prompt you to select a host registration URL. This URL is where Rancher server is running and must be reachable from all the hosts that you will be adding. This is useful in installations where Rancher server will be exposed to the Internet through a NAT firewall or a load balancer. If your host has a private or local IP address like 192.168.., Rancher will print a warning asking you to make sure that the hosts can indeed reach the URL.
  For now you can ignore these warnings, we will only be adding the Rancher server host itself. Click Save. By default, the Custom option will be selected, which provides the Docker command to launch the Rancher agent container. There will also be options for cloud providers, which Rancher uses Docker Machine to launch hosts.
  After clicking “Save”, it brings you to the page blew like this:
  
这里写图片描述

  In the UI, it provides instructions of the ports that need to be open on your host as well as some optional information. Since we are adding a host that is also running Rancher server, we need to add the public IP that should be used for the host. One of the options provides the ability to input this IP, which automatically updates the custom command with an environment variable.
  Run this command in the host that is running Rancher server.
  When you click Close on the Rancher UI, you will be directed back to the Infrastructure -> Hosts view. In a couple of minutes, the host will automatically appear.

最后

以上就是忧心热狗为你收集整理的rancher UI 使用的全部内容,希望文章能够帮你解决rancher UI 使用所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(51)

评论列表共有 0 条评论

立即
投稿
返回
顶部