to merge with previous commit on main

This commit is contained in:
Philippe Caseiro 2023-03-03 11:07:10 +01:00
parent 949cc2199b
commit 006f5e722d
3 changed files with 12 additions and 3 deletions

View File

@ -74,10 +74,10 @@ variable "worker_node_taints" {
}
variable "worker_bind_devices" {
type = list(object({
type = map(list(object({
source = string
target = string
}))
})))
description = <<EOD
List of devices to bind on kubelet container for direct storage usage
[

View File

@ -77,7 +77,7 @@ systemd:
--register-with-taints=${taint} \
%{~ endfor ~}
--node-labels=node.kubernetes.io/node
%{~ for device in compact(split(",", node_devices)) ~}
%{~ for device in node_devices ~}
--device=${device.source}:${device.target}
%{~ endfor ~}
ExecStart=docker logs -f kubelet

View File

@ -72,6 +72,15 @@ variable "node_taints" {
default = []
}
variable "node_devices" {
type = list(object({
source = string
target = string
}))
description = "List of devices object to bind with --device option"
default = []
}
# optional
variable "download_protocol" {