mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 00:30:18 +00:00
32 lines
636 B
YAML
32 lines
636 B
YAML
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: javaweb-2
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: resouer/sample:v2
|
||
|
name: war
|
||
|
lifecycle:
|
||
|
postStart:
|
||
|
exec:
|
||
|
command:
|
||
|
- "cp"
|
||
|
- "/sample.war"
|
||
|
- "/app"
|
||
|
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
|
||
|
volumes:
|
||
|
- name: app-volume
|
||
|
emptyDir: {}
|
||
|
|