istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/config/analysis/analyzers/testdata/deployment-service-no-selector.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: svc-no-selector 5 namespace: default 6 spec: 7 ports: 8 - name: https 9 port: 443 10 protocol: TCP 11 targetPort: 6443 12 --- 13 # this deployment is not associated with any service, so it should generate a warning 14 apiVersion: apps/v1 15 kind: Deployment 16 metadata: 17 name: helloworld-v2 18 namespace: default 19 labels: 20 app: helloworld 21 version: v2 22 spec: 23 replicas: 1 24 selector: 25 matchLabels: 26 app: helloworld 27 version: v2 28 template: 29 metadata: 30 labels: 31 app: helloworld 32 version: v2 33 sidecar.istio.io/inject: "true" 34 spec: 35 containers: 36 - name: helloworld 37 image: docker.io/istio/examples-helloworld-v2 38 resources: 39 requests: 40 cpu: "100m" 41 imagePullPolicy: IfNotPresent #Always 42 ports: 43 - containerPort: 5000