Skip to content

Commit

Permalink
convert to use initContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamink authored and Benjamin Krein committed Sep 7, 2018
1 parent e392127 commit 0d8e4d2
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions staging/javaweb-tomcat-sidecar/javaweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ kind: Pod
metadata:
name: javaweb
spec:
initContainers:
- image: resouer/sample:v1
name: war
volumeMounts:
- mountPath: /app
name: app-volume
containers:
- image: resouer/sample:v1
name: war
volumeMounts:
- mountPath: /app
name: app-volume
- image: resouer/mytomcat:7.0
name: tomcat
command: ["sh","-c","/root/apache-tomcat-7.0.42-v2/bin/start.sh"]
volumeMounts:
- mountPath: /root/apache-tomcat-7.0.42-v2/webapps
name: app-volume
ports:
- containerPort: 8080
hostPort: 8001
- image: resouer/mytomcat:7.0
name: tomcat
command: ["sh", "-c", "/root/apache-tomcat-7.0.42-v2/bin/start.sh"]
volumeMounts:
- mountPath: /root/apache-tomcat-7.0.42-v2/webapps
name: app-volume
ports:
- containerPort: 8080
hostPort: 8001
volumes:
- name: app-volume
emptyDir: {}

- name: app-volume
emptyDir: {}

0 comments on commit 0d8e4d2

Please sign in to comment.