Network_mode: host in rancher 2.x

is there any option for “network_mode: host” in rancher 2.x?

hostNetwork: true (there is not an equivalent to all the other kinds of network_mode in kubernetes)

thanks. can you add the rancher document link for this hostNetwork?

Rancher 2 is kubernetes. This is a standard kubernetes feature. https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#podspec-v1-core

so it cant be done from the rancher UI? from the rancher documents i get the feelings that it is better to just work with kubectl. is that correct?