欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ubuntu microk8s install dashboard

程序员文章站 2022-05-31 14:53:27
...

一. install dashboard

https://virtualizationreview.com/articles/2019/01/30/microk8s-part-2-how-to-monitor-and-manage-kubernetes.aspx

 

1. microk8s.enable dns dashboard ingress

2. microk8s.kubectl get all

3. microk8s.kubectl proxy --accept-hosts=.* --address=0.0.0.0 &

 

http://{Ubuntu_IP_address}:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

 

二. enable skip login

https://github.com/ubuntu/microk8s/issues/292#issuecomment-492367399

 

1. microk8s.kubectl edit deployment/kubernetes-dashboard --namespace=kube-system

 

and add enable-skip-login as below:

template:
    metadata:
      creationTimestamp: null
      labels:
        k8s-app: kubernetes-dashboard
    spec:
      containers:
      - args:
        - --auto-generate-certificates
        - --namespace=kube-system
        - --enable-skip-login
        image: kubernetesui/dashboard:v2.0.0-beta5
        imagePullPolicy: Always

 

上一篇: 假装肚子疼

下一篇: 人到三十多