An Optimization Framework for Edge-to-Cloud Offloading of Kubernetes Pods in V2X Scenarios