File tree 2 files changed +55
-0
lines changed
2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -300,6 +300,49 @@ Start proxy
300
300
kubectl proxy
301
301
```
302
302
303
+ ### Dashboard
304
+
305
+ #### Minikube
306
+
307
+ ```
308
+ minikube addons enable dashboard
309
+ ```
310
+
311
+ See the dashboard: < http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/ >
312
+
313
+ or just:
314
+
315
+ ```
316
+ minikube dashboard
317
+ ```
318
+
319
+ Which start a new proxy, activate the dashboard and open it in the browser.
320
+
321
+ ### Production cluster (AWS, RKE, Digital Ocean)
322
+
323
+ Source of Kubernetes Dashboard - https://github.com/kubernetes/dashboard
324
+
325
+ ```
326
+ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.4/aio/deploy/recommended.yaml
327
+ ```
328
+
329
+ See the dashboard: http://127.0.0.1:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
330
+
331
+ ** DON'T RUN ON PRODUCTION** : If you want to grant permissions to dashboard without need for a token, you can run this:
332
+
333
+ ```
334
+ kubectl patch deployment \
335
+ kubernetes-dashboard \
336
+ --namespace kubernetes-dashboard \
337
+ --type='json' \
338
+ --patch='[{"op": "replace", "path": "/spec/template/spec/containers/0/args", "value": [
339
+ "--auto-generate-certificates",
340
+ "--enable-insecure-login",
341
+ "--enable-skip-login",
342
+ "--namespace=kubernetes-dashboard"
343
+ ]}]'
344
+ ```
345
+
303
346
### Create Pod
304
347
305
348
```
Original file line number Diff line number Diff line change
1
+ apiVersion : rbac.authorization.k8s.io/v1
2
+ kind : ClusterRoleBinding
3
+ metadata :
4
+ name : kubernetes-dashboard-cluster-admin
5
+ roleRef :
6
+ apiGroup : rbac.authorization.k8s.io
7
+ kind : ClusterRole
8
+ name : cluster-admin
9
+ subjects :
10
+ - kind : ServiceAccount
11
+ name : kubernetes-dashboard
12
+ namespace : kubernetes-dashboard
You can’t perform that action at this time.
0 commit comments