Add sample template for init containers
Change-Id: I7dc365820a15d7d6b7d8cfee5477e9bfba8cc8bc
This commit is contained in:
parent
04a186edde
commit
aad49b2318
25
template/capsule/capsule-init-containers.yaml
Normal file
25
template/capsule/capsule-init-containers.yaml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user