github.com/percona/percona-xtradb-cluster-operator@v1.14.0/e2e-tests/storage/conf/hostpath-helper.yml (about) 1 apiVersion: apps/v1 2 kind: DaemonSet 3 metadata: 4 name: hostpath-helper 5 spec: 6 selector: 7 matchLabels: 8 name: hostpath-helper 9 template: 10 metadata: 11 labels: 12 name: hostpath-helper 13 spec: 14 containers: 15 - name: cleanup 16 image: ubuntu 17 command: ["bash", "-xc", "rm -rf /mnt/run/data-dir /mnt/run/proxy-dir; install -m 777 -d /mnt/run/data-dir /mnt/run/proxy-dir && sleep 100500"] 18 volumeMounts: 19 - name: root 20 mountPath: /mnt 21 securityContext: 22 runAsUser: 0 23 volumes: 24 - name: root 25 hostPath: 26 path: / 27 28 # sudo rm -rf /tmp/data-dir 29 # sudo install -m777 -g 0 -d /tmp/data-dir 30 # sudo chcon -R unconfined_u:object_r:svirt_sandbox_file_t:s0 /tmp /tmp/data-dir