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

hello-minikube image k8s.gcr.io/echoserver:1.10 fails on minishift #3

Closed
lance opened this issue Aug 10, 2018 · 6 comments
Closed

hello-minikube image k8s.gcr.io/echoserver:1.10 fails on minishift #3

lance opened this issue Aug 10, 2018 · 6 comments

Comments

@lance
Copy link
Contributor

lance commented Aug 10, 2018

Following the steps in the installation and getting started doc produces the following errors in the pod's log messages when running kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080.


Generating self-signed cert
--
  | mkdir: cannot create directory '/certs': Permission denied
  | Generating a 2048 bit RSA private key
  | ..................................................+++
  | ...............................+++
  | unable to write 'random state'
  | writing new private key to '/certs/privateKey.key'
  | /certs/privateKey.key: No such file or directory
  | 140052491175576:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/certs/privateKey.key','w')
  | 140052491175576:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
  | Starting nginx
  | 2018/08/10 19:57:39 [emerg] 8#8: BIO_new_file("/certs/certificate.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/certs/certificate.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
  | nginx: [emerg] BIO_new_file("/certs/certificate.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/certs/certificate.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)

The minishift and oc versions.

~ minishift version
minishift v1.22.0+7163416
~ oc version
oc v3.9.0+191fece
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth

Server https://192.168.99.100:8443
kubernetes v1.10.0
@burrsutter
Copy link
Owner

Thanks! Interesting that the error is around the certificate. I can come up with a better "test" image for kubectl run that works better in minikube and minishift

@praveenkumar
Copy link

praveenkumar commented Aug 16, 2018

@burrsutter we didn't try out ourself to do that kind of deployment but will try and put the comment back to this issue.

Added @budhram @LalatenduMohanty

@praveenkumar
Copy link

@burrsutter @lance looks like you need to enable anyuid addon since echoserver image is not able to run with anyuid which created by openshift.

$ minishift delete
$ minishift addon enable anyuid
$ minishift start
[.. Normal steps]

@lance
Copy link
Contributor Author

lance commented Aug 18, 2018

@praveenkumar thank for helping with this. Could this be done during the Create VM section where the admin-user addon is enabled? https://github.com/burrsutter/9stepsawesome/blob/master/1_installation_started.adoc

@lance
Copy link
Contributor Author

lance commented Aug 27, 2018

@burrsutter it seems that this should close this issue. Correct?

@burrsutter
Copy link
Owner

Closed, thank you for your help!

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

No branches or pull requests

3 participants