们添加 2 个 Deployment，分别为版本 <strong>v1</strong> 和 <strong>v2</strong>，这两个版本都包含服务选择标签 <code>app：helloworld</code> ：</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>kind: Deployment
metadata:
  name: helloworld-v1
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: helloworld
        version: v1
    spec:
      containers:
      - image: helloworld-v1
        ...
---
apiVersion: extensions/v1beta1
kind: Deploymen