All pods of a Service must share the same app and version labels. app traces traffic in traffic monitoring, and version distinguishes different versions in grayscale release. If pods with different app or version labels exist, this item is abnormal.
The labels of pods are configured in spec.template.metadata.labels of the Deployment. The recommended configuration is as follows:
labels: app: {serviceName} version: v1
To modify the labels of multiple pods to the same value, perform the following steps:
kubectl get svc {serviceName} -o yaml
For example, the labels are app: ratings and release: istio-bookinfo.
kubectl get pod -n {namespace} -l app=ratings,release=istio-bookinfo
{namespace} is the same as the namespace of the Service.
kubectl get deployment {deploymentName} -n {namespace}