According to the official Kubernetes website, there is one note: “In API version apps/v1, a Deployment’s label selector is immutable after it gets created.” However, it’s inevitable to update labels in existing deployments sometimes. Due to the immutability of the label selector, the simple way is to recreate deployments. Nevertheless, in most cases, it’s not a good practice to directly shut down services. Therefore, in this session, we will introduce a zero-downtown label migration method that AMIS engineers based on ingress rule priority setting came up with.
About Una Chen
A backend engineer in AMIS Technologies Co., Ltd.