1 Star 0 Fork 0

zhuchance / kubernetes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ux.md 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
Eric Tune 提交于 2014-10-16 14:45 . Separated user, dev, and design docs.

Kubernetes UX instructions

Kubernetes User Interface

Kubernetes currently supports a simple web user interface.

Running locally

Start the server:

cluster/kubecfg.sh -proxy -www $PWD/www

The UX should now be running on localhost

Running remotely

When Kubernetes is deployed, the server deploys the UX, you can visit /static/index.html#/groups//selector on your master server.

Interacting with the user interface.

The Kubernetes user interface is a query-based visualization of the Kubernetes API. The user interface is defined by two functional primitives:

GroupBy

GroupBy takes a label key as a parameter, places all objects with the same value for that key within a single group. For example /groups/host/selector groups pods by host. /groups/name/selector groups pods by name. Groups are hiearchical, for example /groups/name/host/selector first groups by pod name, and then by host.

Select

Select takes a label selector and uses it to filter, so only resources which match that label selector are displayed. For example, /groups/host/selector/name=frontend, shows pods, grouped by host, which have a label with the name frontend.

Rebuilding the UX

The UX relies on go-bindata

To install go-bindata:

go get github.com/jteeuwen/go-bindata/...

To rebuild the UX, run the following:

go-bindata -o pkg/ui/datafile.go -prefix ${PWD} -pkg ui www/...
Go
1
https://gitee.com/meoom/kubernetes.git
git@gitee.com:meoom/kubernetes.git
meoom
kubernetes
kubernetes
v0.6.1

搜索帮助

53164aa7 5694891 3bd8fe86 5694891