This message was deleted.
# rancher-desktop
a
This message was deleted.
👍 1
b
Hrm, that substitution ought to work. Would love to get a solution For others learning check out this example https://itnext.io/simplest-basic-k8s-tutorial-to-mount-local-host-directory-into-a-pod-volume-example-with-rancher-18b4f1d75cd9
a
Thanks. The
subPathExpr
approach does work, and that's what we're going with now. I haven't tried changing/adding a
mountPoint
in
overlay.yaml
. For one thing, mountPoint is barely documented, but I can see it in the source code.
🦜 1
An example with a volume and volume mount:
Copy code
spec:
  containers:
  - name: example
    envFrom:
    - configMapRef:
        name: user # USER=
    volumeMounts:
    - name: users
      mountPath: /some/path
      subPathExpr: $(USER)
      readOnly: true
  volumes:
  - name: users
    hostPath:
      path: /Users
      type: Directory
👍 1