Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes-dashboard low version #22

Closed
wenbingzhang opened this issue Nov 26, 2021 · 21 comments
Closed

kubernetes-dashboard low version #22

wenbingzhang opened this issue Nov 26, 2021 · 21 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@wenbingzhang
Copy link

wenbingzhang commented Nov 26, 2021

k8s v18
system centos7

kubernetes-dashboard the server could not find the requested resource
iShot2021-11-26 17 49 33

@cloudnativer
Copy link
Owner

cloudnativer commented Nov 26, 2021

This is caused by version mismatch. We have solved this problem in kube-install v0.7.3.

v073update001

@cloudnativer
Copy link
Owner

cloudnativer commented Nov 26, 2021

kube-install v0.7.3 fixes many problems and supports more practical features, such as supporting multiple CNI plug-ins, supporting multiple operating systems in the same cluster, skipping kernel upgrade, etc...

v073update002

We recommend that you use the latest version of kube install v0.7.3 or above !

@cloudnativer
Copy link
Owner

You can get the kube-install v0.7.3 from the link below:
https://github.com/cloudnativer/kube-install/releases/tag/v0.7.3

@cloudnativer cloudnativer self-assigned this Nov 26, 2021
@cloudnativer cloudnativer added bug Something isn't working wontfix This will not be worked on labels Nov 26, 2021
@wenbingzhang
Copy link
Author

The “Kubernetes-dashboard”is still not working
image

@wenbingzhang
Copy link
Author

wenbingzhang commented Nov 29, 2021

Looks like a missing “Dashboard-metrics-scraper.”

https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

@wenbingzhang
Copy link
Author

wenbingzhang commented Nov 29, 2021

can add a switch to install “kubernetes-dashboard”. Because “kubernetes-dashboard”isn’t necessary.

@houseonline
Copy link
Collaborator

The “Kubernetes-dashboard”is still not working
image

In fact, in the new version, Dashboard is already running normally. The "Dashboard-metrics-scraper" you see is used to display the monitoring graph on the Dashboard interface, "Dashboard-metrics-scraper" is an additional plug-in, and "Dashboard-metrics-scraper" is not necessary.

@houseonline
Copy link
Collaborator

houseonline commented Nov 29, 2021

can add a switch to install “kubernetes-dashboard”. Because “kubernetes-dashboard”isn’t necessary.

"Kubernetes-dashboard" is used on the web interface of "kube-install", and "kube-install" integrates the most basic "kubernetes-dashboard" by default (not including "Dashboard-metrics-scraper"), so for the time being will not become an option. We can integrate "Dashboard-metrics-scraper" in future versions.

@wenbingzhang
Copy link
Author

看起来像是缺少“仪表板指标抓取工具”。
https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

如果需要“Dashboard-metrics-scraper”,可以在Dashboard的基础上手动添加“Dashboard-metrics-scraper”。

您可以使用以下代码附加“Dashboard-metrics-scraper”:

kind: Deployment
apiVersion: apps/v1
metadata:
  labels:
    k8s-app: dashboard-metrics-scraper
  name: dashboard-metrics-scraper
  namespace: kubernetes-dashboard
spec:
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      k8s-app: dashboard-metrics-scraper
  template:
    metadata:
      labels:
        k8s-app: dashboard-metrics-scraper
      annotations:
        seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
    spec:
      containers:
        - name: dashboard-metrics-scraper
          image: kubernetesui/metrics-scraper:v1.0.6
          ports:
            - containerPort: 8000
              protocol: TCP
          livenessProbe:
            httpGet:
              scheme: HTTP
              path: /
              port: 8000
            initialDelaySeconds: 30
            timeoutSeconds: 30
          volumeMounts:
          - mountPath: /tmp
            name: tmp-volume
          securityContext:
            allowPrivilegeEscalation: false
            readOnlyRootFilesystem: true
            runAsUser: 1001
            runAsGroup: 2001
      serviceAccountName: kubernetes-dashboard
      nodeSelector:
        "kubernetes.io/os": linux
      # Comment the following tolerations if Dashboard must not be deployed on master
      tolerations:
        - key: node-role.kubernetes.io/master
          effect: NoSchedule
      volumes:
        - name: tmp-volume
          emptyDir: {}

Yes, I’ve added “Dashboard-metrics-scraper.”

@wenbingzhang
Copy link
Author

看起来像是缺少“仪表板指标抓取工具”。
https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

如果需要“Dashboard-metrics-scraper”,可以在Dashboard的基础上手动添加“Dashboard-metrics-scraper”。

您可以使用以下代码附加“Dashboard-metrics-scraper”:

kind: Deployment
apiVersion: apps/v1
metadata:
  labels:
    k8s-app: dashboard-metrics-scraper
  name: dashboard-metrics-scraper
  namespace: kubernetes-dashboard
spec:
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      k8s-app: dashboard-metrics-scraper
  template:
    metadata:
      labels:
        k8s-app: dashboard-metrics-scraper
      annotations:
        seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
    spec:
      containers:
        - name: dashboard-metrics-scraper
          image: kubernetesui/metrics-scraper:v1.0.6
          ports:
            - containerPort: 8000
              protocol: TCP
          livenessProbe:
            httpGet:
              scheme: HTTP
              path: /
              port: 8000
            initialDelaySeconds: 30
            timeoutSeconds: 30
          volumeMounts:
          - mountPath: /tmp
            name: tmp-volume
          securityContext:
            allowPrivilegeEscalation: false
            readOnlyRootFilesystem: true
            runAsUser: 1001
            runAsGroup: 2001
      serviceAccountName: kubernetes-dashboard
      nodeSelector:
        "kubernetes.io/os": linux
      # Comment the following tolerations if Dashboard must not be deployed on master
      tolerations:
        - key: node-role.kubernetes.io/master
          effect: NoSchedule
      volumes:
        - name: tmp-volume
          emptyDir: {}

Finally, I didn’t use “Kubernetes-dashboard,”and it seems that the new version of HTTPS isn’t working, and I don’t know how to fix it.

@wenbingzhang
Copy link
Author

Install it by default if you feel you need to.

can add a switch to install “kubernetes-dashboard”. Because “kubernetes-dashboard”isn’t necessary.

"Kubernetes-dashboard" is used on the web interface of "kube-install", and "kube-install" integrates the most basic "kubernetes-dashboard" by default (not including "Dashboard-metrics-scraper"), so for the time being Will not become an option. We can integrate "Dashboard-metrics-scraper" in future versions.

can add a switch to install “kubernetes-dashboard”. Because “kubernetes-dashboard”isn’t necessary.

"Kubernetes-dashboard" is used on the web interface of "kube-install", and "kube-install" integrates the most basic "kubernetes-dashboard" by default (not including "Dashboard-metrics-scraper"), so for the time being Will not become an option. We can integrate "Dashboard-metrics-scraper" in future versions.

Install it by default if you feel you need to.

@cloudnativer
Copy link
Owner

cloudnativer commented Nov 29, 2021

Finally, I didn’t use “Kubernetes-dashboard,”and it seems that the new version of HTTPS isn’t working, and I don’t know how to fix it.

This is the problem of browser security policy setting. The official dashboard also has similar instructions. You can set browser security parameters or allow k8s self signed certificates.

  • If you are using a Chrome browser, you can set the security permission, or enter "thisisunsafe" on the keyboard.
  • If you use Firefox browser, you can skip the security prompt and access it directly.

@wenbingzhang
Copy link
Author

If you are using a Chrome browser, you can set the security permission, or enter "thisisunsafe" on the keyboard.

I use Chrome, which works for me. Thank you!

@houseonline
Copy link
Collaborator

Firefox browser can skip opening directly, which is more convenient.

@wenbingzhang
Copy link
Author

Firefox browser can skip opening directly, which is more convenient.

This is my habit and I don’t want to change it for the time being.

@wenbingzhang
Copy link
Author

“Kubernetes-dashboard”is not a necessity for me, and “Dashboard-metrics-scraper”is not a necessity, and I want the clustering to be as simple as possible.

@cloudnativer
Copy link
Owner

We have recorded your requirements, kube-dashboard can be made optional in future versions.

@wenbingzhang
Copy link
Author

We have recorded your requirements, kube-dashboard can be made optional in future versions.

I am using “Lens”for K8s management.

@houseonline
Copy link
Collaborator

I am using “Lens”for K8s management.

oh, This is great.

@cloudnativer
Copy link
Owner

@wenbingzhang
Copy link
Author

Next Version Feature Preview: https://github.com/cloudnativer/kube-install/blob/master/docs/roadmap.md

This is great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants