to merge with previous commit on main
This commit is contained in:
parent
949cc2199b
commit
006f5e722d
|
@ -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
|
||||||
[
|
[
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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" {
|
||||||
|
|
Loading…
Reference in New Issue