Kubernetes基础自学系列 | 使用Helm部署dashboard

视频来源:B站《2021 年末倾力打造 Kubernetes 入门至精通 - 2022 年幸福的开胃菜》

一边学习一边整理老师的课程内容及试验笔记,并与大家分享,侵权即删,谢谢支持!

附上汇总贴:Kubernetes基础自学系列 | 汇总_COCOgsta的博客-CSDN博客


使用Helm部署 dashboard

kubernetes-dashboard.yaml:

image:
  repository: hub.hongfu.com/library/kubernetes-dashboard-amd64
  tag: v1.10.1
ingress:
  enabled: true
  hosts: 
    - k8s.frognew.com
  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
  tls:
    - secretName: frognew-com-tls-secret
      hosts:
      - k8s.frognew.com
rbac:
  clusterAdminRole: true
$ helm install . \
-n kubernetes-dashboard \
--namespace kube-system  \
-f kubernetes-dashboard.yaml
$ kubectl -n kube-system get secret | grep kubernetes-dashboard-token                 kubernetes.io/service-account-token   3      3m7s 

$ kubectl describe -n kube-system secret/kubernetes-dashboard-token-pkm2s
$ kubectl  edit svc kubernetes-dashboard -n kube-system
        修改 ClusterIP 为 NodePort

你可能感兴趣的:(视频学习笔记,kubernetes,docker,容器)