ovn-org / ovn-kubernetes

A robust Kubernetes networking platform
https://ovn-kubernetes.io/
Apache License 2.0
811 stars 338 forks source link

Annotate pod with ovs-hw-offload status #1842

Closed zshi-redhat closed 3 weeks ago

zshi-redhat commented 3 years ago

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 commented 3 years ago

/cc @moshe010

github-actions[bot] commented 1 month ago

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] commented 3 weeks ago

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