This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Docker and Kubernetes -- how to see what errors are happening?  RSS feed

 
author
Posts: 23811
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, not sure if this is the best place for this, so may move this topic around later...

To start, I got Docker and Kubernetes working fine on my Windows 10 laptop. I am able to start and attach onto the image fine. Next step, I changed the YAML file so that it will mount a directory on my laptop (using the host path option). This doesn't work -- and leaves the image stuck on startup...

C:\> kubectl get pods
NAME                       READY     STATUS                  RESTARTS   AGE
umstore                    0/1         ContainerCreating   0                1h



So, I guess the questions are... Specifically related to my issues, what should I look at? And in general, related to all issues, how do I get better visibility on what is going on? Of course, I can't fix something, if I don't know why the image isn't starting.

Thanks for any hints,
Henry
 
Author
Posts: 16
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try running kubectl describe pods   (or kubectl describe pod umstore). You'll see a list of events at the bottom, which should tell you why the container isn't starting.
 
Henry Wong
author
Posts: 23811
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Marko Luksa wrote:You can try running kubectl describe pods   (or kubectl describe pod umstore). You'll see a list of events at the bottom, which should tell you why the container isn't starting.



Thanks. Visibility is a great thing....

Looks like the error is ... "hostPath type check failed: C:\umstuff is not a directory". The directory is definitely there. Additionally, since I thought it may be a Linux / Windows difference, I also tried "C:/umstuff" and "C:\\umstuff". They all failed. Could this be a permissions thingy?

Thanks,
Henry
 
Bartender
Posts: 20146
103
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have one running in front of me right now, but the dashboard webapp has always supplied me with information about what's causing my problems.

The dashboard's URL should be displayed as part of the startup messages when you run kubectl from a command line.
 
Henry Wong
author
Posts: 23811
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:I don't have one running in front of me right now, but the dashboard webapp has always supplied me with information about what's causing my problems.



Interesting. There is a dashboard...

Running "kubectl proxy" starts and gives access to the dashboard. However, going to the dashboard is just a JSON list of stuff. Is there something that I missed?

Henry
 
Tim Holloway
Bartender
Posts: 20146
103
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you should see a full-fledged control panel, complete with status of each managed container and a sidebar.

Like this
 
Henry Wong
author
Posts: 23811
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, definitely not getting that. I guess I need to look into it some more...

Henry
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!