mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-25 21:09:34 +01:00
7b8a51070f
* With the new component system, these components can be managed independent from the cluster and rolled or edited in advanced ways
45 lines
828 B
HCL
45 lines
828 B
HCL
resource "kubernetes_config_map" "config" {
|
|
metadata {
|
|
name = "flannel-config"
|
|
namespace = "kube-system"
|
|
labels = {
|
|
k8s-app = "flannel"
|
|
tier = "node"
|
|
}
|
|
}
|
|
|
|
data = {
|
|
"cni-conf.json" = <<-EOF
|
|
{
|
|
"name": "cbr0",
|
|
"cniVersion": "0.3.1",
|
|
"plugins": [
|
|
{
|
|
"type": "flannel",
|
|
"delegate": {
|
|
"hairpinMode": true,
|
|
"isDefaultGateway": true
|
|
}
|
|
},
|
|
{
|
|
"type": "portmap",
|
|
"capabilities": {
|
|
"portMappings": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
EOF
|
|
"net-conf.json" = <<-EOF
|
|
{
|
|
"Network": "${var.pod_cidr}",
|
|
"Backend": {
|
|
"Type": "vxlan",
|
|
"Port": 4789
|
|
}
|
|
}
|
|
EOF
|
|
}
|
|
}
|
|
|