# Allow simlinks on mounted folders through hostPath

**URL:** <https://discuss.kubernetes.io/t/allow-simlinks-on-mounted-folders-through-hostpath/33686>\
**Category:** Windows\
**Tags:** development, network\
**Created:** [November 26, 2025, 8:30am UTC](https://discuss.kubernetes.io/t/allow-simlinks-on-mounted-folders-through-hostpath/33686 "2025-11-26T08:30:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joseccz](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@joseccz](https://discuss.kubernetes.io/u/joseccz)\
**Post date:** [November 26, 2025, 8:30am UTC](https://discuss.kubernetes.io/t/allow-simlinks-on-mounted-folders-through-hostpath/33686/1 "2025-11-26T08:30:01Z")

</div>

For volumenMounts using hostPath as with:

```
     volumeMounts: 
     - name: host-volume-conf 
       mountPath: /var/www/html/conf.core 
       subPath: conf.core

```

…

```
   volumes: 
   - name: host-volume-conf 
     hostPath: 
       path: /mnt/shares/ubpolo_pepe_share/wiki-storage/ 
       type: DirectoryOrCreate 

```

How can I do to allow the creation of simlinks? For example , for StorageClass objects the next allows the use of simlinks:

```auto
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: azurefile-csi-smb
provisioner: file.csi.azure.com
parameters:
  protocol: smb
  skuName: Standard_LRS
mountOptions:
  - dir_mode=0777
  - file_mode=0777
  - serverino
  - mfsymlinks # This option enables symbolic link support for SMB

```

But, how to do something similar with hostpath?
