diff --git a/template/capsule/capsule-init-containers.yaml b/template/capsule/capsule-init-containers.yaml new file mode 100644 index 000000000..6a1648674 --- /dev/null +++ b/template/capsule/capsule-init-containers.yaml @@ -0,0 +1,25 @@ +capsuleVersion: beta +kind: capsule +metadata: + name: init-demo +spec: + containers: + - image: nginx + volumeMounts: + - name: workdir + mountPath: /usr/share/nginx/html + # These containers are run during capsule initialization + initContainers: + - image: busybox + command: + - wget + - "-O" + - "/work-dir/index.html" + - https://www.openstack.org/ + volumeMounts: + - name: workdir + mountPath: "/work-dir" + volumes: + - name: workdir + cinder: + size: 1