Hello!!
The Dockerfile for my web application image, that I deployed within
Kubernetes, looks like this :
FROM tomcat:8-jre8
ADD sample.war /usr/local/tomcat/webapps/
CMD ["catalina.sh", "run"]
It works fine without volumes!!
But when I try something like the script below, so I can include volumes,
my website doesn't load :
spec:
containers:
- image: gcr.io/projectid/demo:v1
name: web-pod
ports:
- containerPort: 8080
volumeMounts:
- name: persistent-storage
mountPath: /usr/local/tomcat/webapps
volumes:
- name: persistent-storage
persistentVolumeClaim:
claimName: web-pv-claim
I just wanna share a folder between my web pods ?!?!
--
You received this message because you are subscribed to the Google Groups
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.