dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Add Dockerfile

Open ghosind opened this issue 1 year ago • 1 comments

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add the dockerfile to dockerize the dashboard.

Which issue(s) this PR fixes:

For #27

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


ghosind avatar Sep 14 '24 09:09 ghosind

I have a small question. The login interface requires a token. How to obtain this token?

Hi @wbc6080 , It requires a k8s service account with the admin cluster role, and uses kubectl create token <service-account> command to obtain the token.

there is an example to obtain a token:

kubectl create serviceaccount test-user -n kube-system
kubectl create clusterrolebinding test-user-binding --clusterrole=cluster-admin --serviceaccount=kube-system:test-user -n kube-system
kubectl create token test-user --namespace kube-system

ghosind avatar Oct 15 '24 06:10 ghosind

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fisherxu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

kubeedge-bot avatar Oct 30 '24 03:10 kubeedge-bot