# VXLAN encapsulation

**URL:** <https://discuss.kubernetes.io/t/vxlan-encapsulation/15808>\
**Category:** microk8s\
**Tags:** network\
**Created:** [May 6, 2021, 4:28pm UTC](https://discuss.kubernetes.io/t/vxlan-encapsulation/15808 "2021-05-06T16:28:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubick](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@rubick](https://discuss.kubernetes.io/u/rubick)\
**Post date:** [May 6, 2021, 4:28pm UTC](https://discuss.kubernetes.io/t/vxlan-encapsulation/15808/1 "2021-05-06T16:28:32Z")

</div>

Hello,

I have deployed a k8s cluster with microk8s v 1.20 which ships with calico version 3.13.2  
All my nodes are in the same physical subnet and for this reason I would like to reduce the encapsulation overhead of vxlan.

I did set CALICO\_IPV4POOL\_VXLAN to Never in /var/snap/microk8s/current/args/cni-network/cni.yaml  
I have restarted all calico-node pods  
`kubectl delete pod -n kube-system -l k8s-app=calico-node`  
and also the daemonset  
`kubectl rollout restart daemonset calico-node -n kube-system`

If I look at the description of all the calico-node pods and of the daemonset I see  
`CALICO_IPV4POOL_VXLAN: Never`

Is this a correct way to set this parameter? How can I check what encapsulation mode is actually in place and the packet flow in my network?

My ultimate goal would be to improve the pod-to-pod networking performance.  
Unfortunately, even after changing the VXLAN encapsulation, my ping time across pods is still 2x / 3x that of bare metal.

Any pointers to address this issue and to improve networking in general are highly appreciated, thank you
