mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 12:11:43 +00:00
Set kubernetes-dashboard as the default UI addon
Dashboard release info: https://github.com/kubernetes/dashboard/releases/tag/v0.1.0 This replaces kube-ui addon
This commit is contained in:
@@ -32,56 +32,75 @@ Documentation for other releases can be found at
|
||||
|
||||
<!-- END MUNGE: UNVERSIONED_WARNING -->
|
||||
|
||||
# Kubernetes User Interface
|
||||
# Kubernetes Dashboard User Interface
|
||||
|
||||
Kubernetes has a web-based user interface that displays the current cluster state graphically.
|
||||
Kubernetes has a web-based user interface that allows users to manage applications running in
|
||||
the cluster, troubleshoot them, as well as manage the cluster itself.
|
||||
|
||||
## Accessing the UI
|
||||
## Accessing the Dashboard
|
||||
|
||||
By default, the Kubernetes UI is deployed as a cluster addon. To access it, visit `https://<kubernetes-master>/ui`, which redirects to `https://<kubernetes-master>/api/v1/proxy/namespaces/kube-system/services/kube-ui/#/dashboard/`.
|
||||
By default, the Kubernetes Dashboard is deployed as a cluster addon. To access it, visit
|
||||
`https://<kubernetes-master>/ui`, which redirects to
|
||||
`https://<kubernetes-master>/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard`.
|
||||
|
||||
If you find that you're not able to access the UI, it may be because the kube-ui service has not been started on your cluster. In that case, you can start it manually with:
|
||||
If you find that you're not able to access the Dashboard, it may be because the kubernetes-dashboard
|
||||
service has not been started on your cluster. In that case, you can start it manually with:
|
||||
|
||||
```sh
|
||||
kubectl create -f cluster/addons/kube-ui/kube-ui-rc.yaml --namespace=kube-system
|
||||
kubectl create -f cluster/addons/kube-ui/kube-ui-svc.yaml --namespace=kube-system
|
||||
kubectl create -f cluster/addons/dashboard/dashboard-controller.yaml --namespace=kube-system
|
||||
kubectl create -f cluster/addons/dashboard/dashboard-service.yaml --namespace=kube-system
|
||||
```
|
||||
|
||||
Normally, this should be taken care of automatically by the [`kube-addons.sh`](http://releases.k8s.io/HEAD/cluster/saltbase/salt/kube-addons/kube-addons.sh) script that runs on the master.
|
||||
Normally, this should be taken care of automatically by the
|
||||
[`kube-addons.sh`](http://releases.k8s.io/HEAD/cluster/saltbase/salt/kube-addons/kube-addons.sh)
|
||||
script that runs on the master. Release notes and development versions of the Dashboard can be
|
||||
found at https://github.com/kubernetes/dashboard/releases.
|
||||
|
||||
## Using the UI
|
||||
## Overview
|
||||
|
||||
The Kubernetes UI can be used to introspect your current cluster, such as checking how resources are used, or looking at error messages. You cannot, however, use the UI to modify your cluster.
|
||||
The Dashboard can be used to introspect a cluster, such as show applications running on the
|
||||
cluster, or surface problems in in the state of services. You can also use the UI to modify
|
||||
your cluster. For example, you can deploy applications or change their number of replicas.
|
||||
|
||||
### Node Resource Usage
|
||||
### Using the Dashboard
|
||||
|
||||
After accessing Kubernetes UI, you'll see a homepage dynamically listing out all nodes in your current cluster, with related information including internal IP addresses, CPU usage, memory usage, and file systems usage.
|
||||

|
||||
When the accessed Dashboard works on an empty cluster, it shows welcome page with links to user
|
||||
guide and documentation. It also allows to deploy to the cluster your first application.
|
||||

|
||||
|
||||
### Dashboard Views
|
||||
### Deploying applications
|
||||
|
||||
Click on the "Views" button in the top-right of the page to see other views available, which include: Explore, Pods, Nodes, Replication Controllers, Services, and Events.
|
||||
With Dashboard you can deploy a replicated application using a simple form that guides through all
|
||||
required steps. All that is needed is a container image URI
|
||||
(e.g., on Google Container Registry or Docker Hub) and knowledge on what ports the image exposes.
|
||||
A replicated application that is deployed through the form is a replication controller plus optional
|
||||
service (if port mappings are specified).
|
||||
|
||||
#### Explore View
|
||||

|
||||
|
||||
The "Explore" view allows your to see the pods, replication controllers, and services in current cluster easily.
|
||||

|
||||
The "Group by" dropdown list allows you to group these resources by a number of factors, such as type, name, host, etc.
|
||||

|
||||
You can also create filters by clicking on the down triangle of any listed resource instances and choose which filters you want to add.
|
||||

|
||||
To see more details of each resource instance, simply click on it.
|
||||

|
||||
The application deploy form has more options view where advanced configuration settings for the
|
||||
deployed application can be changed, e.g., namespace or image pull secret.
|
||||
|
||||
### Other Views
|
||||

|
||||
|
||||
Other views (Pods, Nodes, Replication Controllers, Services, and Events) simply list information about each type of resource. You can also click on any instance for more details.
|
||||

|
||||
#### Applications view
|
||||
|
||||
Main Dashboard view shows all applications that are running in the cluster. Applications are
|
||||
denoted by cards that represent a replication controller plus zero or more services. Cards show
|
||||
overview information of applications and allow for simple modifications (e.g., edit replica count)
|
||||
and logs viewing. If error state is detected for a card, it is surfaced to the user.
|
||||
|
||||

|
||||
|
||||
The application details page lists all replicas together with basic information about them.
|
||||
The events page displays events that are related to replicas of the application.
|
||||
|
||||

|
||||
|
||||
## More Information
|
||||
|
||||
For more information, see the [Kubernetes UI development document](http://releases.k8s.io/HEAD/www/README.md) in the www directory.
|
||||
|
||||
For more information, see the
|
||||
[Kubernetes Dashboard repository](https://github.com/kubernetes/dashboard).
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
|
Reference in New Issue
Block a user