apiVersion: v1 kind: Pod metadata: name: client namespace: istio-vt-t80 labels: app: client annotations: sidecar.istio.io/inject: "true" spec: containers: - name: curl image: curlimages/curl:8.14.1 command: ["sleep", "infinity"] --- apiVersion: v1 kind: ServiceAccount metadata: name: selectormismatch-gw namespace: istio-vt-t80 --- apiVersion: apps/v1 kind: Deployment metadata: name: selectormismatch-gw namespace: istio-vt-t80 spec: replicas: 1 selector: matchLabels: istio: selectormismatch-gw template: metadata: labels: istio: selectormismatch-gw annotations: inject.istio.io/templates: gateway sidecar.istio.io/inject: "true" spec: serviceAccountName: selectormismatch-gw containers: - name: istio-proxy image: auto --- apiVersion: v1 kind: Service metadata: name: selectormismatch-gw namespace: istio-vt-t80 spec: selector: istio: selectormismatch-gw ports: - name: http port: 8080 targetPort: 8080 --- apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: selectormismatch-gw namespace: istio-vt-t80 spec: selector: istio: this-label-does-not-match-any-pod servers: - port: number: 8080 name: http protocol: HTTP hosts: - "*"