kubernetes1.16.1安装dashboard v2.0.0-beta4

  sre

yaml文件下载:

https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta4/aio/deploy/recommended.yaml

修改https服务暴露方式为NodePort

---

kind: Service
apiVersion: v1
metadata:
  labels:
    k8s-app: kubernetes-dashboard
  name: kubernetes-dashboard
  namespace: kubernetes-dashboard
spec:
  type: NodePort
  ports:
    - port: 443
      targetPort: 8443
      nodePort: 30000
  selector:
    k8s-app: kubernetes-dashboard

---

获取token

kubectl describe secret/(kubectl get secret -n kube-system |grep admin|awk '{print1}') -n kube-system

火狐浏览器打开(谷歌浏览器不认这个证书):

https://172.16.0.20:30000

贴入token

LEAVE A COMMENT

Captcha Code