While deploy a user application pod under virtual deivce function running, all the pod is required to running in hostNetwork, Please reference following example yaml file for host network set up:
apiVersion: v1
kind: Pod
metadata:
name: virtual-device-example-pod
spec:
hostNetwork: true
hostPID: true
containers:
- name: virtual-device-example-pod
image: [user application docker image]
resources:
limits:
amd.com/ama_u30: 1
command: ["/bin/sh"]
args: [command loading user applications]