apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: files-1g
spec:
  selector:
    matchLabels:
      app: files-1g
  template:
    metadata:
      labels:
        app: files-1g
    spec:
      containers:
      - name: container
        image: fanjiankong-bj.tencentcloudcr.com/apparate/apparate-1g:latest-apparate
        command: [bash, "-c", 'date; md5sum /data 1>/dev/null 2>/dev/null \; ; date; echo "[apparate] finished"; echo finish > /finish; tail -f /dev/null']
        readinessProbe:
          exec:
            command:
            - cat
            - /finish
          initialDelaySeconds: 1
          periodSeconds: 1
      terminationGracePeriodSeconds: 5
      nodeSelector:
        cloud.tencent.com/apparate: "true"
