Issue with deploying docker image to kubernetes

6/30/2018

I have this Dockerfile

FROM alpine:latest
ADD HelloWorld.class HelloWorld.class
RUN apk --update add openjdk8-jre   
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom","HelloWorld"]

Following this google cloud tutorial https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app

I have successfully created image and push.

But once I run this

kubectl run hello-app --image=gcr.io/${PROJECT_ID}/hello-world:v1 

Its giving error CrashLoopBackOff on pod. Can any one help me to run this image on kubernetes?

-- user1115163
dockerfile
google-kubernetes-engine
java

0 Answers