ovn-kubernetes icon indicating copy to clipboard operation
ovn-kubernetes copied to clipboard

Annotate pod with ovs-hw-offload status

Open zshi-redhat opened this issue 4 years ago • 2 comments

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:

  1. check the net-attach-def via the pod annotation: v1.multus-cni.io/default-network: <net-attach-def-name>
  2. query the net-attach-def through API
  3. 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"}'

zshi-redhat avatar Nov 16 '20 11:11 zshi-redhat

/cc @moshe010

zshi-redhat avatar Nov 16 '20 11:11 zshi-redhat

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.

github-actions[bot] avatar Aug 17 '24 01:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 24 '24 01:08 github-actions[bot]