dashboard
dashboard copied to clipboard
Add Dockerfile
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?:
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
[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
- ~~OWNERS~~ [fisherxu]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment