# How to configure nodes with node driver

**URL:** <https://forums.suse.com/t/how-to-configure-nodes-with-node-driver/16961>\
**Category:** SUSE Rancher Prime\
**Created:** [March 27, 2020, 10:24pm UTC](https://forums.suse.com/t/how-to-configure-nodes-with-node-driver/16961 "2020-03-27T22:24:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimonHe](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/simonhe/32/6240_2.png) [@SimonHe](https://forums.suse.com/u/SimonHe)\
**Post date:** [March 27, 2020, 10:24pm UTC](https://forums.suse.com/t/how-to-configure-nodes-with-node-driver/16961/1 "2020-03-27T22:24:44Z")

</div>

Pods may have requirements for the node (Longhorn needs `open-iscsi`, …). When I deploy nodes with a node driver, how can I fulfill them? Can I modify all nodes somehow (installing packages, configuring firewall, …)? Just on installation with cloudInit? Or are there other possibilities with Rancher?

---

<div class="post-metadata">

**Author:** ![SimonHe](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/simonhe/32/6240_2.png) [@SimonHe](https://forums.suse.com/u/SimonHe)\
**Post date:** [April 1, 2020, 12:03pm UTC](https://forums.suse.com/t/how-to-configure-nodes-with-node-driver/16961/2 "2020-04-01T12:03:44Z")

</div>

_my own hints/guesses/…:_

Rancher develops [https://k3os.io](https://k3os.io), which can be configured from kubernetes.

I guess, for other cases, there is no access from rancher. So probably use a configuratoin tool like ansible, salt, chef and maybe detect the inventoiry automatically.

---

<div class="post-metadata">

**Author:** ![SimonHe](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/simonhe/32/6240_2.png) [@SimonHe](https://forums.suse.com/u/SimonHe)\
**Post date:** [April 4, 2020, 8:17pm UTC](https://forums.suse.com/t/how-to-configure-nodes-with-node-driver/16961/3 "2020-04-04T20:17:23Z")

</div>

I found a post doing configuration with ansible, and showing an alternative with scripts from cloud-init.

---

<div class="post-metadata">

**Author:** ![SimonHe](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/simonhe/32/6240_2.png) [@SimonHe](https://forums.suse.com/u/SimonHe)\
**Post date:** [April 15, 2020, 7:31pm UTC](https://forums.suse.com/t/how-to-configure-nodes-with-node-driver/16961/4 "2020-04-15T19:31:05Z")

</div>

An other possibility could be in k8s itself:  
Create a DeamonSet with a pod containing

- an init container with necessary privileges to adatp the host
- an app container running rancher/pause

The init container would run on creation (of node or DeaemonCreation) and on reboot. So it must be idempotent (run several times and keep the same state)

Idea from [https://github.com/kubernetes/kubernetes/issues/64623](https://github.com/kubernetes/kubernetes/issues/64623)

---

<div class="post-metadata">

**Author:** ![SimonHe](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/simonhe/32/6240_2.png) [@SimonHe](https://forums.suse.com/u/SimonHe)\
**Post date:** [April 15, 2020, 7:48pm UTC](https://forums.suse.com/t/how-to-configure-nodes-with-node-driver/16961/5 "2020-04-15T19:48:26Z")

</div>

I forgot the link for "alternative with script from clould-init\*: [https://vitobotta.com/2020/01/17/secure-kubernetes-hetzner-cloud-rancher-node-driver/](https://vitobotta.com/2020/01/17/secure-kubernetes-hetzner-cloud-rancher-node-driver/)
