zun/template/capsule/capsule-volume.yaml
Kevin Zhao 1e8503e870 Modify restart_policy to spec content
Align with Kubernetes

Change-Id: I24cec2b92ebef0c984cbf74bac074633624c498a
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2018-06-06 14:26:18 +00:00

36 lines
697 B
YAML

# use "-" because that the fields have many items
capsuleVersion: beta
kind: capsule
metadata:
name: capsule-volume
labels:
foo: bar
availabilityZone: nova
spec:
restartPolicy: Always
containers:
- image: test
command:
- "/bin/bash"
workDir: /root
labels:
app: web
volumeMounts:
- name: volume1
mountPath: /data1
- name: volume2
mountPath: /data2
- name: volume3
mountPath: /data3
volumes:
- name: volume1
cinder:
size: 3
autoRemove: True
- name: volume2
cinder:
volumeID: 473e4a6a-99f2-4b42-88ce-5ab03a00b756
- name: volume3
cinder:
volumeID: f4246aa1-1c87-479c-a2ab-4dbaf0c3c7bb