Kubernetes 仪表板(Dashboard)的使用

安装 dashboard 文档


kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml


creating-sample-user

apiVersion: v1
kind: ServiceAccount
metadata:
  name: admin-user
  namespace: kubernetes-dashboard

---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard

---



Getting a Bearer Token


kubectl -n kubernetes-dashboard create token admin-user


参考文档

  1. web-ui-dashboard
  2. github kubernets dashboard
  3. kubenertes authentication & authorization
  4. kubenertes authentication & authorization

上一篇 kubernets网络组件calico和kuve-ovn初始化

下一篇 ingress-nginx 配置例子

posted @ 2022-10-27 14:34  jingjingxyk  阅读(71)  评论(0编辑  收藏  举报