# istio_list-frontend.yaml
apiVersion: v1
kind: List
items:
  - kind: Service
    apiVersion: v1
    metadata:
      name: frontend
    spec:
      selector:
        app: hello
        tier: frontend
      ports:
        - protocol: "TCP"
          port: 80
          targetPort: 80
      type: LoadBalancer
  - apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: frontend
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: hello
          tier: frontend
          track: stable
      template:
        metadata:
          labels:
            app: hello
            tier: frontend
            track: stable
        spec:
          containers:
            - name: nginx
              image: "fake.docker.io/google-samples/hello-frontend:1.0"
              lifecycle:
                preStop:
                  exec:
                    command: ["/usr/sbin/nginx","-s","quit"]