提交 86080352 编写于 作者: C Christoph Held 提交者: Rob Franken

added toleration to deploy on master (#1399)

上级 4f3a6de5
......@@ -9,23 +9,28 @@ itself.
![Dashboard UI workloads page](docs/dashboard-ui.png)
## Usage
It is likely that the Dashboard is already installed on your cluster. To access it navigate in your
browser to the following URL: `https://<kubernetes-master>/ui`.
## Deployment
It is likely that the Dashboard is already installed on your cluster. Check with the following command:
```bash
kubectl get pods --all-namespaces | grep dashboard
```
If you find that you’re not able to access the Dashboard, you can install and open the latest
stable release by running the following commands:
If it is missing, you can install the latest stable release by running the following command:
```bash
kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml
```
And then navigate to `https://<kubernetes-master>/ui`
Note that for the metrics and graphs to be available you need to have [Heapster](https://github.com/kubernetes/heapster/) running in your cluster.
## Usage
You may access the UI via the apiserver proxy. Open a browser and navigate to `https://<kubernetes-master>/ui`.
Please note, this works only if the apiserver is setup to allow authentication with username and password. Currently, the setup tool `kubeadm` is not doing so. If username and password is unknown to you then use `kubectl config view` to find it.
If it asks for a password, use `$ kubectl config view` to find it.
Note that for the metrics and graphs to be available you need to have [Heapster](https://github.com/kubernetes/heapster/) running in your cluster.
## Alternative Usage
Alternatively, you may access the UI via the Service Proxy. This is useful if you have a `kubectl`
Alternatively, you may access the UI via the kubectl proxy. This is useful if you have a `kubectl`
configured with access to the cluster, but lack password credentials for use in a browser:
```bash
......
......@@ -32,6 +32,17 @@ spec:
metadata:
labels:
app: kubernetes-dashboard
# Comment the following annotaion if Dashboard must not be deployed on master
annotations:
scheduler.alpha.kubernetes.io/tolerations: |
[
{
"key": "dedicated",
"operator": "Equal",
"value": "master",
"effect": "NoSchedule"
}
]
spec:
containers:
- name: kubernetes-dashboard
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册