2021-10-22 06:35:35 +02:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: disks-images-provider
|
|
|
|
namespace: kubevirt
|
|
|
|
labels:
|
|
|
|
kubevirt.io: "disks-images-provider"
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
kubevirt.io: "disks-images-provider"
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: disks-images-provider
|
|
|
|
kubevirt.io: disks-images-provider
|
|
|
|
name: disks-images-provider
|
|
|
|
spec:
|
2022-10-14 07:38:24 +02:00
|
|
|
tolerations:
|
|
|
|
- key: CriticalAddonsOnly
|
|
|
|
operator: Exists
|
2021-10-22 06:35:35 +02:00
|
|
|
serviceAccountName: kubevirt-testing
|
|
|
|
containers:
|
|
|
|
- name: target
|
2024-06-06 09:56:53 +02:00
|
|
|
image: quay.io/kubevirt/disks-images-provider:v1.2.2
|
2021-10-22 06:35:35 +02:00
|
|
|
imagePullPolicy: Always
|
|
|
|
lifecycle:
|
|
|
|
preStop:
|
|
|
|
exec:
|
2023-03-02 09:35:08 +01:00
|
|
|
command: ["/bin/sh","-c","source /etc/bashrc && chroot /host umount ${LOOP_DEVICE_HP} && chroot /host losetup -d ${LOOP_DEVICE_HP}"]
|
2021-10-22 06:35:35 +02:00
|
|
|
volumeMounts:
|
|
|
|
- name: images
|
|
|
|
mountPath: /hostImages
|
|
|
|
- name: local-storage
|
|
|
|
mountPath: /local-storage
|
|
|
|
- name: host-dir
|
|
|
|
mountPath: /host
|
|
|
|
mountPropagation: Bidirectional
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
readinessProbe:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- cat
|
|
|
|
- /ready
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 5
|
|
|
|
volumes:
|
|
|
|
- name: images
|
|
|
|
hostPath:
|
|
|
|
path: /tmp/hostImages
|
|
|
|
type: DirectoryOrCreate
|
|
|
|
- name: local-storage
|
|
|
|
hostPath:
|
|
|
|
path: /mnt/local-storage
|
|
|
|
type: DirectoryOrCreate
|
|
|
|
- name: host-dir
|
|
|
|
hostPath:
|
|
|
|
path: /
|