Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version:v1.22.3
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: Linux centos7
CNI and version: 0.3.1
CRI and version:
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.
I use command below:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.5.0/aio/deploy/recommended.yaml
then:
kubernetes-dashboard dashboard-metrics-scraper-6f5b969fd8-bdrld 0/1 CrashLoopBackOff 1 (6s ago) 8s 172.16.2.182 10.235.30.129 <none> <none>
kubernetes-dashboard kubernetes-dashboard-cf7bd44b-sx5lq 1/1 Running 0 9s 172.16.3.101 10.235.30.127 <none> <none>
exec command below:
kubectl logs dashboard-metrics-scraper-6f5b969fd8-bdrld -n kubernetes-dashboard
err log:
W0907 08:27:28.672671 1 client_config.go:549] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
log: exiting because of error: log: cannot create log: open /tmp/metrics-sidecar.dashboard-metrics-scraper-6f5b969fd8-bdrld.unknownuser.log.WARNING.20220907-082728.1: no such file or directory