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" { variable "worker_bind_devices" {
type = list(object({ type = map(list(object({
source = string source = string
target = string target = string
})) })))
description = <<EOD description = <<EOD
List of devices to bind on kubelet container for direct storage usage List of devices to bind on kubelet container for direct storage usage
[ [

View File

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

View File

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