Add admin user service account and update dashboard access instructions in README

This commit is contained in:
2024-09-16 09:28:19 +08:00
parent 06014f6cf6
commit 3c13802cf2
2 changed files with 41 additions and 3 deletions
+8 -3
View File
@@ -126,8 +126,13 @@ NOTE: In case port-forward command does not work, make sure that kong service na
Dashboard will be available at:
https://localhost:8443
kubectl -n kubernetes-dashboard create serviceaccount kubernetes-dashboard
serviceaccount/kubernetes-dashboard created
kubectl -n kubernetes-dashboard create token kubernetes-dashboard
# Create a service account for the dashboard
kubectl apply -f dashboard-adminuser.yaml
kubectl get secret admin-user -n kubernetes-dashboard -o jsonpath={".data.token"} | base64 -d
# kubectl -n kubernetes-dashboard create serviceaccount admin-user
# serviceaccount/kubernetes-dashboard created
kubectl -n kubernetes-dashboard create token admin-user
```