# Docker NodeRed Kubernetes Watch Node

**URL:** <https://discourse.nodered.org/t/docker-nodered-kubernetes-watch-node/47731>\
**Category:** General\
**Created:** [28 June 2021 06:12 UTC](https://discourse.nodered.org/t/docker-nodered-kubernetes-watch-node/47731 "2021-06-28T06:12:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatthiasM86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/matthiasm86/32/43982_2.png) [@MatthiasM86](https://discourse.nodered.org/u/MatthiasM86)\
**Post date:** [28 June 2021 06:12 UTC](https://discourse.nodered.org/t/docker-nodered-kubernetes-watch-node/47731/1 "2021-06-28T06:12:52Z")

</div>

Hi all,  
I'm running NodeRed in Kubernetes and trying to use the watch node to access network shares. I'm using the NodeRed Image from NodeRed with some additional nodes. I have some problems to access the network shares and unfortunately I can't give the NodeRed deployment root privileges in Kubernetes. I tried different nodes to access the fileshares without success. In general connecting to hosts outside kubernetes is possible e.g. MQTT broker, Database. Is there a way add some settings to the watch node like user and password or any other is there a other way?

Best regards

Matthias

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 June 2021 06:29 UTC](https://discourse.nodered.org/t/docker-nodered-kubernetes-watch-node/47731/2 "2021-06-28T06:29:35Z")

</div>

Welcome to the forum @MatthiasM86

I believe you cannot use the watch node for network shares. The reason is that node red uses the watch feature provided by the OS and that does not work with shares.

---

<div class="post-metadata">

**Author:** ![MatthiasM86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/matthiasm86/32/43982_2.png) [@MatthiasM86](https://discourse.nodered.org/u/MatthiasM86)\
**Post date:** [29 June 2021 11:03 UTC](https://discourse.nodered.org/t/docker-nodered-kubernetes-watch-node/47731/3 "2021-06-29T11:03:09Z")

</div>

Hi @Colin ,  
thx for your answer well I played around a little yesterday and made some progress. I can mount the shared directory but then the watch node isn't working and doesn't detect changes. So looks like it will not work. When running NodeRed as a Windows Service it can watch network shares.

Thx for your help

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 June 2021 13:01 UTC](https://discourse.nodered.org/t/docker-nodered-kubernetes-watch-node/47731/4 "2021-06-29T13:01:58Z")

</div>

> [@MatthiasM86](#):
>
> When running NodeRed as a Windows Service it can watch network shares.

Really? I am surprised. However I don't use Windows so cannot test it. Perhaps others can confirm this.

---

<div class="post-metadata">

**Author:** ![MatthiasM86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/matthiasm86/32/43982_2.png) [@MatthiasM86](https://discourse.nodered.org/u/MatthiasM86)\
**Post date:** [30 June 2021 07:25 UTC](https://discourse.nodered.org/t/docker-nodered-kubernetes-watch-node/47731/5 "2021-06-30T07:25:42Z")

</div>

Ok I got it working more or less, if you run the container privileged you can mount a network share. After this I installed a new node [node-red-contrib-watchdirectory (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-watchdirectory) and with this node it is possible to watch the mounted network share.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 July 2021 07:25 UTC](https://discourse.nodered.org/t/docker-nodered-kubernetes-watch-node/47731/6 "2021-07-14T07:25:51Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
