Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to mount hostPath in Rancher Desktop Kubernetes on Windows #7299

Open
SledgeHammer01 opened this issue Aug 4, 2024 · 0 comments
Open
Assignees
Labels
area/kubernetes k8s and related, like traefik area/volume Access to host volumes from inside the VM or containers kind/bug Something isn't working platform/windows

Comments

@SledgeHammer01
Copy link

Actual Behavior

I'm coming from Docker Desktop K8s, and had the PV/PVCs working there.

apiVersion: v1
kind: PersistentVolume
metadata:
  name: airflow
  labels:
    type: local
spec:
  storageClassName: manual
  capacity:
    storage: 8Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: /run/desktop/mnt/host/c/users/xxx~1/.airflow

And then for this particular application:

        dags:
          persistence:
            enabled: true
            existingClaim: airflow

I've set Rancher Desktop to use the dockerd engine, so I was expecting a drop in replacement. There doesn't seem to be much information on how to do this in Rancher. Is it possible??

Steps to Reproduce

N/A

Result

Hostpaths are not getting mounted.

Expected Behavior

That host paths get mounted.

Additional Information

No response

Rancher Desktop Version

1.15.0

Rancher Desktop K8s Version

1.30.3

Which container engine are you using?

moby (docker cli)

What operating system are you using?

Windows

Operating System / Build Version

Windows 11

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

No response

@SledgeHammer01 SledgeHammer01 added the kind/bug Something isn't working label Aug 4, 2024
@SledgeHammer01 SledgeHammer01 changed the title Unable to mount hostPath in Rancher Desktop Kubernetes Unable to mount hostPath in Rancher Desktop Kubernetes on Windows Aug 4, 2024
@gunamata gunamata self-assigned this Aug 6, 2024
@gunamata gunamata added platform/windows area/kubernetes k8s and related, like traefik area/volume Access to host volumes from inside the VM or containers labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes k8s and related, like traefik area/volume Access to host volumes from inside the VM or containers kind/bug Something isn't working platform/windows
Projects
None yet
Development

No branches or pull requests

2 participants