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

minikube dashboard 실행시 url 출력되지 않는 오류 #49

Closed
papercrane55123 opened this issue Feb 21, 2024 · 13 comments
Closed

minikube dashboard 실행시 url 출력되지 않는 오류 #49

papercrane55123 opened this issue Feb 21, 2024 · 13 comments
Labels

Comments

@papercrane55123
Copy link

papercrane55123 commented Feb 21, 2024

$ minikube dashboard
🔌  Enabling dashboard ...
    ▪ Using image docker.io/kubernetesui/dashboard:v2.7.0
    ▪ Using image docker.io/kubernetesui/metrics-scraper:v1.0.8
💡  Some dashboard features require the metrics-server addon. To enable all features please run:

        minikube addons enable metrics-server


🤔  Verifying dashboard health ...
🚀  Launching proxy ...
🤔  Verifying proxy health ...

image

@Seull1
Copy link

Seull1 commented Feb 21, 2024

minikube dashboard
🤔  Verifying dashboard health ...
🚀  Launching proxy ...
🤔  Verifying proxy health ...

이상태 무한로딩입니다..
image

image

@pySatellite
Copy link
Contributor

제가 찾은 방법은

@parc02
Copy link

parc02 commented Feb 21, 2024

저의 증상도 위 두분과 동일한것 같습니다

image

image

하단의 두개가 정상적으로 작동하지 않음을 확인 했습니다.

$ kubectl get pods --all-namespaces -o wide

image

@pySatellite
Copy link
Contributor

pySatellite commented Feb 21, 2024

점심 먹고 로그를 살펴 보아요

$ minikube logs --file=/home/<user>/temp/minikube-logs.txt

@qkralsgml78
Copy link

qkralsgml78 commented Feb 21, 2024

url 안떴을 때 addons 리스트 상황

image

Error 확인

스크린샷 2024-02-21 143810

해결 과정

대쉬보드 실행

image

metrics-server enabled & disabled 반복

image
image
image

##성공
image

성공했을 때 addons 리스트

image

참고

@minu1215
Copy link

sudo sysctl net/netfilter/nf_conntrack_max=131072

저는 아까 sudo 로 minikube start 해서 됐는지 모르겠지만
Verifying proxy health ... 에서 멈춰있으면,
도움이 될까 하여 올립니다.

@Jaelinny
Copy link

Jaelinny commented Feb 21, 2024

저도 안됐었는데 아래와 같이 하니까 되었습니다 !

image

image

image

image

해결과정

$ kubectl get svc kubernetes-dashboard -n kubernetes-dashboard
NAME                   TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
kubernetes-dashboard   ClusterIP   10.108.19.238   <none>        80/TCP    6m44s

$ minikube stop

- 정상적으로 stop 되었는지 확인
$ kubectl get svc kubernetes-dashboard -n kubernetes-dashboard
error: cluster "minikube" does not exist

$ minikube start

$ kubectl get svc kubernetes-dashboard -n kubernetes-dashboard
NAME                   TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
kubernetes-dashboard   ClusterIP   10.108.19.238   <none>        80/TCP    10m

$ minikube service kubernetes-dashboard -n kubernetes-dashboard
|----------------------|----------------------|-------------|--------------|
|      NAMESPACE       |         NAME         | TARGET PORT |     URL      |
|----------------------|----------------------|-------------|--------------|
| kubernetes-dashboard | kubernetes-dashboard |             | No node port |
|----------------------|----------------------|-------------|--------------|
😿  service kubernetes-dashboard/kubernetes-dashboard has no node port
🏃  Starting tunnel for service kubernetes-dashboard.
|----------------------|----------------------|-------------|------------------------|
|      NAMESPACE       |         NAME         | TARGET PORT |          URL           |
|----------------------|----------------------|-------------|------------------------|
| kubernetes-dashboard | kubernetes-dashboard |             | http://127.0.0.1:39839 |
|----------------------|----------------------|-------------|------------------------|
🎉  Opening service kubernetes-dashboard/kubernetes-dashboard in default browser...
👉  http://127.0.0.1:39839
❗  Because you are using a Docker driver on linux, the terminal needs to be open to run it.

$ curl -v http://127.0.0.1:30000
*   Trying 127.0.0.1:30000...
* connect to 127.0.0.1 port 30000 failed: Connection refused
* Failed to connect to 127.0.0.1 port 30000 after 0 ms: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 127.0.0.1 port 30000 after 0 ms: Connection refused

$ kubectl get pods --all-namespaces -o wide
NAMESPACE              NAME                                         READY   STATUS    RESTARTS      AGE   IP             NODE       NOMINATED NODE   READINESS GATES
kube-system            coredns-5dd5756b68-9hgjr                     1/1     Running   1 (18m ago)   33m   10.244.0.6     minikube   <none>           <none>
kube-system            etcd-minikube                                1/1     Running   1 (18m ago)   33m   192.168.49.2   minikube   <none>           <none>
kube-system            kube-apiserver-minikube                      1/1     Running   1 (18m ago)   33m   192.168.49.2   minikube   <none>           <none>
kube-system            kube-controller-manager-minikube             1/1     Running   1 (18m ago)   33m   192.168.49.2   minikube   <none>           <none>
kube-system            kube-proxy-28pgm                             1/1     Running   1 (18m ago)   33m   192.168.49.2   minikube   <none>           <none>
kube-system            kube-scheduler-minikube                      1/1     Running   1 (18m ago)   33m   192.168.49.2   minikube   <none>           <none>
kube-system            storage-provisioner                          1/1     Running   3 (17m ago)   33m   192.168.49.2   minikube   <none>           <none>
kubernetes-dashboard   dashboard-metrics-scraper-7fd5cb4ddc-9xfzv   1/1     Running   0             27m   10.244.0.7     minikube   <none>           <none>
kubernetes-dashboard   kubernetes-dashboard-8694d4445c-d4lxp        1/1     Running   0             27m   10.244.0.5     minikube   <none>           <none>

$ minikube dashboard
🤔  Verifying dashboard health ...
🚀  Launching proxy ...
🤔  Verifying proxy health ...
🎉  Opening http://127.0.0.1:37551/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ in your default browser...
👉  http://127.0.0.1:37551/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/

@parc02
Copy link

parc02 commented Feb 21, 2024

  • 아래와 같이 명령어를 작성하여 start 하였고 아래의 오류가 나타납니다
==================
$ minikube logs -f

Feb 21 05:39:29 minikube kubelet[2496]: E0221 05:39:29.026135    2496 pod_workers.go:1300] "Error syncing pod, skipping" err="failed to \"StartContainer\" for \"kubernetes-dashboard\" with ImagePullBackOff: \"Back-off pulling image \\\"docker.io/kubernetesui/dashboard:v2.7.0@sha256:2e500d29e9d5f4a086b908eb8dfe7ecac57d2ab09d65b24f588b1d449841ef93\\\"\"" pod="kubernetes-dashboard/kubernetes-dashboard-8694d4445c-gl55t" podUID="6e655e7a-3923-426c-b209-b14fa3266b06"
Feb 21 05:39:33 minikube kubelet[2496]: E0221 05:39:33.605482    2496 remote_image.go:180] "PullImage from image service failed" err="rpc error: code = Unknown desc = Error response from daemon: Get \"https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on 192.168.0.37:53: server misbehaving" image="docker.io/kubernetesui/metrics-scraper:v1.0.8@sha256:76049887f07a0476dc93efc2d3569b9529bf982b22d29f356092ce206e98765c"
Feb 21 05:39:33 minikube kubelet[2496]: E0221 05:39:33.605536    2496 kuberuntime_image.go:53] "Failed to pull image" err="Error response from daemon: Get \"https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on 192.168.0.37:53: server misbehaving" image="docker.io/kubernetesui/metrics-scraper:v1.0.8@sha256:76049887f07a0476dc93efc2d3569b9529bf982b22d29f356092ce206e98765c"
Feb 21 05:39:33 minikube kubelet[2496]: E0221 05:39:33.605624    2496 kuberuntime_manager.go:1256] container &Container{Name:dashboard-metrics-scraper,Image:docker.io/kubernetesui/metrics-scraper:v1.0.8@sha256:76049887f07a0476dc93efc2d3569b9529bf982b22d29f356092ce206e98765c,Command:[],Args:[],WorkingDir:,Ports:[]ContainerPort{ContainerPort{Name:,HostPort:0,ContainerPort:8000,Protocol:TCP,HostIP:,},},Env:[]EnvVar{},Resources:ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{},Claims:[]ResourceClaim{},},VolumeMounts:[]VolumeMount{VolumeMount{Name:tmp-volume,ReadOnly:false,MountPath:/tmp,SubPath:,MountPropagation:nil,SubPathExpr:,},VolumeMount{Name:kube-api-access-vpghc,ReadOnly:true,MountPath:/var/run/secrets/kubernetes.io/serviceaccount,SubPath:,MountPropagation:nil,SubPathExpr:,},},LivenessProbe:&Probe{ProbeHandler:ProbeHandler{Exec:nil,HTTPGet:&HTTPGetAction{Path:/,Port:{0 8000 },Host:,Scheme:HTTP,HTTPHeaders:[]HTTPHeader{},},TCPSocket:nil,GRPC:nil,},InitialDelaySeconds:30,TimeoutSeconds:30,PeriodSeconds:10,SuccessThreshold:1,FailureThreshold:3,TerminationGracePeriodSeconds:nil,},ReadinessProbe:nil,Lifecycle:nil,TerminationMessagePath:/dev/termination-log,ImagePullPolicy:IfNotPresent,SecurityContext:&SecurityContext{Capabilities:nil,Privileged:nil,SELinuxOptions:nil,RunAsUser:*1001,RunAsNonRoot:nil,ReadOnlyRootFilesystem:*true,AllowPrivilegeEscalation:*false,RunAsGroup:*2001,ProcMount:nil,WindowsOptions:nil,SeccompProfile:nil,},Stdin:false,StdinOnce:false,TTY:false,EnvFrom:[]EnvFromSource{},TerminationMessagePolicy:File,VolumeDevices:[]VolumeDevice{},StartupProbe:nil,ResizePolicy:[]ContainerResizePolicy{},RestartPolicy:nil,} start failed in pod dashboard-metrics-scraper-7fd5cb4ddc-kklhs_kubernetes-dashboard(496f61df-7421-4f6e-8a8a-f6ed9eae7cfb): ErrImagePull: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 192.168.0.37:53: server misbehaving
Feb 21 05:39:33 minikube kubelet[2496]: E0221 05:39:33.605653    2496 pod_workers.go:1300] "Error syncing pod, skipping" err="failed to \"StartContainer\" for \"dashboard-metrics-scraper\" with ErrImagePull: \"Error response from daemon: Get \\\"https://registry-1.docker.io/v2/\\\": dial tcp: lookup registry-1.docker.io on 192.168.0.37:53: server misbehaving\"" pod="kubernetes-dashboard/dashboard-metrics-scraper-7fd5cb4ddc-kklhs" podUID="496f61df-7421-4f6e-8a8a-f6ed9eae7cfb"
Feb 21 05:39:45 minikube kubelet[2496]: E0221 05:39:45.028084    2496 pod_workers.go:1300] "Error syncing pod, skipping" err="failed to \"StartContainer\" for \"dashboard-metrics-scraper\" with ImagePullBackOff: \"Back-off pulling image \\\"docker.io/kubernetesui/metrics-scraper:v1.0.8@sha256:76049887f07a0476dc93efc2d3569b9529bf982b22d29f356092ce206e98765c\\\"\"" pod="kubernetes-dashboard/dashboard-metrics-scraper-7fd5cb4ddc-kklhs" podUID="496f61df-7421-4f6e-8a8a-f6ed9eae7cfb"
^C
 ✘ parc02@LAPTOP-7JU88FJN  ~  minikube start --docker-env HTTP_PROXY=https://minikube.sigs.k8s.io/docs/reference/networking/proxy/

@pySatellite
Copy link
Contributor

k8s 공식 이슈에 몇가지 를 시도해 보아요.

저 같은 경우는 아래와 같이 스타트 하여요. 잘됩니다.
minikube start --docker-env HTTP_PROXY=https://minikube.sigs.k8s.io/docs/reference/networking/proxy/

minikube dashboard
🔌  Enabling dashboard ...
    ▪ Using image docker.io/kubernetesui/dashboard:v2.7.0
    ▪ Using image docker.io/kubernetesui/metrics-scraper:v1.0.8
💡  Some dashboard features require the metrics-server addon. To enable all features please run:

        minikube addons enable metrics-server


🤔  Verifying dashboard health ...
🚀  Launching proxy ...
🤔  Verifying proxy health ...
🎉  Opening http://127.0.0.1:40877/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ in your default browser...
👉  http://127.0.0.1:40877/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/

@parc02
Copy link

parc02 commented Feb 21, 2024

안되는 컴 상황

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

@parc02
Copy link

parc02 commented Feb 21, 2024

문제

❗  This container is having trouble accessing https://registry.k8s.io
💡  To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/

해결

kubernetes/minikube#3036

@jsmin6330
Copy link

jsmin6330 commented Feb 21, 2024

$ minikube start 시, 아래 오류가 나올 때
❗This container is having trouble accessing https://k8s.gcr.io

💡참고 할만한 이슈
kubernetes/minikube#3036

@papercrane55123
Copy link
Author

ImagePullBackOff

$ kubectl get po -A
NAMESPACE              NAME                                         READY   STATUS             RESTARTS        AGE
kube-system            coredns-5dd5756b68-hbgmf                     1/1     Running            1 (2m59s ago)   4m33s
kube-system            etcd-minikube                                1/1     Running            1 (3m4s ago)    4m47s
kube-system            kube-apiserver-minikube                      1/1     Running            1 (2m54s ago)   4m44s
kube-system            kube-controller-manager-minikube             1/1     Running            1 (3m4s ago)    4m45s
kube-system            kube-proxy-wkf6m                             1/1     Running            1 (3m4s ago)    4m33s
kube-system            kube-scheduler-minikube                      1/1     Running            1 (3m4s ago)    4m44s
kube-system            storage-provisioner                          1/1     Running            3 (69s ago)     4m43s
kubernetes-dashboard   dashboard-metrics-scraper-7fd5cb4ddc-z6qjm   0/1     ImagePullBackOff   0               3m33s
kubernetes-dashboard   kubernetes-dashboard-8694d4445c-fn6xh        0/1     ImagePullBackOff   0               3m33s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants