dapr dashboard crashes in kubernetes env

Created on 7 Aug 2020  路  4Comments  路  Source: dapr/dapr

In what area(s)?

/area dashboard

What version of Dapr?

0.9.0

Expected Behavior

Dapr dashboard should initialize properly

Actual Behavior

Seeing this:-
NAME READY STATUS RESTARTS AGE
dapr-dashboard-66d748c75-bfdzs 0/1 ErrImagePull 0 42s
dapr-operator-7d85cc6fb4-45xls 1/1 Running 0 42s

Logs:-
~/dapr/dapr % k logs dapr-dashboard-66d748c75-bfdzs -n dapr-system
Error from server (BadRequest): container "dapr-dashboard" in pod "dapr-dashboard-66d748c75-bfdzs" is waiting to start: trying and failing to pull image

Steps to Reproduce the Problem

  1. Deployed dapr master branch using the steps below:
    https://github.com/dapr/dapr/blob/master/docs/development/developing-dapr.md#developing-on-kubernetes-environment
  2. Check the deployment
    kubectl get pods -n dapr-system
kinbug

All 4 comments

@willdavsmith , can you take a look ? It seems like image pull issue.

As per the development guide, for using locally built images, container registry is changed to users registry by using export DAPR_REGISTRY=docker.io/<your_docker_hub_account>. The build commands then pushes the images to that container registry. Dashboard is not built in this repo so its images are not pushed to user configured registry. dashboard images should always come from official registry,
makefile target docker-deploy-k8s sets the registry to user configured repo for helm install https://github.com/dapr/dapr/blob/master/Makefile#L196
Looks like, it would need a change in helm chart for dashboard to always pull from official repo rather than user configured repo.

@amanbha , should we make that change along with Dashboard 0.2.0 release? Seems like it should be a simple fix.

@amanbha , should we make that change along with Dashboard 0.2.0 release? Seems like it should be a simple fix.

Yes, sounds good.

Was this page helpful?
0 / 5 - 0 ratings