We use K8s hostPath directory mounts on our local machines to mount dev code into containers running in Docker Desktop. This works fine in 4.38.0, but in 4.39.0 the mount fails with an error that the directory isn’t a directory:
MountVolume.SetUp failed for volume <…> : hostPath type check failed: <…> is not a directory
This is on MacOS Sonoma 14.7.4.
Anyone else seeing this or have a work around?
2 Likes
Same here, worked till the upgrade from 4.37 to 4.39.
Here the yaml for the volume:
apiVersion: v1
kind: PersistentVolume
metadata:
name: config-volume
spec:
storageClassName: "manual"
capacity:
storage: 100M
accessModes:
- ReadWriteOnce
hostPath:
path: /Users/Shared/config
type: Directory
The error Message from the Deployment:
MountVolume.SetUp failed for volume "config-volume" : hostPath type check failed: /Users/Shared/config is not a directory
1 Like