mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-08-02 16:41:34 +02:00
Compare commits
2 Commits
v1.28.0
...
feat/flatc
Author | SHA1 | Date | |
---|---|---|---|
006f5e722d | |||
949cc2199b |
@ -73,6 +73,20 @@ variable "worker_node_taints" {
|
|||||||
default = {}
|
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
|
# configuration
|
||||||
|
|
||||||
variable "k8s_domain_name" {
|
variable "k8s_domain_name" {
|
||||||
|
@ -77,6 +77,9 @@ 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 node_devices ~}
|
||||||
|
--device=${device.source}:${device.target}
|
||||||
|
%{~ endfor ~}
|
||||||
ExecStart=docker logs -f kubelet
|
ExecStart=docker logs -f kubelet
|
||||||
ExecStop=docker stop kubelet
|
ExecStop=docker stop kubelet
|
||||||
ExecStopPost=docker rm kubelet
|
ExecStopPost=docker rm kubelet
|
||||||
|
@ -81,6 +81,7 @@ data "ct_config" "worker" {
|
|||||||
cluster_domain_suffix = var.cluster_domain_suffix
|
cluster_domain_suffix = var.cluster_domain_suffix
|
||||||
node_labels = join(",", var.node_labels)
|
node_labels = join(",", var.node_labels)
|
||||||
node_taints = join(",", var.node_taints)
|
node_taints = join(",", var.node_taints)
|
||||||
|
node_devices = var.node_devices
|
||||||
})
|
})
|
||||||
strict = true
|
strict = true
|
||||||
snippets = var.snippets
|
snippets = var.snippets
|
||||||
|
@ -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" {
|
||||||
|
@ -22,6 +22,7 @@ module "workers" {
|
|||||||
node_labels = lookup(var.worker_node_labels, var.workers[count.index].name, [])
|
node_labels = lookup(var.worker_node_labels, var.workers[count.index].name, [])
|
||||||
node_taints = lookup(var.worker_node_taints, 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, [])
|
snippets = lookup(var.snippets, var.workers[count.index].name, [])
|
||||||
|
node_devices = lookup(var.worker_bind_devices, var.workers[count.index].name, [])
|
||||||
|
|
||||||
# optional
|
# optional
|
||||||
download_protocol = var.download_protocol
|
download_protocol = var.download_protocol
|
||||||
|
Reference in New Issue
Block a user