惜风不起、唯有努力!
k8s多目录挂载同一pvc

k8s多目录挂载同一pvc

yaml如下

         volumeMounts:
            - name: logs-volume
              mountPath: /data/xxx/logs
              subPath: logs
            - name: logs-volume
              mountPath: /home
              subPath: file
        volumes:
        - name: logs-volume
          persistentVolumeClaim:
            claimName: xxxx-pvc

发表回复

您的电子邮箱地址不会被公开。