This message was deleted.
# general
a
This message was deleted.
a
May we see the
volumes
and
volumeMounts
portion of your manifest?
d
Hey Mne thanks for your reply
I'm using longhorn
I can share the yaml if that works for you
a
That'd be great, thank you
d
so the pvc called vol-bind9
it's the one I need to also be mounted in another folder
a
What happens when you add the second mountPath using that volume? Error, or just doesn't mount, etc.?
d
it just not come show active
I go to the "pod" tab and select storage and "add volume"
Creating it and then I move to container tab
storage
and "select volume" select the last pvc I just create and then save
it will show in process and below pending termination 1
in the pod details show "vivogaming0/debian12bind9:latest"
a
Are you clicking Add Mount from the container tab? That's the part you want to be adding the second path to for the PVC-- I tested it with only an arbitrary path but the principle should be the same, shouldn't be itsown claim (rather than add volume from the Pod tab)
The resulting yaml would just look like this:
Copy code
volumeMounts:
            - mountPath: /etc/bind
              name: vol-bind9
              subPath: bind/master
            - mountPath: /etc/bind2
              name: vol-bind9
              subPath: bind/master2
            - mountPath: /root/.ssh
              name: vol-key
              subPath: key/.ssh
d
OK
let me try
Do I have to create another storage on on the Pod tab or O can use the same and just change the path on the container tab?
Neverland
it works!
I go it!
now
Thanks again really appriciate it
🙌 1
a
Great! No problem!