write pod Of yaml File time , If you want to use cloud storage , be volumeMounts this property,
mountPath by container Internal directory
and subPath Although closely followed mountpath, Most easily misunderstood as local path , In fact, it is a sub path on the remote cloud storage
So enter pod Look at the disk condition internally , display
bbuser@stream-notifications-baseline-learn-tomcat-7cd697-2xwp7:~$ df -v
Filesystem 1K-blocks Used Available Use% Mounted on
10.114.70.2:/learn_perf_bbcontent_1/instance/stream-notifications-baseline
570422592 19338048 551084544 4% /mnt/bbcontent
- name: learn image: ${LEARN_DOCKER_IMAGE} imagePullPolicy: IfNotPresent
resources: requests: cpu: ${LEARN_CPU_REQUEST} memory: ${LEARN_MEM_REQUEST}
limits: cpu: ${LEARN_CPU_LIMITS} memory: ${LEARN_MEM_LIMITS} command: -
${BB_USER_HOME}/bin/launcher.sh env: - name: DEV_FEATURES valueFrom:
configMapKeyRef: name: ${INSTANCE_NAME}-learn-config key: DEV_FEATURES
volumeMounts: - name: bbcontent **mountPath: /mnt/bbcontent subPath:
instance/${INSTANCE_NAME} ** volumes: - name: bbcontent persistentVolumeClaim:
claimName: learn-deployments-share
volume and name(container The name of ) It's a unified hierarchy .
Technology