mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-08-01 18:41:33 +02:00
Compare commits
2 Commits
v1.29.0
...
feat/flatc
Author | SHA1 | Date | |
---|---|---|---|
006f5e722d | |||
949cc2199b |
@ -73,6 +73,20 @@ variable "worker_node_taints" {
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "worker_bind_devices" {
|
||||
type = map(list(object({
|
||||
source = string
|
||||
target = string
|
||||
})))
|
||||
description = <<EOD
|
||||
List of devices to bind on kubelet container for direct storage usage
|
||||
[
|
||||
{ source = "/dev/sdb", target = "/dev/sdb" },
|
||||
{ source = "/dev/sdc", target = "/dev/sdc" }
|
||||
]
|
||||
EOD
|
||||
}
|
||||
|
||||
# configuration
|
||||
|
||||
variable "k8s_domain_name" {
|
||||
|
@ -77,6 +77,9 @@ systemd:
|
||||
--register-with-taints=${taint} \
|
||||
%{~ endfor ~}
|
||||
--node-labels=node.kubernetes.io/node
|
||||
%{~ for device in 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
|
||||
|
@ -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" {
|
||||
|
@ -22,6 +22,7 @@ module "workers" {
|
||||
node_labels = lookup(var.worker_node_labels, var.workers[count.index].name, [])
|
||||
node_taints = lookup(var.worker_node_taints, var.workers[count.index].name, [])
|
||||
snippets = lookup(var.snippets, var.workers[count.index].name, [])
|
||||
node_devices = lookup(var.worker_bind_devices, var.workers[count.index].name, [])
|
||||
|
||||
# optional
|
||||
download_protocol = var.download_protocol
|
||||
|
Reference in New Issue
Block a user