sergelogvinov / proxmox-cloud-controller-manager

Kubernetes cloud controller manager for Proxmox
Apache License 2.0
124 stars 16 forks source link

moving vms to different node don't update the topology.kubernetes.io/zone #110

Closed strelok899 closed 6 months ago

strelok899 commented 7 months ago

Bug Report

Description

did live migration of vms to different proxmox node and the topology.kubernetes.io/zone stayed the same

Logs

Environment

kubernetes 1.28 latest plugin ubuntu 22.04

sergelogvinov commented 7 months ago

Hello, CCM cannot change region/zone/instance-type/provider-id after creation. You can delete node resource and restart kubelet, after that kubernetes init the node again with new values.

So, it is not kubernetes way to migrate nodes between zone/region. Better to create new instance and drain/migrate the pods.