存储挂载,挂载本地或者PVC

2024-06-16  本文已影响0人  for笑

spec:

      containers:

      - image: nginx

        name: centos-xfce-vnc

        ports:

        - containerPort: 8080

          name: centos-xfce-vnc-port

        volumeMounts:

        - mountPath: /mnt/dump

          name: host-path

        - name: my-block-volume

          mountPath: /mnt/block-storage

      volumes:

      - name: host-path

        hostPath:

          path: /tmp/dump

      - name: my-block-volume

        persistentVolumeClaim:

          claimName: my-block-pvc

上一篇下一篇

猜你喜欢

热点阅读