pod的存储-pv-pvc-storageclass_存

pod的存储-pv-pvc-storageclass_存_02

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: busybox-daemonset
  labels:
    app: busybox
spec:
  selector:
    matchLabels:
      app: busybox
  template:
    metadata:
      labels:
        app: busybox
    spec:
      containers:
      - name: busybox
        image: busybox:1.28.4
        command:
          - sleep
          - "36000"
        volumeMounts:
        - mountPath: /cache
          name: cache-volume
      volumes:
      - name: cache-volume
        emptyDir: {}
      restartPolicy: Always

hostpath
pod的存储-pv-pvc-storageclass_存_03

pod的存储-pv-pvc-storageclass_存_04

pod的存储-pv-pvc-storageclass_存_05

pod的存储-pv-pvc-storageclass_存_06