ovn-kubernetes
ovn-kubernetes copied to clipboard
Annotate pod with ovs-hw-offload status
When pod is created with a switchdev VF device (ovs-hw-offload enabled pod) there is not an easy way for user to tell whether it is a regular pod or hw-offloaded pod.
In order to check the pod is using ovs-hw-offload, user has to do the following steps:
- check the net-attach-def via the pod annotation:
v1.multus-cni.io/default-network: <net-attach-def-name> - query the net-attach-def through API
- check if the net-attach-def contains the resourceName annotation
instead of user checking net-attach-def, ovn-kubernetes cni can annotate the pod with a tag to indicate the pod is offloaded: for example k8s.ovn.org/ovs-hw-offload: true
This annotation can be further enhanced to a json string that contains both enablement and ovs tc-policy info: k8s.ovn.org/ovs-hw-offload: '{"enabled": "true", "ovs-tc-policy": "none"}'
/cc @moshe010
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.