29 lines
860 B
YAML
29 lines
860 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: capm3-ironic
|
|
spec:
|
|
template:
|
|
spec:
|
|
initContainers:
|
|
- name: init-images
|
|
image: quay.io/airshipit/ipa-wallaby:latest
|
|
imagePullPolicy: Always
|
|
command: ['/bin/init-images']
|
|
volumeMounts:
|
|
- name: ironic-data-volume
|
|
mountPath: "/shared"
|
|
- name: ironic-entrypoints
|
|
mountPath: /bin/init-images
|
|
subPath: init-images
|
|
- name: qcow-bundle
|
|
command:
|
|
- sh
|
|
- -c
|
|
- "cp /qcows/*.qcow2 /qcows/*.qcow2.md5sum /shared/html/images/"
|
|
image: "quay.io/airshipit/qcow-bundle:k8s-1.19-latest-ubuntu_focal"
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- mountPath: "/shared"
|
|
name: ironic-data-volume
|