Skip to content

Commit 9b31ec4

Browse files
committed
azure: Use VXLAN encapsulation for pod traffic with Calico
Signed-off-by: Ciprian Hacman <[email protected]>
1 parent 86434c4 commit 9b31ec4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/model/components/calico.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ func (b *CalicoOptionsBuilder) BuildOptions(o *kops.Cluster) error {
3636
}
3737

3838
c.EncapsulationMode = "ipip"
39+
if o.GetCloudProvider() == kops.CloudProviderAzure {
40+
c.EncapsulationMode = "vxlan"
41+
c.VXLANMode = "Always"
42+
}
3943
if clusterSpec.IsIPv6Only() {
4044
c.EncapsulationMode = "none"
4145
}

0 commit comments

Comments
 (0)