diff --git a/staging/javaweb-tomcat-sidecar/javaweb.yaml b/staging/javaweb-tomcat-sidecar/javaweb.yaml index d77f6a727..578f291df 100644 --- a/staging/javaweb-tomcat-sidecar/javaweb.yaml +++ b/staging/javaweb-tomcat-sidecar/javaweb.yaml @@ -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: {}