Skip to content

Commit 83255df

Browse files
authored
Merge pull request #147 from hcloud-k8s/cilium-ipsec-netkit-fix
Set veth as default interface type
2 parents 3b9541d + 349815f commit 83255df

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

cilium.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ data "helm_template" "cilium" {
8787
},
8888
{
8989
name = "bpf.datapathMode"
90-
value = "netkit"
90+
value = var.cilium_bpf_datapath_mode
9191
},
9292
{
9393
name = "loadBalancer.acceleration"

variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,16 @@ variable "cilium_ipsec_key_id" {
10771077
}
10781078
}
10791079

1080+
variable "cilium_bpf_datapath_mode" {
1081+
type = string
1082+
default = "veth"
1083+
description = "Mode for Pod devices for the core datapath. Allowed values: veth, netkit, netkit-l2. Warning: Netkit is still in beta and should not be used together with IPsec encryption!"
1084+
validation {
1085+
condition = contains(["veth", "netkit", "netkit-l2"], var.cilium_bpf_datapath_mode)
1086+
error_message = "cilium_bpf_datapath_mode must be one of: veth, netkit, netkit-l2."
1087+
}
1088+
}
1089+
10801090
variable "cilium_egress_gateway_enabled" {
10811091
type = bool
10821092
default = false

0 commit comments

Comments
 (0)