When I started working with minishift, I did not have much experience with Openshift. I was struggling with some problems and I had no idea what was going on. These were the problems:
- Builds failed to push to registry
- Deployments got stuck when pulling image
- Could not access an application via a Route
- Could not log in to the web console as administrator
The first three problems were caused by the "docker-registry" and "router" deployments on the "default" namespace that failed to start.
The solution to these problems is quite simple and involve just a few commands on the terminal:
# login first as admin user
oc login -u system:admin
# restart "docker-registry"
oc -n default rollout latest dc/docker-registry
# restart "router"
oc -n default rollout latest dc/router
# allow "admin" user to log in to the web console
oc adm policy add-cluster-role-to-user cluster-admin admin
Now you can work with minishift with no more problems!