mirror of
https://github.com/poseidon/typhoon
synced 2025-01-05 07:24:11 +01:00
1955b23819
* flannel and Cilium default to UDP 8472 for VXLAN traffic to avoid conflicts with other VXLAN usage (e.g. Open vSwith) * Aligning flannel and Cilium to use the same vxlan port makes firewall rules or security policies simpler across clouds Rel: https://github.com/poseidon/terraform-render-bootstrap/pull/403
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": 8472
|
|
}
|
|
}
|
|
EOF
|
|
}
|
|
}
|
|
|