apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: image-puller
  namespace: data-infra
spec:
  selector:
    matchLabels:
      name: image-puller
  template:
    metadata:
      labels:
        name: image-puller
    spec:
      imagePullSecrets:
        - name: minimax-harbor-registry
      nodeSelector:
        #infra.xaminim.com/image-warmup: presure-test
        infra.xaminim.com/machine-type: gpu
      containers:
      - name: image1
        #image: harbor.xaminim.com/minimax-pub/juicedata/mount:ee-5.0.23-634a9a2
        #image: harbor.xaminim.com/minimax-pub/juicefs-csi-driver:v0.24.0
        image: harbor.xaminim.com/minimax-infra/benchmarktool/gpu:v0.4-cuda12.2
        # 更新的策略是先上jfs镜像然后 滚动3个更新
        command: ["sleep", "infinity"]
        resources:
          limits:
            memory: "50Mi"
            cpu: "0.01"
      tolerations:
      - operator: Exists
  updateStrategy:
    type: RollingUpdate  # 使用滚动更新策略
    rollingUpdate:
      maxUnavailable: 3  # 每次最多不可用 3 个 Pod