mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-07-30 10:51:33 +02:00
Add support for devince binding
In some cases we need to use block devices directly (Physical volume storage). This new variable allows the user to mount devices with the --device option for flatcar baremetal. How to use : add a list of objects like this to the cluster definition : worker_bind_devices = [ { source = "/dev/sdb" target = "/dev/sdb" }, { source = "/dev/sdc" target = "/dev/sdd" }, { source = "/dev/sdd" target = "/dev/sdd" } ] This will bind the source device on the target directory in evry node.
This commit is contained in:
@ -77,6 +77,9 @@ systemd:
|
||||
--register-with-taints=${taint} \
|
||||
%{~ endfor ~}
|
||||
--node-labels=node.kubernetes.io/node
|
||||
%{~ for device in compact(split(",", node_devices)) ~}
|
||||
--device=${device.source}:${device.target}
|
||||
%{~ endfor ~}
|
||||
ExecStart=docker logs -f kubelet
|
||||
ExecStop=docker stop kubelet
|
||||
ExecStopPost=docker rm kubelet
|
||||
|
@ -81,6 +81,7 @@ data "ct_config" "worker" {
|
||||
cluster_domain_suffix = var.cluster_domain_suffix
|
||||
node_labels = join(",", var.node_labels)
|
||||
node_taints = join(",", var.node_taints)
|
||||
node_devices = var.node_devices
|
||||
})
|
||||
strict = true
|
||||
snippets = var.snippets
|
||||
|
Reference in New Issue
Block a user